summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_device.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-08-29 22:45:17 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-09-13 23:09:18 +0200
commite7ca37b1e5d6dd62870c7b7c953598ad7785c9f9 (patch)
tree8b3b8634c7b6910acdd2bc1363b4770dba2f1397 /src/video_core/vulkan_common/vulkan_device.cpp
parentMerge pull request #6929 from yuzu-emu/revert-6870-trace-back-stack-back-stack-back (diff)
downloadyuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar.gz
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar.bz2
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar.lz
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar.xz
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.tar.zst
yuzu-e7ca37b1e5d6dd62870c7b7c953598ad7785c9f9.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 86ca4be54..5662a7bdc 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -599,6 +599,12 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
graphics_queue = logical.GetQueue(graphics_family);
present_queue = logical.GetQueue(present_family);
+
+ sets_per_pool = 64;
+ if (driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE) {
+ // AMD drivers need a higher amount of Sets per Pool in certain circunstances like in XC2.
+ sets_per_pool = 96;
+ }
}
Device::~Device() = default;