GS-hw: Improve how we handle blending when output is Cd.

Disable hw blending on Cd output,
Disable rgb write on Cd output.
This commit is contained in:
lightningterror 2022-03-07 17:18:49 +01:00
parent 2d08d3dc94
commit 784e090081
1 changed files with 7 additions and 2 deletions

View File

@ -773,9 +773,14 @@ void GSRendererNew::EmulateBlending(bool& DATE_PRIMID, bool& DATE_BARRIER)
#endif #endif
if (color_dest_blend) if (color_dest_blend)
{ {
// Blend output will be Cd, no need to set Af. // Blend output will be Cd, disable hw/sw blending.
m_conf.blend = {blend_index, 0, ALPHA.C == 2, false, false}; m_conf.blend = {};
sw_blending = false; // DATE_PRIMID sw_blending = false; // DATE_PRIMID
// Output is Cd, set rgb write to 0.
m_conf.colormask.wr = 0;
m_conf.colormask.wg = 0;
m_conf.colormask.wb = 0;
} }
else if (sw_blending) else if (sw_blending)
{ {