GS/HW: Set no_ds if Z tests are disabled and masked

This commit is contained in:
Stenzek 2023-03-31 23:20:01 +10:00 committed by refractionpcsx2
parent 5ce418cdaf
commit f332d4f880
1 changed files with 1 additions and 1 deletions

View File

@ -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);
const bool no_ds = (
// 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
(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