From 999918bd01c624bc865b0d90a63fd1098b0abcdb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 16 May 2017 08:34:50 -0700 Subject: spirv: Add support for the StorageBuffer storage class Reviewed-by: Iago Toral Quiroga --- src/compiler/spirv/vtn_variables.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/spirv') diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 5af27bfdb11..4f21fdd4cac 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -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; -- cgit v1.2.3