Commit 0b3f0511 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

zero4 -> draw_start

parent d0441f7a
......@@ -343,7 +343,9 @@ struct mali_payload_vertex_tiler {
u32 zero3;
u32 gl_enables; // 0x5
u32 zero4;
/* Offset for first vertex in buffer */
u32 draw_start;
u32 zero5;
......
......@@ -888,6 +888,7 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_prop("line_width = %ff", v->line_width);
panwrap_prop("vertex_count = MALI_POSITIVE(%" PRId32 ")", v->vertex_count + 1);
panwrap_prop("unk1 = 0x%" PRIx32, v->unk1);
panwrap_prop("draw_start = 0x%" PRIx32, v->draw_start);
panwrap_prop("unknown_draw = 0x%" PRIx32, v->unknown_draw);
......@@ -920,12 +921,11 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
if (h->job_type == JOB_TYPE_VERTEX && v->index_count)
panwrap_msg("Warning: index count set in vertex job\n");
if (v->zero0 | v->zero1 | v->zero3 | v->zero4 | v->zero5 | v->zero6) {
panwrap_msg("Zero tripped, replay may be wrong\n");
if (v->zero0 | v->zero1 | v->zero3 | v->zero5 | v->zero6) {
panwrap_msg("Zero tripped\n");
panwrap_prop("zero0 = 0x%" PRIx32, v->zero0);
panwrap_prop("zero1 = 0x%" PRIx32, v->zero1);
panwrap_prop("zero3 = 0x%" PRIx32, v->zero3);
panwrap_prop("zero4 = 0x%" PRIx32, v->zero4);
panwrap_prop("zero5 = 0x%" PRIx32, v->zero5);
panwrap_prop("zero6 = 0x%" PRIx32, v->zero6);
}
......
......@@ -653,8 +653,8 @@ panfrost_draw_vbo(
struct panfrost_context *ctx = panfrost_context(pipe);
/* XXX: start? */
ctx->payload_vertex.zero4 = info->start;
ctx->payload_tiler.zero4 = info->start;
ctx->payload_vertex.draw_start = info->start;
ctx->payload_tiler.draw_start = info->start;
/* Draw mode is specified in the draw itself */
ctx->payload_tiler.draw_mode = g2m_draw_mode(info->mode);
......
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