summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-04-22 16:03:07 -0700
committerEric Anholt <[email protected]>2016-05-02 11:06:29 -0700
commit2f98bc100d471b0ec7ea50bc3ab05ca118accbec (patch)
tree1369648779f6a6fc3558a8635c36a9e6ce75e599 /src/gallium/drivers/vc4
parent4a2ad8500d40038661a99c81e88d4660ca98c032 (diff)
vc4: Scalarize phi nodes as well.
This makes fewer programs with loops assertion fail, replacing them with the rendering failure warning.
Diffstat (limited to 'src/gallium/drivers/vc4')
-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 4cee99f1577..692d9d6d7d9 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -1368,6 +1368,7 @@ vc4_optimize_nir(struct nir_shader *s)
NIR_PASS_V(s, nir_lower_vars_to_ssa);
NIR_PASS_V(s, nir_lower_alu_to_scalar);
+ NIR_PASS_V(s, nir_lower_phis_to_scalar);
NIR_PASS(progress, s, nir_copy_prop);
NIR_PASS(progress, s, nir_opt_dce);