mirror of https://github.com/PCSX2/pcsx2.git
GS/TextureCache: Fix incorrect hashing of L/H/small textures
Fixes text getting garbled in Valkyrie Profile 2 with preloading on.
This commit is contained in:
parent
c88a042c8b
commit
fbac3ebad1
|
@ -2966,7 +2966,7 @@ static void HashTextureLevel(const GIFRegTEX0& TEX0, const GIFRegTEXA& TEXA, Blo
|
||||||
if (tw < bs.x || th < bs.y || psm.fmsk != 0xFFFFFFFFu)
|
if (tw < bs.x || th < bs.y || psm.fmsk != 0xFFFFFFFFu)
|
||||||
{
|
{
|
||||||
// Expand texture indices. Align to 32 bytes for AVX2.
|
// 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 u32 row_size = static_cast<u32>(tw);
|
||||||
const GSLocalMemory::readTexture rtx = psm.rtxP;
|
const GSLocalMemory::readTexture rtx = psm.rtxP;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue