mirror of https://github.com/PCSX2/pcsx2.git
GS-hw: Move blend mix condition to blend switch case.
Cleaner.
This commit is contained in:
parent
33f88039d7
commit
4f5bbebcd8
|
@ -581,6 +581,9 @@ void GSRendererNew::EmulateBlending(bool& DATE_PRIMID, bool& DATE_BARRIER)
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case AccBlendLevel::Basic:
|
case AccBlendLevel::Basic:
|
||||||
sw_blending |= impossible_or_free_blend;
|
sw_blending |= impossible_or_free_blend;
|
||||||
|
// Do not run BLEND MIX if sw blending is already present, it's less accurate
|
||||||
|
blend_mix &= !sw_blending;
|
||||||
|
sw_blending |= blend_mix;
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case AccBlendLevel::Minimum:
|
case AccBlendLevel::Minimum:
|
||||||
break;
|
break;
|
||||||
|
@ -607,19 +610,15 @@ void GSRendererNew::EmulateBlending(bool& DATE_PRIMID, bool& DATE_BARRIER)
|
||||||
// Disable accumulation blend when there is fbmask with no overlap, will be faster.
|
// Disable accumulation blend when there is fbmask with no overlap, will be faster.
|
||||||
accumulation_blend &= !fbmask_no_overlap;
|
accumulation_blend &= !fbmask_no_overlap;
|
||||||
sw_blending |= accumulation_blend || blend_non_recursive || fbmask_no_overlap;
|
sw_blending |= accumulation_blend || blend_non_recursive || fbmask_no_overlap;
|
||||||
|
// Do not run BLEND MIX if sw blending is already present, it's less accurate
|
||||||
|
blend_mix &= !sw_blending;
|
||||||
|
sw_blending |= blend_mix;
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case AccBlendLevel::Minimum:
|
case AccBlendLevel::Minimum:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not run BLEND MIX if sw blending is already present, it's less accurate
|
|
||||||
if (GSConfig.AccurateBlendingUnit != AccBlendLevel::Minimum)
|
|
||||||
{
|
|
||||||
blend_mix &= !sw_blending;
|
|
||||||
sw_blending |= blend_mix;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Color clip
|
// Color clip
|
||||||
if (m_env.COLCLAMP.CLAMP == 0)
|
if (m_env.COLCLAMP.CLAMP == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue