agx: disable bounds check optimization

fixes Fallout 4. needs more investigation when we have better debug tooling.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32434>
This commit is contained in:
Alyssa Rosenzweig 2024-11-27 17:35:54 -05:00 committed by Marge Bot
parent 2b3b0cd339
commit 91ce434103

View file

@ -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);
}