summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-29 23:58:32 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:40 +0200
commit57171b23f9da0d9fa4b07bb77ba5c8ed0083a792 (patch)
tree434a75938c9b066f31eb8976ee495a744bd1e218
parentemit_spirv: Workaround VK_KHR_shader_float_controls on fp16 Nvidia (diff)
downloadyuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar.gz
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar.bz2
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar.lz
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar.xz
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.tar.zst
yuzu-57171b23f9da0d9fa4b07bb77ba5c8ed0083a792.zip
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 4fa1470e8..e297a3e92 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -511,10 +511,13 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
CollectToolingInfo();
if (ext_extended_dynamic_state && driver_id == VK_DRIVER_ID_MESA_RADV) {
- LOG_WARNING(
- Render_Vulkan,
- "Blacklisting RADV for VK_EXT_extended_dynamic state, likely due to a bug in yuzu");
- ext_extended_dynamic_state = false;
+ // Mask driver version variant
+ const u32 version = (properties.driverVersion << 3) >> 3;
+ if (version < VK_MAKE_API_VERSION(0, 21, 2, 0)) {
+ LOG_WARNING(Render_Vulkan,
+ "RADV versions older than 21.2 have broken VK_EXT_extended_dynamic_state");
+ ext_extended_dynamic_state = false;
+ }
}
if (ext_vertex_input_dynamic_state && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) {
LOG_WARNING(Render_Vulkan, "Blacklisting Intel for VK_EXT_vertex_input_dynamic_state");