From 0df0980fc4e044c48c917c8d7d1666d892a08bad Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 2 Sep 2023 09:26:41 -0400 Subject: [PATCH] agx: Enable sinking ALU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Daniel Schürmann Part-of: --- src/asahi/compiler/agx_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 6b99843e8c3..693981500ed 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -2306,7 +2306,8 @@ agx_optimize_nir(nir_shader *nir, unsigned *preamble_size) /* Cleanup optimizations */ 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; + nir_move_copies | nir_move_load_ssbo | + nir_move_alu; NIR_PASS_V(nir, nir_opt_sink, move_all); NIR_PASS_V(nir, nir_opt_move, move_all);