radeonsi: use nir_opt_shrink_vectors

It reduces VGPR usage, but the impact is almost none.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34432>
This commit is contained in:
Marek Olšák 2025-04-07 14:17:05 -04:00 committed by Marge Bot
parent b7eff9cd87
commit 177427877b

View file

@ -114,6 +114,7 @@ void si_nir_opts(struct si_screen *sscreen, struct nir_shader *nir, bool has_arr
}
NIR_PASS(progress, nir, nir_opt_undef);
NIR_PASS(progress, nir, nir_opt_shrink_vectors, true);
nir_opt_peephole_select_options peephole_discard_options = {
.limit = 0,