From 5227bc9167003643af2964982e01523cd40cf0ae Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 8 Oct 2022 21:18:04 +0200 Subject: [PATCH] GS-hw: Add missing stencil buffer check for fba or coverage alpha DATE. --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 1810582d99..54a3bcda90 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -3434,8 +3434,9 @@ void GSRendererHW::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc DATE_BARRIER = true; } } - // When Blending is disabled and Edge Anti Aliasing is enabled, the output alpha is Coverage (which we force to 128) so DATE will fail/pass guaranteed on second pass. - else if (m_conf.colormask.wa && (m_context->FBA.FBA || IsCoverageAlpha())) + // When Blending is disabled and Edge Anti Aliasing is enabled, + // the output alpha is Coverage (which we force to 128) so DATE will fail/pass guaranteed on second pass. + else if (m_conf.colormask.wa && (m_context->FBA.FBA || IsCoverageAlpha()) && features.stencil_buffer) { GL_PERF("DATE: Fast with FBA, all pixels will be >= 128"); DATE_one = !m_context->TEST.DATM;