Commit 6968d782 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

radv: Implement waiting on non-submitted fences.

Fixes: f4e499ec "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
parent 2a404c6f
......@@ -2946,8 +2946,17 @@ VkResult radv_WaitForFences(
if (fence->signalled)
continue;
if (!fence->submitted)
return VK_TIMEOUT;
if (!fence->submitted) {
while(radv_get_current_time() <= timeout && !fence->submitted)
/* Do nothing */;
if (!fence->submitted)
return VK_TIMEOUT;
/* Recheck as it may have been set by submitting operations. */
if (fence->signalled)
continue;
}
expired = device->ws->fence_wait(device->ws, fence->fence, true, timeout);
if (!expired)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment