vulkan/wsi/wayland: Use proxy wrappers for swapchain
authorDaniel Stone <daniels@collabora.com>
Tue, 2 May 2017 09:06:32 +0000 (10:06 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 19 May 2017 08:36:06 +0000 (09:36 +0100)
commit5034c615582add2be9309dc1d7383fb0daba6dd3
treef17e6f654a7a802452d8578a2b6249d41b339295
parentc902a1957d079941823006d56b6810e1e85be4b0
vulkan/wsi/wayland: Use proxy wrappers for swapchain

Though most swapchain operations used a queue, they were racy in that
the object was created with the queue only set later, meaning that its
event could potentially be dispatched from the default queue in between
these two steps.

Use proxy wrappers to avoid this race, also assigning wl_buffers created
for the swapchain to the event queue.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/vulkan/wsi/wsi_common_wayland.c