diff options
author | Liam <byteslice@airmail.cc> | 2022-12-02 22:47:33 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-04 16:55:13 +0100 |
commit | a948ab3e4846df49a8087d856c27a323800300c3 (patch) | |
tree | 697d3572c886356e6a140c8fea261a73c738df51 /src/video_core/vulkan_common/vulkan_wrapper.cpp | |
parent | Merge pull request #9375 from jbeich/xbyak-no-install (diff) | |
download | yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar.gz yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar.bz2 yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar.lz yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar.xz yuzu-a948ab3e4846df49a8087d856c27a323800300c3.tar.zst yuzu-a948ab3e4846df49a8087d856c27a323800300c3.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_wrapper.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index 2ad98dcfe..af79ffd61 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -180,7 +180,7 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept { X(vkGetQueryPoolResults); X(vkGetPipelineExecutablePropertiesKHR); X(vkGetPipelineExecutableStatisticsKHR); - X(vkGetSemaphoreCounterValueKHR); + X(vkGetSemaphoreCounterValue); X(vkMapMemory); X(vkQueueSubmit); X(vkResetFences); @@ -191,7 +191,14 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept { X(vkUpdateDescriptorSetWithTemplateKHR); X(vkUpdateDescriptorSets); X(vkWaitForFences); - X(vkWaitSemaphoresKHR); + X(vkWaitSemaphores); + + // Support for timeline semaphores is mandatory in Vulkan 1.2 + if (!dld.vkGetSemaphoreCounterValue) { + Proc(dld.vkGetSemaphoreCounterValue, dld, "vkGetSemaphoreCounterValue", device); + Proc(dld.vkWaitForFences, dld, "vkWaitForFencesKHR", device); + Proc(dld.vkWaitSemaphores, dld, "vkWaitSemaphoresKHR", device); + } #undef X } |