GS/TextureCache: Check PSM matches before expanding target

Mercenaries is doing a 128x4095 write in PSMT4, which when upscaling,
goes beyond the limits of most GPUs.
This commit is contained in:
Stenzek 2023-01-11 22:01:40 +10:00 committed by lightningterror
parent a718a785b3
commit e449ad7472
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ void GSTextureCache::ExpandTarget(const GIFRegBITBLTBUF& BITBLTBUF, const GSVect
{ {
Target* t = *i; Target* t = *i;
if (TEX0.TBP0 == t->m_TEX0.TBP0 && t->Overlaps(TEX0.TBP0, TEX0.TBW, TEX0.PSM, r)) if (TEX0.TBP0 == t->m_TEX0.TBP0 && TEX0.PSM == t->m_TEX0.PSM && t->Overlaps(TEX0.TBP0, TEX0.TBW, TEX0.PSM, r))
{ {
list.MoveFront(i.Index()); list.MoveFront(i.Index());