glthread: use _mesa_glthread_fence_call() instead of duplicating that code

no change in behavior

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27350>
This commit is contained in:
Marek Olšák 2024-01-29 14:45:34 -05:00 committed by Marge Bot
parent 47d589e7d4
commit c52e1f916a

View file

@ -31,9 +31,8 @@ _mesa_glthread_ProgramChanged(struct gl_context *ctx)
{
struct glthread_state *glthread = &ctx->GLThread;
/* Track the last change. */
p_atomic_set(&glthread->LastProgramChangeBatch, glthread->next);
_mesa_glthread_flush_batch(ctx);
/* Track the last change to shader programs. */
_mesa_glthread_fence_call(ctx, &glthread->LastProgramChangeBatch);
}
uint32_t