radv: Call nir_opt_dead_cf in radv_optimize_nir_algebraic.

In case lowering passes added dead CF.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28408>
This commit is contained in:
Timur Kristóf 2024-03-28 20:27:45 +01:00 committed by Marge Bot
parent 315cacddbd
commit 476a42c02c

View file

@ -201,6 +201,7 @@ radv_optimize_nir_algebraic(nir_shader *nir, bool opt_offsets)
NIR_PASS(_, nir, nir_opt_constant_folding);
NIR_PASS(_, nir, nir_opt_cse);
NIR_PASS(more_algebraic, nir, nir_opt_algebraic);
NIR_PASS(_, nir, nir_opt_dead_cf);
}
if (opt_offsets) {