diff options
author | Jason Ekstrand <[email protected]> | 2017-05-16 08:34:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-18 09:43:12 -0700 |
commit | 999918bd01c624bc865b0d90a63fd1098b0abcdb (patch) | |
tree | da98c407d7eb24231561ab8dc8841debbd7f44d1 /src/compiler/spirv | |
parent | 2dd4e2ece32f86d7973cf444c7dae06d4cb1e40e (diff) |
spirv: Add support for the StorageBuffer storage class
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |