anv: Translate relative timeout to absolute when calling anv_timelines_wait
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 13 May 2020 16:28:59 +0000 (19:28 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 00:52:37 +0000 (00:52 +0000)
Fixes: 34f32a6d6648073e2fda3fb78377124fb32bb288
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5025>

src/intel/vulkan/anv_queue.c

index ebe3216dd020135586a0b9c347ab7f54db04716b..0fdabf7aa008a96a0af2362872dae71d650590ab 100644 (file)
@@ -2338,7 +2338,7 @@ VkResult anv_WaitSemaphores(
    if (handle_count > 0) {
       result = anv_timelines_wait(device, timelines, values, handle_count,
                                   !(pWaitInfo->flags & VK_SEMAPHORE_WAIT_ANY_BIT_KHR),
-                                  timeout);
+                                  anv_get_absolute_timeout(timeout));
    }
 
    vk_free(&device->vk.alloc, timelines);