Skip to content

Commit

Permalink
GS/HW: Make sure it's not a channel shuffle when the alpha of a targe…
Browse files Browse the repository at this point in the history
…t is used as source.

The alpha of a target used a source is meaningless to us,
since it's not really an indexed texture.
  • Loading branch information
lightningterror committed Sep 23, 2024
1 parent c01dc20 commit 13e0546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,9 @@ void GSRendererHW::Draw()
// We don't know the alpha range of direct sources when we first tried to optimize the alpha test.
// Moving the texture lookup before the ATST optimization complicates things a lot, so instead,
// recompute it, and everything derived from it again if it changes.
if (src->m_valid_alpha_minmax)
// No channel shuffle as the alpha of a target used a source is meaningless to us,
// since it's not really an indexed texture.
if (!IsPossibleChannelShuffle() && src->m_valid_alpha_minmax)
{
CalcAlphaMinMax(src->m_alpha_minmax.first, src->m_alpha_minmax.second);

Expand Down

0 comments on commit 13e0546

Please sign in to comment.