lavapipe: Fix vkWaitForFences for initially-signalled fences
authorPavel Asyutchenko <sventeam@yandex.ru>
Thu, 30 Sep 2021 19:34:40 +0000 (22:34 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2021 05:11:04 +0000 (15:11 +1000)
commitb9617bc6218c932e5f504405b6acf157d5b2a3c1
treead4c763c7a135aa100b1fabbf399ad8420079f88
parent96ea718b7edaa71b2301e5ca972de6139a570702
lavapipe: Fix vkWaitForFences for initially-signalled fences

Fences with VK_FENCE_CREATE_SIGNALED_BIT are created with
signalled=true and timeline=0, waiting on them without
submitting first returned VK_TIMEOUT instead of VK_SUCCESS.

Signed-off-by: Pavel Asyutchenko <sventeam@yandex.ru>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13128>
src/gallium/frontends/lavapipe/lvp_device.c