Mesa (main): agx: Assume lower_fragcolor has been called

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 10 03:38:02 UTC 2021


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

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue May  4 22:55:37 2021 -0400

agx: Assume lower_fragcolor has been called

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

---

 src/asahi/compiler/agx_compile.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c
index a7f4f0f09a3..b344ecce532 100644
--- a/src/asahi/compiler/agx_compile.c
+++ b/src/asahi/compiler/agx_compile.c
@@ -168,9 +168,8 @@ agx_emit_fragment_out(agx_builder *b, nir_intrinsic_instr *instr)
 
    unsigned loc = var->data.location;
    assert(var->data.index == 0 && "todo: dual-source blending");
-   assert((loc == FRAG_RESULT_COLOR || loc == FRAG_RESULT_DATA0) && "todo: MRT");
-   unsigned rt = (loc == FRAG_RESULT_COLOR) ? 0 :
-                 (loc - FRAG_RESULT_DATA0);
+   assert(loc == FRAG_RESULT_DATA0 && "todo: MRT");
+   unsigned rt = (loc - FRAG_RESULT_DATA0);
 
    /* TODO: Reverse-engineer interactions with MRT */
    agx_writeout(b, 0xC200);



More information about the mesa-commit mailing list