summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 40b7ea90f..910e63a25 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -587,6 +587,26 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
587 ext_extended_dynamic_state = false; 587 ext_extended_dynamic_state = false;
588 } 588 }
589 } 589 }
590
591 sets_per_pool = 64;
592 if (driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE) {
593 // AMD drivers need a higher amount of Sets per Pool in certain circunstances like in XC2.
594 sets_per_pool = 96;
595 }
596
597 const bool is_amd = driver_id == VK_DRIVER_ID_AMD_PROPRIETARY ||
598 driver_id == VK_DRIVER_ID_MESA_RADV ||
599 driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE;
600 if (ext_sampler_filter_minmax && is_amd) {
601 // Disable ext_sampler_filter_minmax on AMD GCN4 and lower as it is broken.
602 if (!is_float16_supported) {
603 LOG_WARNING(
604 Render_Vulkan,
605 "Blacklisting AMD GCN4 and lower for VK_EXT_SAMPLER_FILTER_MINMAX_EXTENSION_NAME");
606 ext_sampler_filter_minmax = false;
607 }
608 }
609
590 if (ext_vertex_input_dynamic_state && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) { 610 if (ext_vertex_input_dynamic_state && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) {
591 LOG_WARNING(Render_Vulkan, "Blacklisting Intel for VK_EXT_vertex_input_dynamic_state"); 611 LOG_WARNING(Render_Vulkan, "Blacklisting Intel for VK_EXT_vertex_input_dynamic_state");
592 ext_vertex_input_dynamic_state = false; 612 ext_vertex_input_dynamic_state = false;
@@ -599,12 +619,6 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
599 619
600 graphics_queue = logical.GetQueue(graphics_family); 620 graphics_queue = logical.GetQueue(graphics_family);
601 present_queue = logical.GetQueue(present_family); 621 present_queue = logical.GetQueue(present_family);
602
603 sets_per_pool = 64;
604 if (driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE) {
605 // AMD drivers need a higher amount of Sets per Pool in certain circunstances like in XC2.
606 sets_per_pool = 96;
607 }
608} 622}
609 623
610Device::~Device() = default; 624Device::~Device() = default;