diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-04-12 01:36:22 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-04-18 22:56:54 +0200 |
commit | 5f7ebb52064fb610580fd5f6e3ebd54852185e47 (patch) | |
tree | 4241e5473dcd56c220270723307d6a3efeb5335a | |
parent | c48feaf2d185e247d016ef7d60eefac18f0e5704 (diff) |
spirv: Add support for runtime descriptor array cap.
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r-- | src/compiler/shader_info.h | 1 | ||||
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 4 |
2 files changed, 5 insertions, 0 deletions
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"); } |