spirv: Add support for IntegerFunctions2INTEL capability

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>
This commit is contained in:
Ian Romanick
2018-09-24 06:46:48 -07:00
committed by Marge Bot
parent aa56934e2a
commit 4fcddb55f2
2 changed files with 5 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ struct spirv_supported_capabilities {
bool int16;
bool int64;
bool int64_atomics;
bool integer_functions2;
bool kernel;
bool min_lod;
bool multiview;

View File

@@ -4119,6 +4119,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(amd_image_read_write_lod, cap);
break;
case SpvCapabilityIntegerFunctions2INTEL:
spv_check_supported(integer_functions2, cap);
break;
default:
vtn_fail("Unhandled capability: %s (%u)",
spirv_capability_to_string(cap), cap);