vk: Improved crash message for missing MSAA features

This commit is contained in:
kd-11 2019-11-04 12:40:32 +03:00 committed by kd-11
parent 8ed45a0553
commit 6b3af09fa5
1 changed files with 8 additions and 0 deletions

View File

@ -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