Mesa (staging/22.1): zink: remove first_frame stalling
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 1 21:17:33 UTC 2022
Module: Mesa
Branch: staging/22.1
Commit: 861c1ebf73d1fbc3a42a2362547fb62c90abbef9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=861c1ebf73d1fbc3a42a2362547fb62c90abbef9
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 31 09:56:30 2022 -0400
zink: remove first_frame stalling
this is fixed by kopper
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16796>
---
src/gallium/drivers/zink/zink_context.c | 10 ----------
src/gallium/drivers/zink/zink_context.h | 1 -
2 files changed, 11 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index cefc99417dc..a97e3ea1faf 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -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;
- }
}
}
diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h
index 7965f3ef389..529281d1308 100644
--- a/src/gallium/drivers/zink/zink_context.h
+++ b/src/gallium/drivers/zink/zink_context.h
@@ -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;
More information about the mesa-commit
mailing list