lima: split draw calls on 64k vertices
authorErico Nunes <nunes.erico@gmail.com>
Sat, 9 Nov 2019 12:50:52 +0000 (13:50 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 14 Dec 2019 06:44:43 +0000 (07:44 +0100)
commitce52b49348111d6e6277d1899d39440228ceaed8
tree6519e3dcc6a47ca92c9b123ab91bef3fecb03299
parent6d46d0e82b5214120aaa4d600e9fa0a502050c56
lima: split draw calls on 64k vertices

The Mali400 only supports draws with up to 64k vertices per command.
To handle this, break the draw_vbo call into multiple commands.
Indexed drawing is left to a separate code path.
This implementation was ported from vc4_draw_vbo.

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