For 0 timeout, just poll for an event, and if none, return For UINT64_MAX timeout, just wait for special event blocked For other timeouts get the xcb fd and block on it, decreasing the timeout if we get woken up for non-special events.
v1.1: return VK_TIMEOUT for poll timeouts. handle timeout going negative.
787c172 vulkan/wsi/x11: handle timeouts properly in next image acquire (v1.1)
src/vulkan/wsi/wsi_common_x11.c | 62 +++++++++++++++++++++++++++++++++++----
1 file changed, 57 insertions(+), 5 deletions(-)
Upstream: cgit.freedesktop.org