From 2eaaf5b132573861f25510a3f17ecec336b58fba Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 1 Dec 2019 10:06:56 +0100 Subject: [PATCH] vk: Add sampleRateShading to the list of device enabled features --- rpcs3/Emu/RSX/VK/VKHelpers.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKHelpers.h b/rpcs3/Emu/RSX/VK/VKHelpers.h index c671e2fff9..134b3baeca 100644 --- a/rpcs3/Emu/RSX/VK/VKHelpers.h +++ b/rpcs3/Emu/RSX/VK/VKHelpers.h @@ -810,6 +810,7 @@ private: LOG_FATAL(RSX, "Your GPU driver does not support some required MSAA features. Expect problems."); } + enabled_features.sampleRateShading = VK_TRUE; enabled_features.alphaToOne = VK_TRUE; enabled_features.shaderStorageImageMultisample = VK_TRUE; // enabled_features.shaderStorageImageReadWithoutFormat = VK_TRUE; // Unused currently, may be needed soon @@ -831,6 +832,12 @@ private: enabled_features.depthBounds = VK_FALSE; } + if (!pgpu->features.sampleRateShading && enabled_features.sampleRateShading) + { + LOG_ERROR(RSX, "Your GPU does not support sample rate shading for multisampling. Graphics may be inaccurate when MSAA is enabled."); + enabled_features.sampleRateShading = VK_FALSE; + } + if (!pgpu->features.alphaToOne && enabled_features.alphaToOne) { // AMD proprietary drivers do not expose alphaToOne support