diff options
| author | 2023-05-22 19:53:20 -0400 | |
|---|---|---|
| committer | 2023-05-22 19:53:20 -0400 | |
| commit | 8bba9f7deaa78c523fbf12a1b10f4428436479ec (patch) | |
| tree | a3ebbfe8f41dc1d5b199f79911f3966104fec01c /src | |
| parent | Merge pull request #10386 from german77/high (diff) | |
| download | yuzu-8bba9f7deaa78c523fbf12a1b10f4428436479ec.tar.gz yuzu-8bba9f7deaa78c523fbf12a1b10f4428436479ec.tar.xz yuzu-8bba9f7deaa78c523fbf12a1b10f4428436479ec.zip | |
vulkan_device: Enable VK_KHR_push_descriptor on newer ANV
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index f6e6f2736..c03f4a56b 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -473,11 +473,12 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 473 | } | 473 | } |
| 474 | if (extensions.push_descriptor && is_intel_anv) { | 474 | if (extensions.push_descriptor && is_intel_anv) { |
| 475 | const u32 version = (properties.properties.driverVersion << 3) >> 3; | 475 | const u32 version = (properties.properties.driverVersion << 3) >> 3; |
| 476 | if (version >= VK_MAKE_API_VERSION(0, 22, 3, 0)) { | 476 | if (version >= VK_MAKE_API_VERSION(0, 22, 3, 0) && |
| 477 | version < VK_MAKE_API_VERSION(0, 23, 2, 0)) { | ||
| 477 | // Disable VK_KHR_push_descriptor due to | 478 | // Disable VK_KHR_push_descriptor due to |
| 478 | // mesa/mesa/-/commit/ff91c5ca42bc80aa411cb3fd8f550aa6fdd16bdc | 479 | // mesa/mesa/-/commit/ff91c5ca42bc80aa411cb3fd8f550aa6fdd16bdc |
| 479 | LOG_WARNING(Render_Vulkan, | 480 | LOG_WARNING(Render_Vulkan, |
| 480 | "ANV drivers 22.3.0 and later have broken VK_KHR_push_descriptor"); | 481 | "ANV drivers 22.3.0 to 23.1.0 have broken VK_KHR_push_descriptor"); |
| 481 | extensions.push_descriptor = false; | 482 | extensions.push_descriptor = false; |
| 482 | loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME); | 483 | loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME); |
| 483 | } | 484 | } |