summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_program.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-06-25 18:45:28 -0700
committerEric Anholt <eric@anholt.net>2016-07-04 16:33:22 -0700
commit8a52f03f5deeb36ea4d58d56fbb711a2004d7587 (patch)
tree139c0edb95a8ad91921146ecff41c8117afb7faf /src/gallium/drivers/vc4/vc4_program.c
parent8f2af4763a60c5ea5f64829321ae97bbfa51a4ce (diff)
downloadexternal_mesa3d-8a52f03f5deeb36ea4d58d56fbb711a2004d7587.zip
external_mesa3d-8a52f03f5deeb36ea4d58d56fbb711a2004d7587.tar.gz
external_mesa3d-8a52f03f5deeb36ea4d58d56fbb711a2004d7587.tar.bz2
vc4: Enable dead CF elimination.
Now that we're about to start generating control flow in our NIR, we want this in place. It optimizes things frequently in the CS, when the GL VS has control flow that doesn't affect the vertex position.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 5d036eb..8305459 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -1337,6 +1337,7 @@ vc4_optimize_nir(struct nir_shader *s)
NIR_PASS(progress, s, nir_copy_prop);
NIR_PASS(progress, s, nir_opt_dce);
+ NIR_PASS(progress, s, nir_opt_dead_cf);
NIR_PASS(progress, s, nir_opt_cse);
NIR_PASS(progress, s, nir_opt_peephole_select);
NIR_PASS(progress, s, nir_opt_algebraic);