Mesa (main): zink: unset deferred present barrier on flush
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 8 20:04:09 UTC 2022
Module: Mesa
Branch: main
Commit: 00e846ba886d1f9b530e67e69c5e3c8b1d6c4679
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00e846ba886d1f9b530e67e69c5e3c8b1d6c4679
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Apr 8 09:33:37 2022 -0400
zink: unset deferred present barrier on flush
don't need to flush this every frame
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15820>
---
src/gallium/drivers/zink/zink_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 30f461c146f..987f9bbb855 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3249,6 +3249,7 @@ zink_flush(struct pipe_context *pctx,
if (ctx->needs_present && (flags & PIPE_FLUSH_END_OF_FRAME)) {
if (ctx->needs_present->obj->image)
zink_resource_image_barrier(ctx, ctx->needs_present, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, 0, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT);
+ ctx->needs_present = NULL;
}
if (!batch->has_work) {
More information about the mesa-commit
mailing list