Skip to content

Commit

Permalink
GS/HW: Adjust decorrection further.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Mar 1, 2024
1 parent c0f4d19 commit 467381d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5294,8 +5294,11 @@ __ri void GSRendererHW::DrawPrims(GSTextureCache::Target* rt, GSTextureCache::Ta
}
else if (m_conf.colormask.wa)
{
if (m_cached_ctx.FRAME.FBMSK == 0x3FFF)
if (!(m_cached_ctx.FRAME.FBMSK & 0xFFFC0000))
{
rt->m_rt_alpha_scale = false;
m_conf.ps.rta_correction = 1;
}
else if (m_cached_ctx.FRAME.FBMSK & 0xFFFC0000)
{
rt->RTADecorrect(rt);
Expand All @@ -5312,15 +5315,18 @@ __ri void GSRendererHW::DrawPrims(GSTextureCache::Target* rt, GSTextureCache::Ta
}
}
else if (rt->m_last_draw == s_n)
{
rt->m_rt_alpha_scale = false;
m_conf.ps.rta_correction = 1;
}
else
{
rt->RTADecorrect(rt);
m_conf.rt = rt->m_texture;
}
}
else
m_conf.ps.rta_correction = rt->m_rt_alpha_scale;

m_conf.ps.rta_correction = rt->m_rt_alpha_scale;
}

bool blending_alpha_pass = false;
Expand Down

0 comments on commit 467381d

Please sign in to comment.