Fix Maxwell3D Blend Enum Conversion Bugs

The `OneMinusSourceAlpha` blending factor was converted to `eOneMinusSrcColor` rather than `eOneMinusSrcAlpha` leading to incorrect blending behavior in certain titles. A similar issue with the order of `MinimumGL`/`MaximumGL` and `SubtractGL`/`ReverseSubtractGL` being the opposite of what it should've been, both of these issues have been fixed.
This commit is contained in:
PixelyIon 2022-01-11 19:57:21 +05:30
parent 0a506088f4
commit 21a6866def
2 changed files with 5 additions and 5 deletions

View File

@ -1210,7 +1210,7 @@ namespace skyline::gpu::interconnect {
case maxwell3d::BlendFactor::OneMinusSourceAlpha:
case maxwell3d::BlendFactor::OneMinusSourceAlphaGL:
return vk::BlendFactor::eOneMinusSrcColor;
return vk::BlendFactor::eOneMinusSrcAlpha;
case maxwell3d::BlendFactor::DestAlpha:
case maxwell3d::BlendFactor::DestAlphaGL:

View File

@ -393,10 +393,10 @@ namespace skyline::soc::gm20b::engine::maxwell3d::type {
Maximum = 5,
AddGL = 0x8006,
SubtractGL = 0x8007,
ReverseSubtractGL = 0x8008,
MinimumGL = 0x800A,
MaximumGL = 0x800B,
MinimumGL = 0x8007,
MaximumGL = 0x8008,
SubtractGL = 0x800A,
ReverseSubtractGL = 0x800B,
};
enum class BlendFactor : u32 {