From adf3cbc04cb0bb39b814b0b3ed28e3a7603e6fb4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 26 Oct 2022 21:36:13 -0400 Subject: [PATCH] agx: Use nir_opt_phi_precision No shader-db changes, but helped a custom shader I wrote to test loops. My shader-db is too small. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index ddc7b2bb5a0..e4df016a258 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1680,6 +1680,7 @@ agx_optimize_nir(nir_shader *nir, unsigned *preamble_size) NIR_PASS(progress, nir, nir_opt_dead_cf); NIR_PASS(progress, nir, nir_opt_cse); NIR_PASS(progress, nir, nir_opt_peephole_select, 64, false, true); + NIR_PASS(progress, nir, nir_opt_phi_precision); NIR_PASS(progress, nir, nir_opt_algebraic); NIR_PASS(progress, nir, nir_opt_constant_folding);