From ca70270a5ec8795d5333e212d4407634fd234658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Sat, 7 Dec 2024 21:47:06 +0100 Subject: [PATCH] r300: add some more nir cleanup compiler passes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need this to prevent some regressions in the later commits. Signed-off-by: Pavel Ondračka Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 7fe8aaa4549..e0707b1a3dd 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -2345,6 +2345,8 @@ nir_to_rc(struct nir_shader *s, struct pipe_screen *screen, } NIR_PASS_V(s, r300_nir_opt_algebraic_late); NIR_PASS_V(s, nir_opt_dce); + NIR_PASS_V(s, nir_opt_shrink_vectors, false); + NIR_PASS_V(s, nir_opt_dce); nir_move_options move_all = nir_move_const_undef | nir_move_load_ubo | nir_move_load_input | nir_move_comparisons | nir_move_copies | nir_move_load_ssbo;