asahi: Decode resource allocation requests

We already know much of this structure, let's pretty print to simplify
our traces.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>
This commit is contained in:
Alyssa Rosenzweig 2022-04-03 10:34:00 -04:00
parent 0c120cf141
commit ca9b1d48fe
1 changed files with 12 additions and 0 deletions

View File

@ -187,6 +187,18 @@ agx_memory_type_name(uint32_t type)
}
}
struct agx_allocate_resource_req {
uint32_t unk0[5];
uint32_t mode;
uint32_t unk6[6];
uint64_t cpu_fixed;
uint64_t cpu_fixed_2;
uint32_t size;
uint32_t unk17[3];
uint32_t flags;
uint32_t unk21[3];
} __attribute__((packed));
struct agx_allocate_resource_resp {
/* Returned GPU virtual address */
uint64_t gpu_va;