GS-hw: Fix pabe regression from renderers merge.

Only OpenGL should disable accumulation and blend mix to allow reading the framebuffer next.

Also pabe will only be accurate with non recursive blend on d3d11 only so enable it for it only.
This commit is contained in:
lightningterror 2021-12-26 19:12:28 +01:00
parent 25dd92f8c0
commit 208d3ffa7b
1 changed files with 11 additions and 3 deletions

View File

@ -643,9 +643,17 @@ void GSRendererNew::EmulateBlending(bool& DATE_GL42, bool& DATE_GL45)
if (sw_blending)
{
GL_INS("PABE mode ENABLED");
m_conf.ps.pabe = 1;
accumulation_blend = false;
blend_mix = false;
if (m_dev->Features().texture_barrier)
{
// Disable hw/sw blend and do pure sw blend with reading the framebuffer.
accumulation_blend = false;
blend_mix = false;
m_conf.ps.pabe = 1;
}
else
{
m_conf.ps.pabe = blend_non_recursive;
}
}
else if (ALPHA.A == 0 && ALPHA.B == 1 && ALPHA.C == 0 && ALPHA.D == 1)
{