Commit 055497fa authored by Boris Brezillon's avatar Boris Brezillon

panfrost: Fix indexed draws

->padded_count should be large enough to cover all vertices pointed by
the index array. Use the local vertex_count variable that contains the
updated vertex_count value for the indexed draw case.
Signed-off-by: Boris Brezillon's avatarBoris Brezillon <>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
parent 697eb8f9
......@@ -1601,7 +1601,7 @@ panfrost_draw_vbo(
ctx->padded_count = pan_expand_shift_odd(so);
} else {
ctx->padded_count = ctx->vertex_count;
ctx->padded_count = vertex_count;
/* Reset instancing state */
ctx->payloads[PIPE_SHADER_VERTEX].instance_shift = 0;
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