Mesa (main): asahi/decode: Fix decoding of draw calls

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 11 18:58:29 UTC 2021


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

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Jul 10 12:32:10 2021 -0400

asahi/decode: Fix decoding of draw calls

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

---

 src/asahi/lib/decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/asahi/lib/decode.c b/src/asahi/lib/decode.c
index f415a46f14f..1961d7d3fbe 100644
--- a/src/asahi/lib/decode.c
+++ b/src/asahi/lib/decode.c
@@ -409,7 +409,7 @@ agxdecode_cmd(const uint8_t *map, bool verbose)
 
       return AGX_BIND_PIPELINE_LENGTH + 1;
    } else if (map[1] == 0xc0 && map[2] == 0x61) {
-      DUMP_CL(DRAW, map, "Draw");
+      DUMP_CL(DRAW, map - 1, "Draw");
       return AGX_DRAW_LENGTH;
    } else if (map[1] == 0x00 && map[2] == 0x00) {
       /* No need to explicitly dump the record */



More information about the mesa-commit mailing list