From a47b9f2b6f45df7637e762e216a170f77266f00d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 30 Sep 2022 08:53:59 -0400 Subject: [PATCH] zink: call flush_resource when presenting garbage this ensures the resource is queued for presentation fixes #7359 Fixes: babf9474c43 ("zink: rework flush_frontbuffer to always flush") Reviewed-by: Adam Jackson Part-of: --- src/gallium/drivers/zink/zink_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 0af1775848c..81786569554 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -1512,6 +1512,8 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen, ctx->needs_present = res; /* set batch usage to submit acquire semaphore */ zink_batch_resource_usage_set(&ctx->batch, res, true, false); + /* ensure the resource is set up to present garbage */ + ctx->base.flush_resource(&ctx->base, pres); } /* handle any outstanding acquire submits (not just from above) */