From: Bas Nieuwenhuizen Date: Wed, 11 Apr 2018 23:36:22 +0000 (+0200) Subject: spirv: Add support for runtime descriptor array cap. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f7ebb52064fb610580fd5f6e3ebd54852185e47;p=mesa.git spirv: Add support for runtime descriptor array cap. Reviewed-by: Samuel Pitoiset --- diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 6bbe526d2dc..53a0ef21f6f 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -54,6 +54,7 @@ struct spirv_supported_capabilities { bool gcn_shader; bool trinary_minmax; bool descriptor_array_dynamic_indexing; + bool runtime_descriptor_array; }; typedef struct shader_info { diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 884f5b2c69e..2a835f047e4 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -3390,6 +3390,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode, spv_check_supported(descriptor_array_dynamic_indexing, cap); break; + case SpvCapabilityRuntimeDescriptorArrayEXT: + spv_check_supported(runtime_descriptor_array, cap); + break; + default: vtn_fail("Unhandled capability"); }