Fixes:
270f9c0b063 ("zink: add ZINK_DEBUG=flushsync")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23189>
static void
sync_flush(struct zink_context *ctx, struct zink_batch_state *bs)
{
- if (zink_screen(ctx->base.screen)->threaded)
+ if (zink_screen(ctx->base.screen)->threaded_submit)
util_queue_fence_wait(&bs->flush_completed);
}
if (ctx->batch.swapchain || ctx->needs_present) {
ctx->batch.has_work = true;
pctx->flush(pctx, NULL, PIPE_FLUSH_END_OF_FRAME);
- if (ctx->last_fence && screen->threaded) {
+ if (ctx->last_fence && screen->threaded_submit) {
struct zink_batch_state *bs = zink_batch_state(ctx->last_fence);
util_queue_fence_wait(&bs->flush_completed);
}