mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
vk: Add sampleRateShading to the list of device enabled features
This commit is contained in:
parent
185c067d5b
commit
2eaaf5b132
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user