wsi/wayland: Simplify wait logic for present wait.
authorHans-Kristian Arntzen <post@arntzen-software.no>
Tue, 2 May 2023 11:15:25 +0000 (13:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 16:09:10 +0000 (16:09 +0000)
commit577b3c7bb2dab10de3cb039b464870a44c118798
tree04ff3974685b9ff212c2fdaca9f4d8ee1765f59e
parent43f868d17572b428e1f54763d794e05a4d45b070
wsi/wayland: Simplify wait logic for present wait.

CLOCK_REALTIME is generally problematic due to NTP.
Use normal MONOTONIC waits for condition variable,
and remove the timedlock. The lock is never held in a blocking fashion,
so there is little need for a timed lock here.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Reviewed-by: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22682>
src/vulkan/wsi/wsi_common_wayland.c