From 9a2974019b61ccb72cc8de3bf30a6dc4c5d97502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 18 Feb 2025 20:30:09 -0500 Subject: [PATCH] glthread: handle glFlush with HasExternallySharedImages more efficiently Doing finish without flush is more efficient because it executes the unflushed batch immediately. Reviewed-by: Adam Jackson Part-of: --- src/mapi/glapi/gen/gl_API.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index e356035dd9d..0af2f0af2e5 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2400,7 +2400,7 @@ + marshal_call_after="if (ctx->Shared->HasExternallySharedImages) _mesa_glthread_finish(ctx); else _mesa_glthread_flush_batch(ctx);">