mesa: clean up glMultiDrawElements code, use alloca for small draw count (v2)
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Feb 2020 20:30:30 +0000 (15:30 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 00:53:45 +0000 (00:53 +0000)
commit4c5cd113b82b798634f9a71ef98241d8917c05e1
tree88ef7f8e0123841e33084a0367327b5e1901abd2
parentb78ab9c741ac758e9d1eb237f7e8ddc3b70235f5
mesa: clean up glMultiDrawElements code, use alloca for small draw count (v2)

v2: use calloc, add reusable macros

Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de> (v1)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (v1)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>
src/mesa/main/draw.c