panfrost: Fix indexed draws
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 13:22:24 +0000 (15:22 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 23 Sep 2019 07:47:41 +0000 (09:47 +0200)
commit055497fa84d6b17797ca5a2ae90a8f7b8b3d3374
tree16262883e46f44616750454176a685457d4ae08c
parent697eb8f9735070f2ca4104d3e7b6c0302c5336fc
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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c