GS/HW: Don't allow conversion to indexed is read is outside the target

This commit is contained in:
refractionpcsx2 2024-03-09 05:16:27 +00:00
parent 1cfc2780d0
commit 2324922111
1 changed files with 3 additions and 1 deletions

View File

@ -1334,8 +1334,10 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const bool is_color, const
}
else
{
const bool outside_target = !t->Overlaps(bp, bw, psm, r);
// We don't have a shader for this.
if (!possible_shuffle && TEX0.PSM == PSMT8 && GSLocalMemory::m_psm[t->m_TEX0.PSM].bpp != 32)
if (!possible_shuffle && TEX0.PSM == PSMT8 && ((GSLocalMemory::m_psm[t->m_TEX0.PSM].bpp != 32) || outside_target))
{
continue;
}