vc4: Scalarize phi nodes as well.
This makes fewer programs with loops assertion fail, replacing them with the rendering failure warning.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user