diff options
author | Jordan Justen <[email protected]> | 2016-01-08 17:16:29 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-01-21 00:31:29 -0800 |
commit | 10db985fa06177289a9ce8a463d676845f54c141 (patch) | |
tree | e7e98fab8e46187a41d19f017e103dd045ec7f66 /src/glsl/nir/nir_sweep.c | |
parent | 65a5407931b2be0b4a01de56586ba4694ee8fc13 (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 <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_sweep.c')
-rw-r--r-- | src/glsl/nir/nir_sweep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_sweep.c b/src/glsl/nir/nir_sweep.c index 0710bdba7c7..5c62154ec7f 100644 --- a/src/glsl/nir/nir_sweep.c +++ b/src/glsl/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); |