vulkan/wsi/x11: ensure images can be acquired on present-queue pull

Roman Gilg requested to merge romangg/mesa:vk-x11-present-blocks into master

In FIFO presentation mode we wait either on new presentation requests from the consumer or on X11 event for transmitted ones. When the last presentation has been completed we wait on a new presentation. But for that we need some images to be acquirable by the consumer, otherwise we deadlock.

In the case of Xwayland it can happen that the Wayland compositor keeps multiple images unreleased. If that exhausts our reservoir of acquirable images we need to wait on at least one image becoming released/idle again and by that acquirable by the consumer before waiting on receiving a new presentation from it.

Closes #3344 (closed)

Merge request reports