nir/spirv: Add some more capabilities
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Feb 2016 01:44:18 +0000 (17:44 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Feb 2016 02:04:39 +0000 (18:04 -0800)
src/compiler/nir/spirv/spirv_to_nir.c

index b5e7f536e2eb2b3c22e0448faca612eddbab09de..a50a581cfb6d1314a176dc8a4e42a223d38afd10 100644 (file)
@@ -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);