From 0f79f9ac4d613e9ff770bfe2c74e2dbe8f0f7f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 24 Jan 2024 16:46:58 -0500 Subject: [PATCH] glthread: apply the thread scheduling policy when a batch executes synchronously before this, when no batch was executed asynchronously, the policy wasn't applied Reviewed-By: Mike Blumenkrantz Part-of: --- src/mesa/main/glthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/glthread.c b/src/mesa/main/glthread.c index 26bc18b8a6f..163bf316416 100644 --- a/src/mesa/main/glthread.c +++ b/src/mesa/main/glthread.c @@ -401,6 +401,8 @@ _mesa_glthread_finish(struct gl_context *ctx) synced = true; } + glthread_apply_thread_sched_policy(ctx, false); + if (glthread->used) { /* Mark the end of the batch, but don't increment "used". */ struct marshal_cmd_base *last =