mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
vk: Add sampleRateShading to the list of device enabled features
This commit is contained in:
parent
185c067d5b
commit
2eaaf5b132
1 changed files with 7 additions and 0 deletions
|
@ -810,6 +810,7 @@ private:
|
||||||
LOG_FATAL(RSX, "Your GPU driver does not support some required MSAA features. Expect problems.");
|
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.alphaToOne = VK_TRUE;
|
||||||
enabled_features.shaderStorageImageMultisample = VK_TRUE;
|
enabled_features.shaderStorageImageMultisample = VK_TRUE;
|
||||||
// enabled_features.shaderStorageImageReadWithoutFormat = VK_TRUE; // Unused currently, may be needed soon
|
// enabled_features.shaderStorageImageReadWithoutFormat = VK_TRUE; // Unused currently, may be needed soon
|
||||||
|
@ -831,6 +832,12 @@ private:
|
||||||
enabled_features.depthBounds = VK_FALSE;
|
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)
|
if (!pgpu->features.alphaToOne && enabled_features.alphaToOne)
|
||||||
{
|
{
|
||||||
// AMD proprietary drivers do not expose alphaToOne support
|
// AMD proprietary drivers do not expose alphaToOne support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue