Mesa (master): spirv: Add support for the StorageBuffer storage class

Jason Ekstrand jekstrand at kemper.freedesktop.org
Tue Jul 18 16:46:32 UTC 2017


Module: Mesa
Branch: master
Commit: 999918bd01c624bc865b0d90a63fd1098b0abcdb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=999918bd01c624bc865b0d90a63fd1098b0abcdb

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue May 16 08:34:50 2017 -0700

spirv: Add support for the StorageBuffer storage class

Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

---

 src/compiler/spirv/vtn_variables.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 5af27bfdb1..4f21fdd4ca 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;




More information about the mesa-commit mailing list