From: Jason Ekstrand Date: Thu, 18 Feb 2016 01:44:18 +0000 (-0800) Subject: nir/spirv: Add some more capabilities X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=581e4468f96429066249cc3421a5ba0cc4c918de;p=mesa.git nir/spirv: Add some more capabilities --- 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);