From 4fcddb55f27e29d78c6937c20d91e7f9962ce875 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 24 Sep 2018 06:46:48 -0700 Subject: [PATCH] spirv: Add support for IntegerFunctions2INTEL capability Reviewed-by: Caio Marcelo de Oliveira Filho Part-of: --- src/compiler/shader_info.h | 1 + src/compiler/spirv/spirv_to_nir.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 136e71ce234..cbc22d24636 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -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; diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index fc74ab661ee..6df936b44f9 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -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); -- 2.30.2