Merge pull request #13864 from unknownbrackets/vulkan-amd

Vulkan: Remove #10097 hack for newer AMD drivers
This commit is contained in:
Henrik Rydgård 2021-02-15 16:31:49 +01:00 committed by GitHub
commit 9b13220f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}