Skip to content

Commit

Permalink
GS/TC: Fix invalidation bug when translating P8->C32
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Dec 29, 2023
1 parent fb393c2 commit 1744a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void GSTextureCache::DirtyRectByPage(u32 sbp, u32 spsm, u32 sbw, Target* t, GSVe

int page_offset = (block_offset) >> 5;
// remove any hoizontal offset, this is added back on later.
int start_page = page_offset + (src_r.x / src_info->pgs.x) + ((src_r.y / src_info->pgs.y) * std::max(static_cast<int>(sbw), 1));
int start_page = page_offset + (in_rect.x / src_info->pgs.x) + ((in_rect.y / src_info->pgs.y) * std::max(static_cast<int>(src_width / 64), 1));
const int horizontal_pages = (start_page % src_pg_width);
start_page -= horizontal_pages;

Expand Down

0 comments on commit 1744a6f

Please sign in to comment.