Module: Mesa
Branch: main
Commit: 19a0db31eb9c99c4f0ea2033d48ec5fe1385846f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=19a0db31eb9c99c4f0ea2033d48ec5fe1385846f

Author: Alyssa Rosenzweig <[email protected]>
Date:   Wed Nov 30 12:55:35 2022 -0500

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19996>

---

 src/gallium/drivers/asahi/agx_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/asahi/agx_state.c 
b/src/gallium/drivers/asahi/agx_state.c
index 8ca7763f2cb..90f7b129453 100644
--- a/src/gallium/drivers/asahi/agx_state.c
+++ b/src/gallium/drivers/asahi/agx_state.c
@@ -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);

Reply via email to