diff options
| author | 2022-03-23 23:30:17 -0400 | |
|---|---|---|
| committer | 2022-03-23 23:30:17 -0400 | |
| commit | 8d45dd3b738854fb22e0c32b627f1b07dd2e497d (patch) | |
| tree | 2748887d1e494f483c74690d5ad2574901a450af /src/video_core/vulkan_common | |
| parent | Merge pull request #8073 from Shoegzer/compile_fixes (diff) | |
| download | yuzu-8d45dd3b738854fb22e0c32b627f1b07dd2e497d.tar.gz yuzu-8d45dd3b738854fb22e0c32b627f1b07dd2e497d.tar.xz yuzu-8d45dd3b738854fb22e0c32b627f1b07dd2e497d.zip | |
Vulkan: Use 3D helpers for MSAA scaling on NV drivers 510+
Nvidia Vulkan drivers 510+ crash when blitting MSAA images. Fall-back to 3D scale helpers for MSAA image scaling.
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 32c10d675..8c2e9e7eb 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -614,6 +614,11 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 614 | khr_push_descriptor = false; | 614 | khr_push_descriptor = false; |
| 615 | break; | 615 | break; |
| 616 | } | 616 | } |
| 617 | const u32 nv_major_version = (properties.driverVersion >> 22) & 0x3ff; | ||
| 618 | if (nv_major_version >= 510) { | ||
| 619 | LOG_WARNING(Render_Vulkan, "NVIDIA Drivers >= 510 do not support MSAA image blits"); | ||
| 620 | cant_blit_msaa = true; | ||
| 621 | } | ||
| 617 | } | 622 | } |
| 618 | const bool is_radv = driver_id == VK_DRIVER_ID_MESA_RADV; | 623 | const bool is_radv = driver_id == VK_DRIVER_ID_MESA_RADV; |
| 619 | if (ext_extended_dynamic_state && is_radv) { | 624 | if (ext_extended_dynamic_state && is_radv) { |