* of compute jobs. Superficially resembles a single framebuffer descriptor */
struct mali_compute_fbd {
- u32 unknown[64];
+ u32 unknown1[16];
+ mali_ptr unknown2;
+ mali_ptr unknown3;
+ u32 unknown4[16];
+ u32 unknown5[18];
+ mali_ptr unknown6;
+ u32 unknown7[4];
+ mali_ptr unknown8;
+ mali_ptr unknown9;
+ u32 unknown10[16];
} __attribute__((packed));
/* Format bits for the render target flags */
printf("},\n");
}
+static void
+pandecode_u32_slide(unsigned name, const u32 *slide, unsigned count)
+{
+ pandecode_log(".unknown%d = {", name);
+
+ for (int i = 0; i < count; ++i)
+ printf("%X, ", slide[i]);
+
+ pandecode_log("},\n");
+}
+
+#define SHORT_SLIDE(num) \
+ pandecode_u32_slide(num, s->unknown ## num, ARRAY_SIZE(s->unknown ## num))
+
static void
pandecode_compute_fbd(uint64_t gpu_va, int job_no)
{
pandecode_log("struct mali_compute_fbd framebuffer_%d = {\n", job_no);
pandecode_indent++;
- pandecode_log(".unknown = {");
-
- for (int i = 0; i < sizeof(s->unknown) / sizeof(s->unknown[0]); ++i)
- printf("%X, ", s->unknown[i]);
-
- pandecode_log("},\n");
+ SHORT_SLIDE(1);
+ MEMORY_PROP(s, unknown2);
+ MEMORY_PROP(s, unknown3);
+ SHORT_SLIDE(4);
+ SHORT_SLIDE(5);
+ MEMORY_PROP(s, unknown6);
+ SHORT_SLIDE(7);
+ MEMORY_PROP(s, unknown8);
+ MEMORY_PROP(s, unknown9);
+ SHORT_SLIDE(10);
pandecode_indent--;
printf("},\n");