From d4720c65acc9aefe22b5364c0663e9a5a0ba4cf9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 26 Jan 2022 10:06:48 -0500 Subject: [PATCH] zink: flag has_work when a GL semaphore is signalled this is an async flush, so it has to have this flag set or else the subsequent (also async) flush won't do anything Fixes: 32597e116d7 ("zink: implement GL semaphores") Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_fence.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_fence.c b/src/gallium/drivers/zink/zink_fence.c index dbc4f9b3fec..a918f975136 100644 --- a/src/gallium/drivers/zink/zink_fence.c +++ b/src/gallium/drivers/zink/zink_fence.c @@ -206,6 +206,7 @@ zink_fence_server_signal(struct pipe_context *pctx, struct pipe_fence_handle *pf assert(!ctx->batch.state->signal_semaphore); /* this is a deferred flush to reduce overhead */ ctx->batch.state->signal_semaphore = mfence->sem; + ctx->batch.has_work = true; pctx->flush(pctx, NULL, PIPE_FLUSH_ASYNC); }