Commit 14005ecf authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix according to kernel module

parent 797a0863
......@@ -621,7 +621,7 @@ struct mali_payload_fragment {
struct mali_single_framebuffer {
u32 unknown1;
u32 flags;
u32 unknown2;
u64 unknown_address_0;
u64 zero1;
u64 zero0;
......@@ -684,7 +684,7 @@ struct mali_single_framebuffer {
/* Very weird format, see generation code in trans_builder.c */
u32 resolution_check;
u32 unknown9;
u32 tiler_flags;
u64 unknown_address_1; /* Pointing towards... a zero buffer? */
u64 unknown_address_2;
......
......@@ -244,7 +244,7 @@ panwrap_replay_sfbd(uint64_t gpu_va, int job_no)
panwrap_indent++;
panwrap_prop("unknown1 = 0x%" PRIx32, s->unknown1);
panwrap_prop("flags = 0x%" PRIx32, s->flags);
panwrap_prop("unknown2 = 0x%" PRIx32, s->unknown2);
panwrap_log(".format = ");
panwrap_log_decoded_flags(fb_fmt_flag_info, s->format);
......@@ -296,7 +296,7 @@ panwrap_replay_sfbd(uint64_t gpu_va, int job_no)
MEMORY_PROP(s, unknown_address_2);
panwrap_prop("resolution_check = 0x%" PRIx32, s->resolution_check);
panwrap_prop("unknown9 = 0x%" PRIx32, s->unknown9);
panwrap_prop("tiler_flags = 0x%" PRIx32, s->tiler_flags);
MEMORY_PROP(s, tiler_heap_free);
MEMORY_PROP(s, tiler_heap_end);
......
......@@ -78,13 +78,13 @@ struct mali_single_framebuffer
trans_emit_fbd(struct panfrost_context *ctx)
{
struct mali_single_framebuffer framebuffer = {
.flags = 0x1f,
.unknown2 = 0x1f,
.format = 0x30000000,
.clear_flags = 0x1000,
.unknown_address_0 = ctx->scratchpad.gpu,
.unknown_address_1 = ctx->scratchpad.gpu + 0x6000,
.unknown_address_2 = ctx->scratchpad.gpu + 0x6200,
.unknown9 = 0xf0,
.tiler_flags = 0xf0,
.tiler_heap_free = ctx->tiler_heap.gpu,
.tiler_heap_end = ctx->tiler_heap.gpu + ctx->tiler_heap.size,
};
......
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