From 3cc1b2e23bc7f847bf39ebde3cf52c38749fc212 Mon Sep 17 00:00:00 2001 From: aglab2 Date: Fri, 28 Apr 2023 22:58:22 +0800 Subject: [PATCH] Do not require fd vulkan extensions for 'supports_external' --- .../parallel-rdp/vulkan/context.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/mupen64plus-video-paraLLEl/parallel-rdp/vulkan/context.cpp b/mupen64plus-video-paraLLEl/parallel-rdp/vulkan/context.cpp index 92db56474..55a184708 100644 --- a/mupen64plus-video-paraLLEl/parallel-rdp/vulkan/context.cpp +++ b/mupen64plus-video-paraLLEl/parallel-rdp/vulkan/context.cpp @@ -734,26 +734,12 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface, const c if (ext.supports_external && ext.supports_dedicated && has_extension(VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME) && - has_extension(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME) && -#ifdef _WIN32 - has_extension(VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME) && - has_extension(VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME) -#else - has_extension(VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME) && - has_extension(VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME) -#endif + has_extension(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME) ) { ext.supports_external = true; enabled_extensions.push_back(VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME); enabled_extensions.push_back(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME); -#ifdef _WIN32 - enabled_extensions.push_back(VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME); - enabled_extensions.push_back(VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME); -#else - enabled_extensions.push_back(VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME); - enabled_extensions.push_back(VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME); -#endif } else ext.supports_external = false;