summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-17 21:19:03 +0200
committerGitHub <noreply@github.com>2023-05-17 21:19:03 +0200
commit9d4a2de72b8a56a9fe2d6a7982fea812d3c36160 (patch)
tree6719f7865ac53bf001bd0276cf3ed739c25eae7a /src
parentMerge pull request #10217 from Kelebek1/clear_value (diff)
parentvulkan_common: disable depth clamp dynamic state for older radv (diff)
downloadyuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar.gz
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar.bz2
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar.lz
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar.xz
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.tar.zst
yuzu-9d4a2de72b8a56a9fe2d6a7982fea812d3c36160.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 161f050b8..9a8763e6a 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -406,6 +406,14 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEquation = false;
dynamic_state3_blending = false;
+
+ const u32 version = (properties.properties.driverVersion << 3) >> 3;
+ if (version < VK_MAKE_API_VERSION(0, 23, 1, 0)) {
+ LOG_WARNING(Render_Vulkan,
+ "RADV versions older than 23.1.0 have broken depth clamp dynamic state");
+ features.extended_dynamic_state3.extendedDynamicState3DepthClampEnable = false;
+ dynamic_state3_enables = false;
+ }
}
if (extensions.vertex_input_dynamic_state && is_radv) {
// TODO(ameerj): Blacklist only offending driver versions