From a7e5b683cabc29ffc1c85367498fc6760b802fa5 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 8 Jan 2016 19:45:45 -0800 Subject: [PATCH] nir/spirv: Support workgroup (shared) variable translation Signed-off-by: Jordan Justen --- src/glsl/nir/spirv/spirv_to_nir.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2