mirror of https://github.com/PCSX2/pcsx2.git
GS-HW: Avoid clear misdetection with DATE enabled
This commit is contained in:
parent
dd2d4edffc
commit
3e631e047f
|
@ -5232,6 +5232,7 @@ bool GSRendererHW::IsConstantDirectWriteMemClear()
|
|||
if (direct_draw && !PRIM->TME // Direct write
|
||||
&& !(m_draw_env->SCANMSK.MSK & 2)
|
||||
&& !m_cached_ctx.TEST.ATE // no alpha test
|
||||
&& !m_cached_ctx.TEST.DATE // no destination alpha test
|
||||
&& (!m_cached_ctx.TEST.ZTE || m_cached_ctx.TEST.ZTST == ZTST_ALWAYS) // no depth test
|
||||
&& (m_vt.m_eq.rgba == 0xFFFF || m_vertex.next == 2) // constant color write
|
||||
&& m_r.x == 0 && m_r.y == 0) // Likely full buffer write
|
||||
|
|
Loading…
Reference in New Issue