From: Caio Marcelo de Oliveira Filho Date: Sat, 14 Sep 2019 03:40:50 +0000 (-0700) Subject: spirv: Handle ShaderLayer and ShaderViewportIndex capabilities X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cf1bfcdd7ea6095147cbc10466d0cec4b761567;p=mesa.git 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 --- 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;