mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
Merge pull request #10262 from liamwhite/depth-clamp
vulkan_common: disable depth clamp dynamic state for older radv
This commit is contained in:
commit
9d4a2de72b
1 changed files with 8 additions and 0 deletions
|
@ -406,6 +406,14 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
|
||||||
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
|
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
|
||||||
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEquation = false;
|
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEquation = false;
|
||||||
dynamic_state3_blending = 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) {
|
if (extensions.vertex_input_dynamic_state && is_radv) {
|
||||||
// TODO(ameerj): Blacklist only offending driver versions
|
// TODO(ameerj): Blacklist only offending driver versions
|
||||||
|
|
Loading…
Reference in a new issue