zink: remove first_frame stalling

this is fixed by kopper

cc: mesa-stable

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16796>
This commit is contained in:
Mike Blumenkrantz 2022-05-31 09:56:30 -04:00 committed by Marge Bot
parent 7f81333f71
commit 9bb9511edc
2 changed files with 0 additions and 10 deletions

View file

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

View file

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