Skip to content

Commit

Permalink
GS/TC: Fix invalidation when start page is negative
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Dec 29, 2023
1 parent 1744a6f commit ecb86b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ void GSTextureCache::DirtyRectByPage(u32 sbp, u32 spsm, u32 sbw, Target* t, GSVe
const int vertical_offset = (inc_vertical_offset / src_info->pgs.y) * src_pg_width;
page_offset -= vertical_offset;

if (start_page < 0 && in_rect.x == 0 && in_rect.y == 0)
start_page -= vertical_offset;

sbp -= vertical_offset << 5;
// Update the block offset.
block_offset = static_cast<int>(sbp) - static_cast<int>(target_bp);
Expand Down

0 comments on commit ecb86b0

Please sign in to comment.