From 79fd76f68dc31786d4d30bd0149497c019271443 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Tue, 15 Sep 2020 12:35:07 +0200 Subject: [PATCH] comp/main: Don't check for VK_KHR_display on Android. --- src/xrt/compositor/main/comp_compositor.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index 9af61b556..bfb3837d1 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -959,12 +959,14 @@ compositor_check_vulkan_caps(struct comp_compositor *c) } const char *extension_names[] = { - VK_KHR_SURFACE_EXTENSION_NAME, - VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME, - VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME, - VK_KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION_NAME, - VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME, - VK_KHR_DISPLAY_EXTENSION_NAME, + VK_KHR_SURFACE_EXTENSION_NAME, + VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME, + VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME, + VK_KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION_NAME, + VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME, +#if !defined(XRT_OS_ANDROID) + VK_KHR_DISPLAY_EXTENSION_NAME, +#endif }; VkInstanceCreateInfo instance_create_info = {