zink: Fix enumerate devices when running compositor
When we try to run a compositor on top of Zink, we hit a lockup when enumerating the Vulkan devices. The vulkan_device_select tries to reorder the devices and gets stuck waiting for the Xserver.
With this patch, we avoid this issue by detecting when we are running a compositor and disabling the X and Wayland instance extensions.
And code is added to try to pick the same device as the display.
Tested using i3, Weston and sommelier.
Signed-off-by: Igor Torrente igor.torrente@collabora.com