diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-12-06 17:45:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 17:45:08 +0100 |
commit | 08d4e7c7aff6b4b798b9095c5715368918cdba0b (patch) | |
tree | 9a7c2b8e91ff42a17815b9d82c3361eacb265add /src | |
parent | Merge pull request #9392 from lioncash/reporter (diff) | |
parent | vulkan_common: further initialization tweaks (diff) | |
download | yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar.gz yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar.bz2 yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar.lz yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar.xz yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.tar.zst yuzu-08d4e7c7aff6b4b798b9095c5715368918cdba0b.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 2 | ||||
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.cpp | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 33856fe59..467878431 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -86,6 +86,8 @@ constexpr std::array REQUIRED_EXTENSIONS{ }; constexpr std::array REQUIRED_EXTENSIONS_BEFORE_1_2{ + VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME, + VK_EXT_HOST_QUERY_RESET_EXTENSION_NAME, VK_KHR_8BIT_STORAGE_EXTENSION_NAME, VK_KHR_SHADER_FLOAT_CONTROLS_EXTENSION_NAME, VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME, diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index e4a07813f..bda10ee2f 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -454,6 +454,12 @@ VkResult Free(VkDevice device, VkCommandPool handle, Span<VkCommandBuffer> buffe Instance Instance::Create(u32 version, Span<const char*> layers, Span<const char*> extensions, InstanceDispatch& dispatch) { +#ifdef __APPLE__ + constexpr VkFlags ci_flags{VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR}; +#else + constexpr VkFlags ci_flags{}; +#endif + const VkApplicationInfo application_info{ .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, .pNext = nullptr, @@ -466,7 +472,7 @@ Instance Instance::Create(u32 version, Span<const char*> layers, Span<const char const VkInstanceCreateInfo ci{ .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, .pNext = nullptr, - .flags = 0, + .flags = ci_flags, .pApplicationInfo = &application_info, .enabledLayerCount = layers.size(), .ppEnabledLayerNames = layers.data(), |