GS/HW: Detect offset shuffle on TexIsFB

This commit is contained in:
refractionpcsx2 2025-12-11 08:44:23 +00:00 committed by lightningterror
parent 260eaa6c6c
commit 14f76c5627

View File

@ -7085,7 +7085,10 @@ bool GSRendererHW::CanUseTexIsFB(const GSTextureCache::Target* rt, const GSTextu
if (m_texture_shuffle) 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. // 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; return false;
GL_CACHE("HW: Enabling tex-is-fb for texture shuffle."); GL_CACHE("HW: Enabling tex-is-fb for texture shuffle.");