Skip to content

Commit

Permalink
GS/HW: Remove blend C check for pabe optimization for hw blend.
Browse files Browse the repository at this point in the history
There were some cases where C is 2 (Af).
  • Loading branch information
lightningterror committed Oct 20, 2023
1 parent d4cb2e6 commit 53dcd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3897,7 +3897,7 @@ void GSRendererHW::EmulateBlending(int rt_alpha_min, int rt_alpha_max, bool& DAT
m_conf.ps.pabe = !(accumulation_blend || blend_mix);
}
}
else if (m_conf.ps.blend_a == 0 && m_conf.ps.blend_b == 1 && m_conf.ps.blend_c == 0 && m_conf.ps.blend_d == 1)
else if (m_conf.ps.blend_a == 0 && m_conf.ps.blend_b == 1 && m_conf.ps.blend_d == 1)
{
// this works because with PABE alpha blending is on when alpha >= 0x80, but since the pixel shader
// cannot output anything over 0x80 (== 1.0) blending with 0x80 or turning it off gives the same result
Expand Down

0 comments on commit 53dcd35

Please sign in to comment.