Skip to content

Commit

Permalink
GS/HW: Assume not a DHC if clut overlap on depth clear
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Sep 23, 2023
1 parent 4998672 commit 1c828bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1c828bd

Please sign in to comment.