diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index cbc2ca9a8b5..d4fd385feb0 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1966,6 +1966,7 @@ agx_optimize_nir(nir_shader *nir, unsigned *preamble_size) progress = false; NIR_PASS(progress, nir, nir_opt_algebraic); + NIR_PASS(progress, nir, nir_opt_constant_folding); NIR_PASS(progress, nir, nir_opt_dce); } while (progress); }