From 177427877bb50ad7ba24abfa13e55a2684d804df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 7 Apr 2025 14:17:05 -0400 Subject: [PATCH] radeonsi: use nir_opt_shrink_vectors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It reduces VGPR usage, but the impact is almost none. Reviewed-by: Timur Kristóf Part-of: --- src/gallium/drivers/radeonsi/si_shader_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 710e4888f85..29743cc8c0f 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -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,