summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-18 15:22:24 +0200
committerBoris Brezillon <[email protected]>2019-09-23 09:47:41 +0200
commit055497fa84d6b17797ca5a2ae90a8f7b8b3d3374 (patch)
tree16262883e46f44616750454176a685457d4ae08c /src
parent697eb8f9735070f2ca4104d3e7b6c0302c5336fc (diff)
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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 08b799b66bf..1b8558c1c2c 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -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;