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

Author: Alyssa Rosenzweig <aly...@rosenzweig.io>
Date:   Tue May  4 22:55:26 2021 -0400

asahi: Call nir_lower_fragcolor

Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10720>

---

 src/gallium/drivers/asahi/agx_state.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/asahi/agx_state.c 
b/src/gallium/drivers/asahi/agx_state.c
index 38f5d7b7f40..25cf86df1be 100644
--- a/src/gallium/drivers/asahi/agx_state.c
+++ b/src/gallium/drivers/asahi/agx_state.c
@@ -644,6 +644,9 @@ agx_update_shader(struct agx_context *ctx, struct 
agx_compiled_shader **out,
       NIR_PASS_V(nir, nir_lower_blend, opts);
    }
 
+   if (stage == PIPE_SHADER_FRAGMENT)
+      NIR_PASS_V(nir, nir_lower_fragcolor, key->nr_cbufs);
+
    agx_compile_shader_nir(nir, &key->base, &binary, &compiled->info);
 
    /* TODO: emit this properly */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to