Commit cd7cb195 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Split draw_mode from unknown_draw

parent 710ac83c
......@@ -312,7 +312,10 @@ struct mali_payload_vertex_tiler {
u32 vertex_count;
u32 unk1; // 0x28000000
u32 draw_mode;
unsigned draw_mode : 4;
unsigned unknown_draw : 28;
u32 zero0;
u32 zero1;
......
......@@ -875,8 +875,10 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_prop("vertex_count = MALI_POSITIVE(%" PRId32 ")", v->vertex_count + 1);
panwrap_prop("unk1 = 0x%" PRIx32, v->unk1);
panwrap_prop("unknown_draw = 0x%" PRIx32, v->unknown_draw);
if (h->job_type == JOB_TYPE_TILER) {
panwrap_prop("draw_mode = 0x%" PRIx32 " | %s", v->draw_mode & ~(0xF), panwrap_gl_mode_name(v->draw_mode & 0xF));
panwrap_prop("draw_mode = %s", panwrap_gl_mode_name(v->draw_mode));
} else {
panwrap_prop("draw_mode = 0x%" PRIx32, v->draw_mode);
}
......
......@@ -211,7 +211,7 @@ trans_emit_vertex_payload(struct panfrost_context *ctx)
{
struct mali_payload_vertex_tiler payload = {
.unk1 = 0x28000000,
.draw_mode = 0x14000000,
.unknown_draw = 0x1400000,
.gl_enables = 0x4
};
......@@ -230,7 +230,7 @@ trans_emit_tiler_payload(struct panfrost_context *ctx)
{
struct mali_payload_vertex_tiler payload_1 = {
.unk1 = 0x28000000,
.draw_mode = 0x18038000,
.unknown_draw = 0x1803800,
.gl_enables = 0x105
};
......
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