diff options
author | Liam <byteslice@airmail.cc> | 2023-05-13 06:31:31 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-05-13 06:37:17 +0200 |
commit | 856838f7ce98cc4447f2d06b831de7962cf83de8 (patch) | |
tree | 82a7b88cdf50f052dc92abaee63f294adcfb6a41 | |
parent | Merge pull request #10244 from liamwhite/lower-upper (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 8 |
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 |