diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 8f5a47c7938..193f4881028 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -3153,15 +3153,6 @@ zink_flush(struct pipe_context *pctx, if (fence) { if (!(flags & (PIPE_FLUSH_DEFERRED | PIPE_FLUSH_ASYNC))) sync_flush(ctx, zink_batch_state(fence)); - - if (flags & PIPE_FLUSH_END_OF_FRAME && !(flags & TC_FLUSH_ASYNC) && !deferred) { - /* if the first frame has not yet occurred, we need an explicit fence here - * in some cases in order to correctly draw the first frame, though it's - * unknown at this time why this is the case - */ - zink_screen_timeline_wait(screen, fence->batch_id, PIPE_TIMEOUT_INFINITE); - ctx->first_frame_done = true; - } } } diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h index 4960282c90b..83e05da00ec 100644 --- a/src/gallium/drivers/zink/zink_context.h +++ b/src/gallium/drivers/zink/zink_context.h @@ -372,7 +372,6 @@ struct zink_context { uint32_t num_so_targets; struct pipe_stream_output_target *so_targets[PIPE_MAX_SO_OUTPUTS]; bool dirty_so_targets; - bool first_frame_done; bool gfx_dirty;