From 6b3af09fa5d550a9d9cc4370ecb8252955bc0686 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 4 Nov 2019 12:40:32 +0300 Subject: [PATCH] vk: Improved crash message for missing MSAA features --- rpcs3/Emu/RSX/VK/VKHelpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index f6e9b90953..c1ac861e78 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -794,6 +794,14 @@ private: if (g_cfg.video.antialiasing_level != msaa_level::none) { // MSAA features + if (!pgpu->features.shaderStorageImageMultisample || + !pgpu->features.shaderStorageImageWriteWithoutFormat) + { + // TODO: Slow fallback to emulate this + // Just warn and let the driver decide whether to crash or not + LOG_FATAL(RSX, "Your GPU driver does not support some required MSAA features. Expect problems."); + } + enabled_features.alphaToOne = VK_TRUE; enabled_features.shaderStorageImageMultisample = VK_TRUE; // enabled_features.shaderStorageImageReadWithoutFormat = VK_TRUE; // Unused currently, may be needed soon