From: Jason Ekstrand Date: Tue, 16 May 2017 15:34:50 +0000 (-0700) Subject: spirv: Add support for the StorageBuffer storage class X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=999918bd01c624bc865b0d90a63fd1098b0abcdb;p=mesa.git spirv: Add support for the StorageBuffer storage class Reviewed-by: Iago Toral Quiroga --- 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;