summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-25 14:26:11 -0700
committerJason Ekstrand <[email protected]>2016-04-13 15:45:10 -0700
commitb63a98b1211d22f759ae9c80b2270fe2d3b2639e (patch)
tree7f1e411c91ee2ad01b0df3fdddf48a3168d9f2ac /src/gallium/drivers/freedreno
parent505a8fbdf8f2b6d2aaab5a04244cd3329f9dbe97 (diff)
nir/dead_variables: Configurably work with any variable mode
The old version of the pass only worked on globals and locals and always left inputs, outputs, uniforms, etc. alone. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
index b3b6346c8a5..897b3b963be 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
@@ -142,7 +142,7 @@ ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
} while (progress);
- OPT_V(s, nir_remove_dead_variables);
+ OPT_V(s, nir_remove_dead_variables, nir_var_local);
if (fd_mesa_debug & FD_DBG_DISASM) {
debug_printf("----------------------\n");