mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
asahi/decode: Print some IOGPU stuff
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
This commit is contained in:
parent
da85e84206
commit
05dc72f863
1 changed files with 12 additions and 0 deletions
|
|
@ -455,6 +455,18 @@ agxdecode_cmdstream(unsigned cmdbuf_handle, unsigned map_handle, bool verbose)
|
|||
/* Before decoding anything, validate the map. Set bo->mapped fields */
|
||||
agxdecode_validate_map(map->ptr.cpu);
|
||||
|
||||
/* Print the IOGPU stuff */
|
||||
agx_unpack(agxdecode_dump_stream, cmdbuf->ptr.cpu, IOGPU_HEADER, cmd);
|
||||
DUMP_UNPACKED(IOGPU_HEADER, cmd, "IOGPU Header\n");
|
||||
assert(cmd.attachment_offset_1 == cmd.attachment_offset_2);
|
||||
|
||||
uint32_t *attachments = (uint32_t *) ((uint8_t *) cmdbuf->ptr.cpu + cmd.attachment_offset_1);
|
||||
unsigned attachment_count = attachments[3];
|
||||
for (unsigned i = 0; i < attachment_count; ++i) {
|
||||
uint32_t *ptr = attachments + 4 + (i * AGX_IOGPU_ATTACHMENT_LENGTH / 4);
|
||||
DUMP_CL(IOGPU_ATTACHMENT, ptr, "Attachment");
|
||||
}
|
||||
|
||||
/* TODO: What else is in here? */
|
||||
uint64_t *encoder = ((uint64_t *) cmdbuf->ptr.cpu) + 7;
|
||||
agxdecode_stateful(*encoder, "Encoder", agxdecode_cmd, verbose);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue