GS/TextureCache: Partially invalidate overlapping targets with tex-in-rt

This commit is contained in:
Connor McLaughlin 2022-10-09 16:44:31 +10:00 committed by refractionpcsx2
parent a46964a258
commit ec1a896795
1 changed files with 6 additions and 0 deletions

View File

@ -1000,6 +1000,12 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
continue; 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 #endif
} }
} }