gsdx-ogl: Make sure DATE_GL42 doesn't run on clamp 0 with non recursive or accu blending.

Also remove DATE_GL42 asserts.
This commit is contained in:
lightningterror 2020-09-22 18:06:53 +02:00
parent bb4efe7a34
commit 271bec0f14
1 changed files with 2 additions and 7 deletions

View File

@ -518,7 +518,8 @@ void GSRendererOGL::EmulateBlending(bool& DATE_GL42, bool& DATE_GL45)
// that write the bad alpha value. Sw blending will force the draw to run primitive by primitive
// (therefore primitiveID will be constant to 1).
// Switch DATE_GL42 with DATE_GL45 in such cases to ensure accuracy.
if (sw_blending && DATE_GL42) {
// No mix of COLCLIP + sw blend + DATE_GL42, neither sw fbmask + DATE_GL42.
if ((((accumulation_blend || blend_non_recursive) && m_env.COLCLAMP.CLAMP == 0) || sw_blending) && DATE_GL42) {
GL_PERF("DATE: Swap DATE_GL42 with DATE_GL45");
m_require_full_barrier = true;
DATE_GL42 = false;
@ -554,12 +555,6 @@ void GSRendererOGL::EmulateBlending(bool& DATE_GL42, bool& DATE_GL45)
}
}
// Seriously don't expect me to support this kind of crazyness.
// No mix of COLCLIP + accumulation_blend + DATE GL42
// Neither fbmask and GL42
ASSERT(!(m_ps_sel.hdr && DATE_GL42));
ASSERT(!(m_ps_sel.fbmask && DATE_GL42));
// For stat to optimize accurate option
#if 0
GL_INS("BLEND_INFO: %d/%d/%d/%d. Clamp:%d. Prim:%d number %d (drawlist %d) (sw %d)",