From 14f76c56278590c9eb4abc56aec08fc23a361977 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Thu, 11 Dec 2025 08:44:23 +0000 Subject: [PATCH] GS/HW: Detect offset shuffle on TexIsFB --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 21c4a06da9..fb595bdd8a 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -7085,7 +7085,10 @@ bool GSRendererHW::CanUseTexIsFB(const GSTextureCache::Target* rt, const GSTextu if (m_texture_shuffle) { // We can't do tex is FB if the source and destination aren't pointing to the same bit of texture. - if (m_texture_shuffle && (floor(abs(m_vt.m_min.t.y) + tex->m_region.GetMinY()) != floor(abs(m_vt.m_min.p.y)))) + if (floor(abs(m_vt.m_min.t.y) + tex->m_region.GetMinY()) != floor(abs(m_vt.m_min.p.y))) + return false; + + if (abs(floor(abs(m_vt.m_min.t.x) + tex->m_region.GetMinX()) - floor(abs(m_vt.m_min.p.x))) > 16) return false; GL_CACHE("HW: Enabling tex-is-fb for texture shuffle.");