diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2016-01-08 17:16:29 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2016-03-17 01:23:40 -0700 |
commit | 3c807607df4ab457037f2daa5ea9e5ce18392b7b (patch) | |
tree | 9f31a0e05d53086a2ce0df141907aa3726d937bc /src/compiler/nir/nir_lower_atomics.c | |
parent | 26f8262698d9f48ab5dbb85ef14cb7d5cefd9d53 (diff) |
nir: Add compute shader shared variable storage class
Previously we were receiving shared variable accesses via a lowered
intrinsic function from glsl. This change allows us to send in
variables instead. For example, when converting from SPIR-V.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/compiler/nir/nir_lower_atomics.c')
-rw-r--r-- | src/compiler/nir/nir_lower_atomics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_atomics.c b/src/compiler/nir/nir_lower_atomics.c index 1935a527c6..eefcb55a0a 100644 --- a/src/compiler/nir/nir_lower_atomics.c +++ b/src/compiler/nir/nir_lower_atomics.c @@ -63,7 +63,8 @@ lower_instr(nir_intrinsic_instr *instr, } if (instr->variables[0]->var->data.mode != nir_var_uniform && - instr->variables[0]->var->data.mode != nir_var_shader_storage) + instr->variables[0]->var->data.mode != nir_var_shader_storage && + instr->variables[0]->var->data.mode != nir_var_shared) return; /* atomics passed as function arguments can't be lowered */ void *mem_ctx = ralloc_parent(instr); |