GS/HW: Fix double-half clears misfiring on CT32+Z24 when clearing depth

This commit is contained in:
Stenzek 2024-01-21 15:36:51 +10:00 committed by Connor McLaughlin
parent ed57355948
commit 56b83e5cfa
1 changed files with 1 additions and 1 deletions

View File

@ -5920,7 +5920,7 @@ bool GSRendererHW::DetectDoubleHalfClear(bool& no_rt, bool& no_ds)
const bool clear_depth = (m_cached_ctx.FRAME.FBP > m_cached_ctx.ZBUF.ZBP);
const u32 base = clear_depth ? m_cached_ctx.ZBUF.ZBP : m_cached_ctx.FRAME.FBP;
const u32 half = clear_depth ? m_cached_ctx.FRAME.FBP : m_cached_ctx.ZBUF.ZBP;
const bool enough_bits = clear_depth ? (frame_psm.trbpp >= zbuf_psm.trbpp) : (zbuf_psm.trbpp >= frame_psm.trbpp);
const bool enough_bits = (frame_psm.trbpp == zbuf_psm.trbpp);
// Size of the current draw
const u32 w_pages = (m_r.z + (frame_psm.pgs.x - 1)) / frame_psm.pgs.x;