zink: fix kopper_acquire return value

this should be a VkResult

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

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>
(cherry picked from commit c1ce1889db)
This commit is contained in:
Mike Blumenkrantz 2022-06-20 12:29:19 -04:00 committed by Dylan Baker
parent 93561a98b1
commit bc26f1c4ee
2 changed files with 2 additions and 2 deletions

View file

@ -616,7 +616,7 @@
"description": "zink: fix kopper_acquire return value",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ab1941fc0e990d10e050d6e8a75fc1fa9fb75456"
},

View file

@ -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;