From 7921396c7bf31713a3bd1f2c38a6690c1de548ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 24 Dec 2022 12:36:49 -0500 Subject: [PATCH] glthread: remove the vbo_upload_ratio_too_large fallback for glMultiDrawElements This would be possible to implement, but we don't know of any app where it would help. Now glthread fully handles all non-VBO uploads except glDrawIndirect. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/glthread_draw.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mesa/main/glthread_draw.c b/src/mesa/main/glthread_draw.c index ba9a7399a66..93053175ed0 100644 --- a/src/mesa/main/glthread_draw.c +++ b/src/mesa/main/glthread_draw.c @@ -1233,11 +1233,6 @@ _mesa_marshal_MultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, basevertex, NULL, 0, NULL); return; } - - /* If there is too much data to upload, sync and let the driver unroll - * indices. */ - if (util_is_vbo_upload_ratio_too_large(total_count, num_vertices)) - goto sync; } else if (has_user_indices) { /* Only compute total_count for the upload of indices. */ for (unsigned i = 0; i < draw_count; i++) {