From 4975a89f38199263d35fc2ed5d94d81d4850797b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 25 Jan 2021 13:03:52 -0500 Subject: [PATCH] mesa: skip MultiDrawArrays with primcount == 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the only zero parameter that gallium can't handle. Reviewed-by: Zoltán Böszörményi Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index 52ebd4c1d2f..cd92c247fb8 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -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;