summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-01-29 22:14:09 +1000
committerStenzek <stenzek@gmail.com>2017-01-29 22:18:53 +1000
commit3b218c64b101aa2c0239622a566fc026f58b4f98 (patch)
treeb410ecef5696219a7e6d4ec9363550b964866769 /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parente823a9d80ca15ed689d03774c6fa12636a3623b6 (diff)
Vulkan: Refactor initialization to only use a single instance
Hopefully will fix the crash in vkDestroyInstance on the NV Shield TV, and likely reduce boot times slightly for drivers that take a while to create instances.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index e3fe3ff799..a7d1b628fb 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -327,7 +327,7 @@ void VulkanContext::PopulateBackendInfoMultisampleModes(
}
std::unique_ptr<VulkanContext> VulkanContext::Create(VkInstance instance, VkPhysicalDevice gpu,
- VkSurfaceKHR surface, VideoConfig* config,
+ VkSurfaceKHR surface,
bool enable_debug_reports,
bool enable_validation_layer)
{
@@ -354,9 +354,6 @@ std::unique_ptr<VulkanContext> VulkanContext::Create(VkInstance instance, VkPhys
return nullptr;
}
- // Update video config with features.
- PopulateBackendInfoFeatures(config, gpu, context->m_device_features);
- PopulateBackendInfoMultisampleModes(config, gpu, context->m_device_properties);
return context;
}