mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
GS/HW: Detect offset shuffle on TexIsFB
This commit is contained in:
parent
260eaa6c6c
commit
14f76c5627
@ -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.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user