From ed345ffc2f3373743d74a5e0a1dc73c012389273 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sat, 16 Sep 2017 03:46:38 +0100 Subject: vo_gpu: vulkan: add support for wayland --- video/out/vulkan/utils.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'video/out/vulkan/utils.c') diff --git a/video/out/vulkan/utils.c b/video/out/vulkan/utils.c index 659da9159a..3d11062939 100644 --- a/video/out/vulkan/utils.c +++ b/video/out/vulkan/utils.c @@ -167,7 +167,8 @@ void mpvk_uninit(struct mpvk_ctx *vk) *vk = (struct mpvk_ctx){0}; } -bool mpvk_instance_init(struct mpvk_ctx *vk, struct mp_log *log, bool debug) +bool mpvk_instance_init(struct mpvk_ctx *vk, struct mp_log *log, + const char *surf_ext_name, bool debug) { *vk = (struct mpvk_ctx) { .log = log, @@ -189,11 +190,9 @@ bool mpvk_instance_init(struct mpvk_ctx *vk, struct mp_log *log, bool debug) } // Enable whatever extensions were compiled in. - static const char *extensions[] = { + const char *extensions[] = { VK_KHR_SURFACE_EXTENSION_NAME, -#if HAVE_X11 - VK_KHR_XLIB_SURFACE_EXTENSION_NAME, -#endif + surf_ext_name, // Extra extensions only used for debugging. These are toggled by // decreasing the enabledExtensionCount, so the number needs to be -- cgit v1.2.3