From 581e4468f96429066249cc3421a5ba0cc4c918de Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 17 Feb 2016 17:44:18 -0800 Subject: [PATCH] nir/spirv: Add some more capabilities --- src/compiler/nir/spirv/spirv_to_nir.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/spirv/spirv_to_nir.c b/src/compiler/nir/spirv/spirv_to_nir.c index b5e7f536e2e..a50a581cfb6 100644 --- a/src/compiler/nir/spirv/spirv_to_nir.c +++ b/src/compiler/nir/spirv/spirv_to_nir.c @@ -2148,17 +2148,24 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode, /* Unhandled, but these are for debug so that's ok. */ break; - case SpvOpCapability: - switch ((SpvCapability)w[1]) { + case SpvOpCapability: { + SpvCapability cap = w[1]; + switch (cap) { case SpvCapabilityMatrix: case SpvCapabilityShader: case SpvCapabilityGeometry: + case SpvCapabilityUniformBufferArrayDynamicIndexing: + case SpvCapabilitySampledImageArrayDynamicIndexing: + case SpvCapabilityStorageBufferArrayDynamicIndexing: + case SpvCapabilityStorageImageArrayDynamicIndexing: case SpvCapabilityClipDistance: + case SpvCapabilityImageQuery: break; default: assert(!"Unsupported capability"); } break; + } case SpvOpExtInstImport: vtn_handle_extension(b, opcode, w, count); -- 2.30.2