Skip to content

Commit

Permalink
GS: partially revert "c1e5e45431863bc206686c49b8fb4fa2775be9a2".
Browse files Browse the repository at this point in the history
overwrite the target pitch when an overlapping write is detected
with the write pitch itself.
fixes the broken splashscreen in This is Football 2002.
  • Loading branch information
iMineLink authored and refractionpcsx2 committed Feb 7, 2022
1 parent fede91a commit 1a2272a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Expand Up @@ -818,6 +818,7 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
GL_CACHE("TC: Dirty Target(%s) %d (0x%x) r(%d,%d,%d,%d)", to_string(type),
t->m_texture ? t->m_texture->GetID() : 0,
t->m_TEX0.TBP0, r.x, r.y, r.z, r.w);
t->m_TEX0.TBW = bw;
t->m_dirty.push_back(GSDirtyRect(r, psm, bw));
}
else
Expand Down Expand Up @@ -857,6 +858,7 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
t->m_texture ? t->m_texture->GetID() : 0,
t->m_TEX0.TBP0);
// TODO: do not add this rect above too
t->m_TEX0.TBW = bw;
t->m_dirty.push_back(GSDirtyRect(GSVector4i(r.left, r.top - y, r.right, r.bottom - y), psm, bw));
continue;
}
Expand Down Expand Up @@ -884,6 +886,7 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
t->m_TEX0.TBP0, t->m_end_block,
r.left, r.top + y, r.right, r.bottom + y, bw);

t->m_TEX0.TBW = bw;
t->m_dirty.push_back(GSDirtyRect(GSVector4i(r.left, r.top + y, r.right, r.bottom + y), psm, bw));
continue;
}
Expand Down

0 comments on commit 1a2272a

Please sign in to comment.