Mesa (main): zink: fix kopper_acquire return value

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 02:57:46 UTC 2022


Module: Mesa
Branch: main
Commit: c1ce1889db94385a1584ee45481a099bcf229ab8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1ce1889db94385a1584ee45481a099bcf229ab8

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Jun 20 12:29:19 2022 -0400

zink: fix kopper_acquire return value

this should be a VkResult

Fixes: ab1941fc0e9 ("zink: handle zombie swapchains")

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 d6a6ae4f2d1..2a6f458c6ac 100644
--- a/src/gallium/drivers/zink/zink_kopper.c
+++ b/src/gallium/drivers/zink/zink_kopper.c
@@ -450,7 +450,7 @@ kopper_acquire(struct zink_screen *screen, struct zink_resource *res, uint64_t t
 {
    struct kopper_displaytarget *cdt = kopper_displaytarget(res->obj->dt);
    if (res->obj->acquire)
-      return true;
+      return VK_SUCCESS;
    res->obj->acquire = VK_NULL_HANDLE;
    VkSemaphore acquire = VK_NULL_HANDLE;
 



More information about the mesa-commit mailing list