mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 17:35:29 +03:00
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:
parent
0a506088f4
commit
21a6866def
@ -1210,7 +1210,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
|
|
||||||
case maxwell3d::BlendFactor::OneMinusSourceAlpha:
|
case maxwell3d::BlendFactor::OneMinusSourceAlpha:
|
||||||
case maxwell3d::BlendFactor::OneMinusSourceAlphaGL:
|
case maxwell3d::BlendFactor::OneMinusSourceAlphaGL:
|
||||||
return vk::BlendFactor::eOneMinusSrcColor;
|
return vk::BlendFactor::eOneMinusSrcAlpha;
|
||||||
|
|
||||||
case maxwell3d::BlendFactor::DestAlpha:
|
case maxwell3d::BlendFactor::DestAlpha:
|
||||||
case maxwell3d::BlendFactor::DestAlphaGL:
|
case maxwell3d::BlendFactor::DestAlphaGL:
|
||||||
|
@ -393,10 +393,10 @@ namespace skyline::soc::gm20b::engine::maxwell3d::type {
|
|||||||
Maximum = 5,
|
Maximum = 5,
|
||||||
|
|
||||||
AddGL = 0x8006,
|
AddGL = 0x8006,
|
||||||
SubtractGL = 0x8007,
|
MinimumGL = 0x8007,
|
||||||
ReverseSubtractGL = 0x8008,
|
MaximumGL = 0x8008,
|
||||||
MinimumGL = 0x800A,
|
SubtractGL = 0x800A,
|
||||||
MaximumGL = 0x800B,
|
ReverseSubtractGL = 0x800B,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class BlendFactor : u32 {
|
enum class BlendFactor : u32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user