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: 32597e116d ("zink: implement GL semaphores")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14740>
This commit is contained in:
Mike Blumenkrantz 2022-01-26 10:06:48 -05:00 committed by Marge Bot
parent 794fabc8c2
commit d4720c65ac

View file

@ -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);
}