From 232492211189f98e214f5dc1e53aa412c16705d7 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 9 Mar 2024 05:16:27 +0000 Subject: [PATCH] GS/HW: Don't allow conversion to indexed is read is outside the target --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index d254f6af04..cdbe6aea8b 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -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; }