mesa: skip MultiDrawArrays with primcount == 0

This is the only zero parameter that gallium can't handle.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
This commit is contained in:
Marek Olšák 2021-01-25 13:03:52 -05:00 committed by Marge Bot
parent 9bd4755410
commit 4975a89f38

View file

@ -830,6 +830,9 @@ _mesa_MultiDrawArrays(GLenum mode, const GLint *first,
!_mesa_validate_MultiDrawArrays(ctx, mode, count, primcount))
return;
if (primcount == 0)
return;
struct pipe_draw_info info;
struct pipe_draw_start_count *draw;