aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_lower_atomics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/gl_nir_lower_atomics.c')
-rw-r--r--src/compiler/glsl/gl_nir_lower_atomics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/gl_nir_lower_atomics.c b/src/compiler/glsl/gl_nir_lower_atomics.c
index 8bbce00e467..60642e7130a 100644
--- a/src/compiler/glsl/gl_nir_lower_atomics.c
+++ b/src/compiler/glsl/gl_nir_lower_atomics.c
@@ -102,7 +102,7 @@ lower_deref_instr(nir_builder *b, nir_intrinsic_instr *instr,
if (var->data.mode != nir_var_uniform &&
var->data.mode != nir_var_mem_ssbo &&
- var->data.mode != nir_var_shared)
+ var->data.mode != nir_var_mem_shared)
return false; /* atomics passed as function arguments can't be lowered */
const unsigned uniform_loc = var->data.location;