spirv: Handle ShaderLayer and ShaderViewportIndex capabilities
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 14 Sep 2019 03:40:50 +0000 (20:40 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 17 Sep 2019 02:18:01 +0000 (19:18 -0700)
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@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c

index 8cf26713053958e2427049b90f3de83d329fa884..f46af1e42db3a0bafdeff55083d683031ecc8a1e 100644 (file)
@@ -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;