cube: Try to bind to wl_compositor v4
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 5 Oct 2019 14:53:39 +0000 (11:53 -0300)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Wed, 23 Oct 2019 14:57:35 +0000 (08:57 -0600)
commit7da3ea7cfa1dbedd92f7e1b2e3a72503ed9ced9a
tree8b637a99d73b8e66844930d2aa5087cf4c40eee0
parent119e7c3bbae122f6cc5d778d068fb91e0e85d6a9
cube: Try to bind to wl_compositor v4

VK_KHR_incremental_present requires the client to
bind to wl_compositor v4. This is because internally
some Vulkan Wayland drivers convert VkPresentRegionKHR
to wl_surface.damage_buffer()[1], which is a v4-only
request.

If the Wayland compositor advertises wl_compositor v4,
we can bind to it and make incremental present actually
work.

[1] https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/vulkan/wsi/wsi_common_wayland.c#L862
cube/cube.c