From 5f7ebb52064fb610580fd5f6e3ebd54852185e47 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 12 Apr 2018 01:36:22 +0200 Subject: [PATCH] spirv: Add support for runtime descriptor array cap. Reviewed-by: Samuel Pitoiset --- 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 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"); } -- 2.30.2