From 4ca52cde7a3f2769ac49f6eb73d25227c2a3ad37 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 18 Sep 2024 13:32:46 -0400 Subject: [PATCH] agx: increase lower vars to scratch thresh should reduce silliness. Signed-off-by: Alyssa Rosenzweig 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 3ad27c10f87..1a13bcb82a6 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -3598,7 +3598,7 @@ agx_preprocess_nir(nir_shader *nir, const nir_shader *libagx) NIR_PASS(_, nir, nir_lower_vars_to_ssa); /* Lower large arrays to scratch and small arrays to csel */ - NIR_PASS(_, nir, nir_lower_vars_to_scratch, nir_var_function_temp, 16, + NIR_PASS(_, nir, nir_lower_vars_to_scratch, nir_var_function_temp, 256, glsl_get_natural_size_align_bytes, glsl_get_natural_size_align_bytes); NIR_PASS(_, nir, nir_lower_indirect_derefs, nir_var_function_temp, ~0);