diff options
author | Feng Chen <chen.feng@glority.cn> | 2023-08-17 03:17:56 +0200 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2023-08-22 04:22:28 +0200 |
commit | 87022a4833fd693274275e1153d80d2e56fe0b11 (patch) | |
tree | 331327060ac062ec1584a0c86c7adbd5ccf436f1 /src/video_core/vulkan_common/vulkan_instance.cpp | |
parent | Merge pull request #11287 from liamwhite/replaced-bytes (diff) | |
download | yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar.gz yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar.bz2 yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar.lz yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar.xz yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.tar.zst yuzu-87022a4833fd693274275e1153d80d2e56fe0b11.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_instance.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/vulkan_instance.cpp b/src/video_core/vulkan_common/vulkan_instance.cpp index 72aedb8d8..bc16145be 100644 --- a/src/video_core/vulkan_common/vulkan_instance.cpp +++ b/src/video_core/vulkan_common/vulkan_instance.cpp @@ -41,9 +41,6 @@ namespace { bool enable_validation) { std::vector<const char*> extensions; extensions.reserve(6); -#ifdef __APPLE__ - extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); -#endif switch (window_type) { case Core::Frontend::WindowSystemType::Headless: break; @@ -74,6 +71,11 @@ namespace { if (window_type != Core::Frontend::WindowSystemType::Headless) { extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME); } +#ifdef __APPLE__ + if (AreExtensionsSupported(dld, std::array{VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME})) { + extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); + } +#endif if (enable_validation) { const bool debug_utils = AreExtensionsSupported(dld, std::array{VK_EXT_DEBUG_UTILS_EXTENSION_NAME}); |