u_vbuf: add logic to use a limited number of vbufs
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 11 Jun 2016 19:21:52 +0000 (21:21 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 21 Dec 2019 18:29:30 +0000 (18:29 +0000)
commit5f37e38b810af438159d30542c6174f99d5bf2c3
treeea8afbf3f8891e4075e33a8db06043955a598d28
parent5bd6a5c41b1f4e06404cc451491b9314db183006
u_vbuf: add logic to use a limited number of vbufs

Make it possible to limit the number of vertex buffers as there exist
GPUs with less then 32 supported vertex buffers.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807>
src/gallium/auxiliary/util/u_vbuf.c
src/gallium/auxiliary/util/u_vbuf.h