GPU/HW: Fix incorrect mask in VRAM offset calc

This commit is contained in:
Stenzek 2023-12-14 18:45:04 +10:00
parent adfde45dc1
commit 5218ac6944
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -2046,8 +2046,8 @@ ALWAYS_INLINE_RELEASE void GPU_HW::CheckForTexPageOverlap(u32 texpage, u32 min_u
const u32 xoffs = (texpage & 0xFu) * 64u;
const u32 yoffs = ((texpage >> 4) & 1u) * 256u;
const u32 xshift = uv_shifts_adds[(texpage >> 7) & 2][0];
const u32 xadd = uv_shifts_adds[(texpage >> 7) & 2][1];
const u32 xshift = uv_shifts_adds[(texpage >> 7) & 3][0];
const u32 xadd = uv_shifts_adds[(texpage >> 7) & 3][1];
const u32 vram_min_u =
(((min_u & m_draw_mode.texture_window.and_x) | m_draw_mode.texture_window.or_x) >> xshift) + xoffs;