[Mesa-dev] [PATCH 09/10] spirv: Add support for runtime descriptor array cap.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 11 23:44:22 UTC 2018
---
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 c8128fea01b..4a0a843c796 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 full_uniform_desciptor_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 04d26841188..52457554125 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3388,6 +3388,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(full_uniform_desciptor_indexing, cap);
break;
+ case SpvCapabilityRuntimeDescriptorArrayEXT:
+ spv_check_supported(runtime_descriptor_array, cap);
+ break;
+
default:
vtn_fail("Unhandled capability");
}
--
2.17.0
More information about the mesa-dev
mailing list