diff options
author | Jason Ekstrand <[email protected]> | 2015-11-10 15:02:52 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-10 15:02:52 -0800 |
commit | 427978d9334d887715e00c7609a36aedaac1b4cf (patch) | |
tree | 0d34ded6736b6c9fb64a3ce20e94a0ad7c571964 /src/vulkan/anv_device.c | |
parent | d9079648d0f1c380929dea0f3a447ddfdf5dcd27 (diff) |
anv/device: Use an actual int64_t in WaitForFences
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 37d58816f5d..3c6760b832d 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -1297,11 +1297,13 @@ VkResult anv_WaitForFences( if (timeout > INT64_MAX) timeout = INT64_MAX; + int64_t t = timeout; + /* FIXME: handle !waitAll */ for (uint32_t i = 0; i < fenceCount; i++) { ANV_FROM_HANDLE(anv_fence, fence, pFences[i]); - int ret = anv_gem_wait(device, fence->bo.gem_handle, &timeout); + int ret = anv_gem_wait(device, fence->bo.gem_handle, &t); if (ret == -1 && errno == ETIME) { return VK_TIMEOUT; } else if (ret == -1) { |