From 91ce43410385e233430586850d99c989059d73c2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Nov 2024 17:35:54 -0500 Subject: [PATCH] agx: disable bounds check optimization fixes Fallout 4. needs more investigation when we have better debug tooling. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 4f0af5fd29b..dbd4f6eaad3 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -3119,7 +3119,10 @@ agx_optimize_nir(nir_shader *nir, bool soft_fault, uint16_t *preamble_size) nir_index_ssa_defs(impl); } - if (soft_fault) { + /* TODO: Reenable this pass. It's breaking Fallout 4 in ways I don't + * understand yet. + */ + if (soft_fault && 0) { NIR_PASS(_, nir, nir_shader_intrinsics_pass, optimize_bounds, nir_metadata_control_flow, NULL); }