mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
c/util: Return timeout on fence timeout
This commit is contained in:
parent
772b6256d6
commit
eca2e2535f
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2019-2021, Collabora, Ltd.
|
||||
// Copyright 2019-2022, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
|
@ -63,7 +63,7 @@ fence_wait(struct xrt_compositor_fence *xcf, uint64_t timeout)
|
|||
|
||||
VkResult ret = vk->vkWaitForFences(vk->device, 1, &f->fence, VK_TRUE, timeout);
|
||||
if (ret == VK_TIMEOUT) {
|
||||
return XRT_SUCCESS;
|
||||
return XRT_TIMEOUT;
|
||||
}
|
||||
if (ret != VK_SUCCESS) {
|
||||
VK_ERROR(vk, "vkWaitForFences: %s", vk_result_string(ret));
|
||||
|
|
Loading…
Reference in a new issue