GS/HW: Assume not a DHC if clut overlap on depth clear

This commit is contained in:
refractionpcsx2 2023-09-21 01:28:44 +01:00
parent 499867255b
commit 1c828bd680
1 changed files with 4 additions and 0 deletions

View File

@ -5742,6 +5742,10 @@ bool GSRendererHW::DetectDoubleHalfClear(bool& no_rt, bool& no_ds)
return false;
}
// Shortcut, if it's clearing Z then the clut overlap is not reading Z.
if (m_state_flush_reason == CLUTCHANGE && clear_depth)
return false;
const int next_ctx = (m_state_flush_reason == CONTEXTCHANGE) ? m_env.PRIM.CTXT : (1 - m_env.PRIM.CTXT);
// This is likely a full screen, can only really tell if this frame is used in the next draw, and we need to check if the height fills the next scissor.