Module: Mesa Branch: main Commit: 7921396c7bf31713a3bd1f2c38a6690c1de548ff URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7921396c7bf31713a3bd1f2c38a6690c1de548ff
Author: Marek Olšák <[email protected]> Date: Sat Dec 24 12:36:49 2022 -0500 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20824> --- 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++) {
