mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
47d589e7d4
commit
c52e1f916a
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue