spirv: Add support for the StorageBuffer storage class
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 May 2017 15:34:50 +0000 (08:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Jul 2017 16:43:12 +0000 (09:43 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/spirv/vtn_variables.c

index 5af27bfdb112d98e0fe24081ba31da1eba968b89..4f21fdd4cac5bdb6c8823e31fa3f1d63c81bf33e 100644 (file)
@@ -1405,6 +1405,10 @@ vtn_storage_class_to_mode(SpvStorageClass class,
          assert(!"Invalid uniform variable type");
       }
       break;
+   case SpvStorageClassStorageBuffer:
+      mode = vtn_variable_mode_ssbo;
+      nir_mode = 0;
+      break;
    case SpvStorageClassUniformConstant:
       if (glsl_type_is_image(interface_type->type)) {
          mode = vtn_variable_mode_image;