From 2f98bc100d471b0ec7ea50bc3ab05ca118accbec Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 22 Apr 2016 16:03:07 -0700 Subject: [PATCH] vc4: Scalarize phi nodes as well. This makes fewer programs with loops assertion fail, replacing them with the rendering failure warning. --- src/gallium/drivers/vc4/vc4_program.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0