diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-08-29 22:45:17 +0200 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-13 23:09:18 +0200 |
| commit | dbe8a4fc2fcac1cda884a2627aca2cfb1467c3f7 (patch) | |
| tree | 8b3b8634c7b6910acdd2bc1363b4770dba2f1397 /src/video_core/vulkan_common/vulkan_device.cpp | |
| parent | 5b80d9a1d9d5be923e2d0733226ce5eab5cd917f (diff) | |
Vulkan/Descriptors: Increase sets per pool on AMFD propietary driver.
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 6 |
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 86ca4be54e..5662a7bdc4 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; |
