asahi: Use NIR_PASS_V for agx_nir_lower_tilebuffer

This ensures that printing shaders before and after the NIR pass still works
with the standard NIR debug options.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19996>
This commit is contained in:
Alyssa Rosenzweig 2022-11-30 12:55:35 -05:00 committed by Marge Bot
parent 0af08acca5
commit 19a0db31eb

View file

@ -1188,7 +1188,7 @@ agx_compile_variant(struct agx_device *dev,
struct agx_tilebuffer_layout tib =
agx_build_tilebuffer_layout(key->rt_formats, key->nr_cbufs, 1);
agx_nir_lower_tilebuffer(nir, &tib);
NIR_PASS_V(nir, agx_nir_lower_tilebuffer, &tib);
}
agx_compile_shader_nir(nir, &key->base, debug, &binary, &compiled->info);