mirror of https://github.com/PCSX2/pcsx2.git
GS/TextureCache: Partially invalidate overlapping targets with tex-in-rt
This commit is contained in:
parent
a46964a258
commit
ec1a896795
|
@ -1000,6 +1000,12 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
|
|||
continue;
|
||||
}
|
||||
}
|
||||
else if (GSConfig.UserHacks_TextureInsideRt && t->Overlaps(bp, bw, psm, rect) && GSUtil::HasCompatibleBits(psm, t->m_TEX0.PSM))
|
||||
{
|
||||
const SurfaceOffset so = ComputeSurfaceOffset(off, r, t);
|
||||
if (so.is_valid)
|
||||
t->m_dirty.push_back(GSDirtyRect(so.b2a_offset, psm, bw));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue