From 5270b65d3ebeba38da604ded23b6b500600a7ed1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 7 Jul 2025 15:10:23 -0400 Subject: [PATCH] agx: lower alu after scalarizing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 5bd5602860b..e7b21951f9e 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -3773,9 +3773,9 @@ agx_preprocess_nir(nir_shader *nir) /* Clean up deref gunk after lowering I/O */ NIR_PASS(_, nir, nir_opt_dce); + NIR_PASS(_, nir, nir_lower_alu_to_scalar, NULL, NULL); NIR_PASS(_, nir, nir_lower_frexp); NIR_PASS(_, nir, nir_lower_alu); - NIR_PASS(_, nir, nir_lower_alu_to_scalar, NULL, NULL); NIR_PASS(_, nir, nir_lower_load_const_to_scalar); NIR_PASS(_, nir, nir_lower_flrp, 16 | 32 | 64, false); NIR_PASS(_, nir, agx_lower_sincos);