From 9625e99110c831df533a1cea00d57feee1ff3a44 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 20 Jun 2022 12:33:27 -0400 Subject: [PATCH] zink: use better determination for handling swapchain acquire submits if the swapchain has data, it has already passed through this function and thus does not need to attempt to synchronize another swapchain acquire for the same image Reviewed-by: Adam Jackson Part-of: --- src/gallium/drivers/zink/zink_kopper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_kopper.c b/src/gallium/drivers/zink/zink_kopper.c index 49179357a00..bb553d1cb66 100644 --- a/src/gallium/drivers/zink/zink_kopper.c +++ b/src/gallium/drivers/zink/zink_kopper.c @@ -569,7 +569,7 @@ zink_kopper_acquire_submit(struct zink_screen *screen, struct zink_resource *res { assert(res->obj->dt); struct kopper_displaytarget *cdt = kopper_displaytarget(res->obj->dt); - if (zink_kopper_acquired(res->obj->dt, res->obj->dt_idx)) + if (cdt->swapchain->dt_has_data) return VK_NULL_HANDLE; assert(res->obj->acquire); cdt->swapchain->images[res->obj->dt_idx].acquired = true;