anv/wsi: Avoid stuck Wayland connection
authorDaniel Stone <daniels@collabora.com>
Tue, 19 Jan 2016 16:51:56 +0000 (16:51 +0000)
committerDaniel Stone <daniels@collabora.com>
Tue, 19 Jan 2016 16:54:55 +0000 (16:54 +0000)
commitba5ef49dcbf9e001231658ad8c6588649a2dbd57
treeed4bcf4157d101ee4d7f4c758eb0d5d5ce3a176d
parent3276610ea6a3c36176fcf0089a47093d12f9f982
anv/wsi: Avoid stuck Wayland connection

In acquire_next_image, we are waiting for a wl_buffer::release to arrive
and release one of the buffers in our swapchain. Most compositors don't
explicitly flush release events, so we may need to perform a roundtrip
instead, to ensure the event arrives.

Signed-off-by: Daniel Stone <daniels@collabora.com>
src/vulkan/anv_wsi_wayland.c