mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radv: Skip already signalled fences.
If the user created a fence with VK_FENCE_CREATE_SIGNALED_BIT set, we shouldn't fail to wait for a fence if it was not submitted since that is not necessary. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f4e499ec79
commit
24815bd7b3
1 changed files with 3 additions and 3 deletions
|
|
@ -1119,12 +1119,12 @@ VkResult radv_WaitForFences(
|
|||
RADV_FROM_HANDLE(radv_fence, fence, pFences[i]);
|
||||
bool expired = false;
|
||||
|
||||
if (!fence->submitted)
|
||||
return VK_TIMEOUT;
|
||||
|
||||
if (fence->signalled)
|
||||
continue;
|
||||
|
||||
if (!fence->submitted)
|
||||
return VK_TIMEOUT;
|
||||
|
||||
expired = device->ws->fence_wait(device->ws, fence->fence, true, timeout);
|
||||
if (!expired)
|
||||
return VK_TIMEOUT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue