mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
vc4: Also enable phi elimination.
This avoids a bunch of code gen regressions when enabling loops in vc4. Prior to that, the GLSL that would have generated these optimizable phi nodes was being lowered to csels between either (undef, a) or (a, a), and those were being dealt with by nir_opt_undef and nir_opt_algebraic.
This commit is contained in:
parent
e8959ba7af
commit
6858f05924
1 changed files with 1 additions and 0 deletions
|
|
@ -1336,6 +1336,7 @@ vc4_optimize_nir(struct nir_shader *s)
|
|||
NIR_PASS_V(s, nir_lower_phis_to_scalar);
|
||||
|
||||
NIR_PASS(progress, s, nir_copy_prop);
|
||||
NIR_PASS(progress, s, nir_opt_remove_phis);
|
||||
NIR_PASS(progress, s, nir_opt_dce);
|
||||
NIR_PASS(progress, s, nir_opt_dead_cf);
|
||||
NIR_PASS(progress, s, nir_opt_cse);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue