summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-05-13 06:31:31 +0200
committerLiam <byteslice@airmail.cc>2023-05-13 06:37:17 +0200
commit856838f7ce98cc4447f2d06b831de7962cf83de8 (patch)
tree82a7b88cdf50f052dc92abaee63f294adcfb6a41 /src
parentMerge pull request #10244 from liamwhite/lower-upper (diff)
downloadyuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar.gz
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar.bz2
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar.lz
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar.xz
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.tar.zst
yuzu-856838f7ce98cc4447f2d06b831de7962cf83de8.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 6ffca2af2..7132bae99 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