nir/spirv: Support workgroup (shared) variable translation
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 9 Jan 2016 03:45:45 +0000 (19:45 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Jan 2016 08:31:29 +0000 (00:31 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/nir/spirv/spirv_to_nir.c

index e8ce588e14e9b7c4e9b3847e3e18b3d19b696700..de97612a2fce95827361e206d53ef44b8d2ddca9 100644 (file)
@@ -1981,6 +1981,8 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
          var->interface_type = NULL;
          break;
       case SpvStorageClassWorkgroup:
+         var->data.mode = nir_var_shared;
+         break;
       case SpvStorageClassCrossWorkgroup:
       case SpvStorageClassGeneric:
       case SpvStorageClassAtomicCounter: