summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-06-03 14:36:04 -0700
committerEric Anholt <eric@anholt.net>2016-07-04 16:33:22 -0700
commit200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba (patch)
tree0b962b15999588d421df9bf40a52857bc1cfc8a2 /src/gallium/drivers/vc4/vc4_qir.c
parentaa76ba6f2fb0d6438b2b652d9fa466b6cf77fa31 (diff)
downloadexternal_mesa3d-200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba.zip
external_mesa3d-200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba.tar.gz
external_mesa3d-200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba.tar.bz2
vc4: Move SF removal to a separate peephole pass.
The DCE pass is going to change significantly to handle control flow, while we don't really need to change it for the SF handling. We also need to add some more SF peephole optimization for SF updates generated by control flow support. No change on shader-db.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 4cdc8a2..b36c0d9 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -540,6 +540,7 @@ qir_optimize(struct vc4_compile *c)
OPTPASS(qir_opt_algebraic);
OPTPASS(qir_opt_constant_folding);
OPTPASS(qir_opt_copy_propagation);
+ OPTPASS(qir_opt_peephole_sf);
OPTPASS(qir_opt_dead_code);
OPTPASS(qir_opt_small_immediates);
OPTPASS(qir_opt_vpm);