lima: refactor indexed draw indices upload
authorErico Nunes <nunes.erico@gmail.com>
Sat, 9 Nov 2019 12:50:07 +0000 (13:50 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 14 Dec 2019 06:44:43 +0000 (07:44 +0100)
commit2d7be5f01f003855fce8dffdbd9ee17c60b134b3
treefa00f028b2f984b0c55f9dc75a7fce2409bb8c48
parent270c282a43a2dc30558ebb709d4a25f8dbc71a58
lima: refactor indexed draw indices upload

As of this commit this is just a refactor in preparation to enable
support for more than 64k vertices.
To support splitting the draw_vbo call, indices shouldn't be re-uploaded
every time.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2445>
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c