summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-17 00:25:51 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-02-13 06:16:21 +0100
commit9735c34f5dfef58f0e673886f8f725f806178f1b (patch)
tree5afedc0e2209210d9190b25a65290917728d37eb /src/video_core
parentvulkan_wrapper: Pull Windows symbols (diff)
downloadyuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar.gz
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar.bz2
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar.lz
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar.xz
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.tar.zst
yuzu-9735c34f5dfef58f0e673886f8f725f806178f1b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/vulkan_common/vulkan_instance.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_instance.cpp b/src/video_core/vulkan_common/vulkan_instance.cpp
index 889ecda0c..bfd6e6add 100644
--- a/src/video_core/vulkan_common/vulkan_instance.cpp
+++ b/src/video_core/vulkan_common/vulkan_instance.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <algorithm>
+#include <future>
#include <optional>
#include <span>
#include <utility>
@@ -140,7 +141,10 @@ vk::Instance CreateInstance(const Common::DynamicLibrary& library, vk::InstanceD
VK_VERSION_MAJOR(required_version), VK_VERSION_MINOR(required_version));
throw vk::Exception(VK_ERROR_INCOMPATIBLE_DRIVER);
}
- vk::Instance instance = vk::Instance::Create(required_version, layers, extensions, dld);
+ vk::Instance instance =
+ std::async([&] {
+ return vk::Instance::Create(required_version, layers, extensions, dld);
+ }).get();
if (!vk::Load(*instance, dld)) {
LOG_ERROR(Render_Vulkan, "Failed to load Vulkan instance function pointers");
throw vk::Exception(VK_ERROR_INITIALIZATION_FAILED);