summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/spirv
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2016-01-08 19:45:45 -0800
committerJordan Justen <[email protected]>2016-01-21 00:31:29 -0800
commita7e5b683cabc29ffc1c85367498fc6760b802fa5 (patch)
tree0ccc037c24e9bfa1000006f97eda44c7e5338371 /src/glsl/nir/spirv
parentbc035db3c8138d63e700a86b4137dfdba07e3d53 (diff)
nir/spirv: Support workgroup (shared) variable translation
Signed-off-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/nir/spirv')
-rw-r--r--src/glsl/nir/spirv/spirv_to_nir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c
index e8ce588e14e..de97612a2fc 100644
--- a/src/glsl/nir/spirv/spirv_to_nir.c
+++ b/src/glsl/nir/spirv/spirv_to_nir.c
@@ -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: