Skip to content

Commit 02d3010

Browse files
authored
In the Vulkan API, the timeout parameter of vkWaitForFences is of type uint64_t. If the API is expected to wait indefinitely (until the GPU signals the fence), the correct value to pass is UINT64_MAX (the maximum 64-bit unsigned integer), not the maximum 32-bit value (UINT32_MAX). (#1328)
1 parent dca8e08 commit 02d3010

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

framework/fence_pool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019-2023, Arm Limited and Contributors
1+
/* Copyright (c) 2019-2025, Arm Limited and Contributors
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
@@ -66,7 +66,7 @@ VkFence FencePool::request_fence()
6666
return fences.back();
6767
}
6868

69-
VkResult FencePool::wait(uint32_t timeout) const
69+
VkResult FencePool::wait(uint64_t timeout) const
7070
{
7171
if (active_fence_count < 1 || fences.empty())
7272
{

framework/fence_pool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019-2020, Arm Limited and Contributors
1+
/* Copyright (c) 2019-2025, Arm Limited and Contributors
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
@@ -40,7 +40,7 @@ class FencePool
4040

4141
VkFence request_fence();
4242

43-
VkResult wait(uint32_t timeout = std::numeric_limits<uint32_t>::max()) const;
43+
VkResult wait(uint64_t timeout = std::numeric_limits<uint64_t>::max()) const;
4444

4545
VkResult reset();
4646

0 commit comments

Comments
 (0)