lavapipe: allow timeline progress in GetSemaphoreCounterValue
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 18 Mar 2022 12:48:39 +0000 (08:48 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Mar 2022 02:47:45 +0000 (02:47 +0000)
commit7aed40e4abbb4d3c1e93a0059c77c02b2a5d2f37
treee04ba174d7f52730c4a12b4e424cb721059514dc
parent4eca6e3e5d2b9426d6357e9af1514a0c942638f0
lavapipe: allow timeline progress in GetSemaphoreCounterValue

the vulkan spec doesn't explicitly state whether this function progresses
a given semaphore's timeline, and apparently there are some cases where
it's assumed that progress occurs if this function is called in a loop
instead of WaitSemaphores, so check the current fence for completion

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15453>
src/gallium/frontends/lavapipe/lvp_device.c