Mesa (main): zink: use better determination for handling swapchain acquire submits
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 02:57:46 UTC 2022
Module: Mesa
Branch: main
Commit: 9625e99110c831df533a1cea00d57feee1ff3a44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9625e99110c831df533a1cea00d57feee1ff3a44
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jun 20 12:33:27 2022 -0400
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 <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>
---
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;
More information about the mesa-commit
mailing list