summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_clone.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2016-01-08 17:16:29 -0800
committerJordan Justen <[email protected]>2016-01-21 00:31:29 -0800
commit10db985fa06177289a9ce8a463d676845f54c141 (patch)
treee7e98fab8e46187a41d19f017e103dd045ec7f66 /src/glsl/nir/nir_clone.c
parent65a5407931b2be0b4a01de56586ba4694ee8fc13 (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_clone.c')
-rw-r--r--src/glsl/nir/nir_clone.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_clone.c b/src/glsl/nir/nir_clone.c
index 0ea8da77421..702219a5a34 100644
--- a/src/glsl/nir/nir_clone.c
+++ b/src/glsl/nir/nir_clone.c
@@ -673,6 +673,7 @@ nir_shader_clone(void *mem_ctx, const nir_shader *s)
clone_var_list(&state, &ns->uniforms, &s->uniforms);
clone_var_list(&state, &ns->inputs, &s->inputs);
clone_var_list(&state, &ns->outputs, &s->outputs);
+ clone_var_list(&state, &ns->shared, &s->shared);
clone_var_list(&state, &ns->globals, &s->globals);
clone_var_list(&state, &ns->system_values, &s->system_values);