From 10db985fa06177289a9ce8a463d676845f54c141 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 8 Jan 2016 17:16:29 -0800 Subject: 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 --- src/glsl/nir/nir_sweep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/nir/nir_sweep.c') 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); -- cgit v1.2.3