From f332d4f8806d0bff07a206ffb814673a75438a78 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 31 Mar 2023 23:20:01 +1000 Subject: [PATCH] GS/HW: Set no_ds if Z tests are disabled and masked --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 7ce3e6af1f..a9b2806195 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -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