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 int16;
bool int64; bool int64;
bool int64_atomics; bool int64_atomics;
bool integer_functions2;
bool kernel; bool kernel;
bool min_lod; bool min_lod;
bool multiview; 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); spv_check_supported(amd_image_read_write_lod, cap);
break; break;
case SpvCapabilityIntegerFunctions2INTEL:
spv_check_supported(integer_functions2, cap);
break;
default: default:
vtn_fail("Unhandled capability: %s (%u)", vtn_fail("Unhandled capability: %s (%u)",
spirv_capability_to_string(cap), cap); spirv_capability_to_string(cap), cap);