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 <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
Marek Olšák 2025-02-18 20:30:09 -05:00 committed by Marge Bot
parent 2937d8a961
commit 9a2974019b

View file

@ -2400,7 +2400,7 @@
</function>
<function name="Flush" es1="1.0" es2="2.0"
marshal_call_after="_mesa_glthread_flush_batch(ctx); if (ctx->Shared->HasExternallySharedImages) _mesa_glthread_finish(ctx);">
marshal_call_after="if (ctx->Shared->HasExternallySharedImages) _mesa_glthread_finish(ctx); else _mesa_glthread_flush_batch(ctx);">
<glx sop="142" handcode="true"/>
</function>