vc4: move the draw splitting routine to shared code
authorErico Nunes <nunes.erico@gmail.com>
Tue, 12 Nov 2019 13:56:33 +0000 (14:56 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 14 Dec 2019 06:44:43 +0000 (07:44 +0100)
commit6d46d0e82b5214120aaa4d600e9fa0a502050c56
treec07331b6084cd44b90c71827acb43a09c5f8915a
parent2d7be5f01f003855fce8dffdbd9ee17c60b134b3
vc4: move the draw splitting routine to shared code

This can also be useful for other hardware which has similar limitations
on vertex count per single draw.
The Mali400 has a similar limitation and can reuse this.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2445>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/meson.build
src/gallium/auxiliary/util/u_split_draw.c [new file with mode: 0644]
src/gallium/auxiliary/util/u_split_draw.h [new file with mode: 0644]
src/gallium/drivers/vc4/vc4_draw.c