From: Jordan Justen Date: Sat, 9 Jan 2016 03:45:45 +0000 (-0800) Subject: nir/spirv: Support workgroup (shared) variable translation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7e5b683cabc29ffc1c85367498fc6760b802fa5;p=mesa.git nir/spirv: Support workgroup (shared) variable translation Signed-off-by: Jordan Justen --- 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: