lvp/fence: quick fix to previous commit.

This fixes last of xcb cts issues.

Fixes: 8a294b6f97 ("lavapipe: Fix vkWaitForFences for initially-signalled fences")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13212>
This commit is contained in:
Dave Airlie 2021-10-06 15:26:19 +10:00
parent b9617bc621
commit 028591954a

View file

@ -2089,7 +2089,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_WaitForFences(
struct lvp_fence *f = lvp_fence_from_handle(pFences[i]);
/* this is an unsubmitted fence: immediately bail out */
if (!f->timeline && !f->signalled)
if (!f->timeline && !f->signalled && !f->handle)
return VK_TIMEOUT;
if (!fence || f->timeline > fence->timeline)
fence = f;