Mesa (master): spirv: Handle ShaderLayer and ShaderViewportIndex capabilities
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Sep 17 03:07:00 UTC 2019
Module: Mesa
Branch: master
Commit: 9cf1bfcdd7ea6095147cbc10466d0cec4b761567
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cf1bfcdd7ea6095147cbc10466d0cec4b761567
Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date: Fri Sep 13 20:40:50 2019 -0700
spirv: Handle ShaderLayer and ShaderViewportIndex capabilities
SPIR-V 1.5 incorported the SPV_EXT_shader_viewport_index_layer but
splitting into the two capabilities above. Just handle them as we
support the extension already.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/compiler/spirv/spirv_to_nir.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 8cf26713053..f46af1e42db 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3573,6 +3573,8 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(storage_16bit, cap);
break;
+ case SpvCapabilityShaderLayer:
+ case SpvCapabilityShaderViewportIndex:
case SpvCapabilityShaderViewportIndexLayerEXT:
spv_check_supported(shader_viewport_index_layer, cap);
break;
More information about the mesa-commit
mailing list