diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2021-07-11 14:43:37 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2021-07-11 14:48:59 -0400 |
commit | da85e84206503045a38fcfa17e78c1d27f709ff5 (patch) | |
tree | 09d14eef2c6061d9fa6d809f8ff8d20e94e51be7 /src/asahi | |
parent | 15206428b98a419c5be1ae1dde094e1d5a8638cd (diff) |
asahi/decode: Print clear/store pipelines
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
Diffstat (limited to 'src/asahi')
-rw-r--r-- | src/asahi/lib/decode.c | 14 |
1 files changed, 14 insertions, 0 deletions
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(); } |