Skip to content

Commit

Permalink
Do not require fd vulkan extensions for 'supports_external'
Browse files Browse the repository at this point in the history
  • Loading branch information
aglab2 committed Apr 28, 2023
1 parent 421dab1 commit 3cc1b2e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions mupen64plus-video-paraLLEl/parallel-rdp/vulkan/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cc1b2e

Please sign in to comment.