diff options
author | Jason Ekstrand <[email protected]> | 2016-02-17 17:44:18 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-17 18:04:39 -0800 |
commit | 581e4468f96429066249cc3421a5ba0cc4c918de (patch) | |
tree | 3f2829b7d39f97e61f00314ed00f0ae3dda7b39a /src | |
parent | fed8b7f8177ed3e770df1989922ff5cc63eba895 (diff) |
nir/spirv: Add some more capabilities
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/spirv/spirv_to_nir.c | 11 |
1 files 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); |