Skip to content

Commit

Permalink
GS/TextureCache: Fix incorrect hashing of L/H/small textures
Browse files Browse the repository at this point in the history
Fixes text getting garbled in Valkyrie Profile 2 with preloading on.
  • Loading branch information
stenzek authored and refractionpcsx2 committed Jul 7, 2022
1 parent c88a042 commit fbac3eb
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 @@ -2966,7 +2966,7 @@ static void HashTextureLevel(const GIFRegTEX0& TEX0, const GIFRegTEXA& TEXA, Blo
if (tw < bs.x || th < bs.y || psm.fmsk != 0xFFFFFFFFu)
{
// Expand texture indices. Align to 32 bytes for AVX2.
const u32 pitch = Common::AlignUpPow2(static_cast<u32>(block_rect.w), 32);
const u32 pitch = Common::AlignUpPow2(static_cast<u32>(block_rect.z), 32);
const u32 row_size = static_cast<u32>(tw);
const GSLocalMemory::readTexture rtx = psm.rtxP;

Expand Down

0 comments on commit fbac3eb

Please sign in to comment.