summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_sweep.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2016-01-08 17:16:29 -0800
committerJordan Justen <jordan.l.justen@intel.com>2016-03-17 01:23:40 -0700
commit3c807607df4ab457037f2daa5ea9e5ce18392b7b (patch)
tree9f31a0e05d53086a2ce0df141907aa3726d937bc /src/compiler/nir/nir_sweep.c
parent26f8262698d9f48ab5dbb85ef14cb7d5cefd9d53 (diff)
downloadexternal_mesa3d-3c807607df4ab457037f2daa5ea9e5ce18392b7b.zip
external_mesa3d-3c807607df4ab457037f2daa5ea9e5ce18392b7b.tar.gz
external_mesa3d-3c807607df4ab457037f2daa5ea9e5ce18392b7b.tar.bz2
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_sweep.c')
-rw-r--r--src/compiler/nir/nir_sweep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_sweep.c b/src/compiler/nir/nir_sweep.c
index 0710bdb..5c62154 100644
--- a/src/compiler/nir/nir_sweep.c
+++ b/src/compiler/nir/nir_sweep.c
@@ -159,6 +159,7 @@ nir_sweep(nir_shader *nir)
steal_list(nir, nir_variable, &nir->uniforms);
steal_list(nir, nir_variable, &nir->inputs);
steal_list(nir, nir_variable, &nir->outputs);
+ steal_list(nir, nir_variable, &nir->shared);
steal_list(nir, nir_variable, &nir->globals);
steal_list(nir, nir_variable, &nir->system_values);
steal_list(nir, nir_register, &nir->registers);