mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 19:50:25 +01:00
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:
parent
38b59a9e15
commit
c4beb72bc7
3 changed files with 1 additions and 12 deletions
|
|
@ -697,7 +697,7 @@
|
|||
"description": "zink: remove first_frame stalling",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 3,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3347,16 +3347,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
|
||||
*/
|
||||
if (!ctx->first_frame_done)
|
||||
zink_vkfence_wait(screen, fence, PIPE_TIMEOUT_INFINITE);
|
||||
ctx->first_frame_done = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -363,7 +363,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 have_timelines;
|
||||
|
||||
bool gfx_dirty;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue