From ca0763c7f1728f535689ea650853c6951aaac9e7 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Jan 2021 09:08:06 -0800 Subject: [PATCH] Vulkan: Remove #10097 hack for newer AMD drivers. Fixes #10643. Assumes affected drivers only supported 1.0 due to year 1.1 supporting drivers started coming out. --- Common/GPU/Vulkan/VulkanRenderManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/GPU/Vulkan/VulkanRenderManager.cpp b/Common/GPU/Vulkan/VulkanRenderManager.cpp index e8b3849e00..4297947ba8 100644 --- a/Common/GPU/Vulkan/VulkanRenderManager.cpp +++ b/Common/GPU/Vulkan/VulkanRenderManager.cpp @@ -207,8 +207,9 @@ VulkanRenderManager::VulkanRenderManager(VulkanContext *vulkan) : vulkan_(vulkan queueRunner_.CreateDeviceObjects(); - // Temporary AMD hack for issue #10097 - if (vulkan_->GetPhysicalDeviceProperties().properties.vendorID == VULKAN_VENDOR_AMD) { + // AMD hack for issue #10097 (older drivers only.) + const auto &props = vulkan_->GetPhysicalDeviceProperties().properties; + if (props.vendorID == VULKAN_VENDOR_AMD && props.apiVersion < VK_API_VERSION_1_1) { useThread_ = false; } }