From 343f4f886faa9a0b4d1ff831b71623f49da2b5aa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 2 Apr 2022 22:18:01 -0400 Subject: [PATCH] asahi: Split unknown field in segment list header Seen as 0x8000. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/decode.c | 1 + src/asahi/lib/io.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/asahi/lib/decode.c b/src/asahi/lib/decode.c index e35c535e218..6f04443de61 100644 --- a/src/asahi/lib/decode.c +++ b/src/asahi/lib/decode.c @@ -143,6 +143,7 @@ agxdecode_decode_segment_list(void *segment_list) hdr->kernel_commands_start_offset); fprintf(agxdecode_dump_stream, " Kernel commands end offset: %u\n", hdr->kernel_commands_end_offset); + fprintf(agxdecode_dump_stream, " Unknown: 0x%X\n", hdr->unk); if (hdr->padding[0] || hdr->padding[1]) fprintf(agxdecode_dump_stream, "ERROR - padding tripped\n"); diff --git a/src/asahi/lib/io.h b/src/asahi/lib/io.h index 35e00255e6d..582b69eab5d 100644 --- a/src/asahi/lib/io.h +++ b/src/asahi/lib/io.h @@ -207,7 +207,8 @@ struct agx_map_header { /* IOAccelSegmentListHeader */ uint64_t cmdbuf_id; // GUID uint32_t segment_count; - uint32_t length; + uint16_t length; + uint16_t unk; // 0x8000 uint64_t encoder_id; // GUID /* IOAccelSegmentResourceListHeader */