mesa: don't unroll glMultiDrawElements if one count is 0
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Feb 2020 22:21:35 +0000 (17:21 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 00:53:45 +0000 (00:53 +0000)
commite636a062f1a555f8795b3e75d6f32c5042038ab1
treed7d022b6241173f80f245ee73f9d9a8403242ae3
parent4c5cd113b82b798634f9a71ef98241d8917c05e1
mesa: don't unroll glMultiDrawElements if one count is 0

let the driver skip or submit an empty draw call.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
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