Mesa (main): asahi/decode: Print clear/store pipelines

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


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

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Jul 11 14:43:37 2021 -0400

asahi/decode: Print clear/store pipelines

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 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/asahi/lib/decode.c b/src/asahi/lib/decode.c
index 1961d7d3fbe..28719f628f2 100644
--- a/src/asahi/lib/decode.c
+++ b/src/asahi/lib/decode.c
@@ -459,6 +459,20 @@ agxdecode_cmdstream(unsigned cmdbuf_handle, unsigned map_handle, bool verbose)
    uint64_t *encoder = ((uint64_t *) cmdbuf->ptr.cpu) + 7;
    agxdecode_stateful(*encoder, "Encoder", agxdecode_cmd, verbose);
 
+   uint64_t *clear_pipeline = ((uint64_t *) cmdbuf->ptr.cpu) + 79;
+   if (*clear_pipeline) {
+      assert(((*clear_pipeline) & 0xF) == 0x4);
+      agxdecode_stateful((*clear_pipeline) & ~0xF, "Clear pipeline",
+            agxdecode_pipeline, verbose);
+   }
+
+   uint64_t *store_pipeline = ((uint64_t *) cmdbuf->ptr.cpu) + 82;
+   if (*store_pipeline) {
+      assert(((*store_pipeline) & 0xF) == 0x4);
+      agxdecode_stateful((*store_pipeline) & ~0xF, "Store pipeline",
+            agxdecode_pipeline, verbose);
+   }
+
    agxdecode_map_read_write();
 }
 



More information about the mesa-commit mailing list