From 2d6c632bfec687ff4c59fd74216c784acff33c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 2 Dec 2022 15:19:06 +0100 Subject: [PATCH] Check resolve mode, just to be safe. --- Common/GPU/Vulkan/thin3d_vulkan.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index 802bde6bf3..8381256640 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -867,7 +867,8 @@ VKContext::VKContext(VulkanContext *vulkan) // of compatibility reports, so we'll just disable multisampling in this case for now. // There are potential workarounds for devices that don't support it, but those are nearly non-existent now. const auto &resolveProperties = vulkan->GetPhysicalDeviceProperties().depthStencilResolve; - if (vulkan->Extensions().KHR_depth_stencil_resolve) { + if (vulkan->Extensions().KHR_depth_stencil_resolve && + ((resolveProperties.supportedDepthResolveModes & resolveProperties.supportedStencilResolveModes) & VK_RESOLVE_MODE_SAMPLE_ZERO_BIT) != 0) { caps_.multiSampleLevelsMask = (limits.framebufferColorSampleCounts & limits.framebufferDepthSampleCounts & limits.framebufferStencilSampleCounts); } else { caps_.multiSampleLevelsMask = 1;