mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Set no_ds if Z tests are disabled and masked
This commit is contained in:
parent
5ce418cdaf
commit
f332d4f880
|
@ -1482,7 +1482,7 @@ void GSRendererHW::Draw()
|
||||||
|| (!context->TEST.DATE && (context->FRAME.FBMSK & GSLocalMemory::m_psm[context->FRAME.PSM].fmsk) == GSLocalMemory::m_psm[context->FRAME.PSM].fmsk);
|
|| (!context->TEST.DATE && (context->FRAME.FBMSK & GSLocalMemory::m_psm[context->FRAME.PSM].fmsk) == GSLocalMemory::m_psm[context->FRAME.PSM].fmsk);
|
||||||
const bool no_ds = (
|
const bool no_ds = (
|
||||||
// Depth is always pass/fail (no read) and write are discarded.
|
// Depth is always pass/fail (no read) and write are discarded.
|
||||||
(zm != 0 && context->TEST.ZTST <= ZTST_ALWAYS) ||
|
(zm != 0 && (!context->TEST.ZTE || context->TEST.ZTST <= ZTST_ALWAYS)) ||
|
||||||
// Depth test will always pass
|
// Depth test will always pass
|
||||||
(zm != 0 && context->TEST.ZTST == ZTST_GEQUAL && m_vt.m_eq.z && std::min(m_vertex.buff[0].XYZ.Z, max_z) == max_z) ||
|
(zm != 0 && context->TEST.ZTST == ZTST_GEQUAL && m_vt.m_eq.z && std::min(m_vertex.buff[0].XYZ.Z, max_z) == max_z) ||
|
||||||
// Depth will be written through the RT
|
// Depth will be written through the RT
|
||||||
|
|
Loading…
Reference in New Issue