Commit 28bd562c authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Identify texture dimensions

parent 3badd43c
......@@ -170,9 +170,13 @@ enum mali_tex_format {
MALI_RGB24 = 0xA,
};
struct mali_texture_descriptor {
uint32_t unknown0;
/* Purposeful off-by-one: (64, 64) texture stored as (63, 63) in these
* fields -- adjust for that */
uint16_t width;
uint16_t height;
uint32_t unknown1;
/* Unknown base: 0x118b3000
......
......@@ -488,7 +488,9 @@ void panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header
panwrap_log("struct mali_texture_descriptor texture_descriptor_%d = {\n", job_no);
panwrap_indent++;
panwrap_prop("unknown0 = 0x%" PRIx32, t->unknown0);
panwrap_prop("width = 0x%" PRIx16 " - 1", t->width + 1);
panwrap_prop("height = 0x%" PRIx16 " - 1", t->height + 1);
panwrap_prop("unknown1 = 0x%" PRIx32, t->unknown1);
panwrap_prop("format1 = 0x%" PRIx32, t->format1);
panwrap_prop("unknown3 = 0x%" PRIx32, t->unknown3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment