agx: lower alu after scalarizing

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35989>
This commit is contained in:
Alyssa Rosenzweig 2025-07-07 15:10:23 -04:00 committed by Marge Bot
parent fc95397957
commit 5270b65d3e

View file

@ -3773,9 +3773,9 @@ agx_preprocess_nir(nir_shader *nir)
/* Clean up deref gunk after lowering I/O */
NIR_PASS(_, nir, nir_opt_dce);
NIR_PASS(_, nir, nir_lower_alu_to_scalar, NULL, NULL);
NIR_PASS(_, nir, nir_lower_frexp);
NIR_PASS(_, nir, nir_lower_alu);
NIR_PASS(_, nir, nir_lower_alu_to_scalar, NULL, NULL);
NIR_PASS(_, nir, nir_lower_load_const_to_scalar);
NIR_PASS(_, nir, nir_lower_flrp, 16 | 32 | 64, false);
NIR_PASS(_, nir, agx_lower_sincos);