Use correct pitch value when decoding linear swizzle textures

This commit is contained in:
gdkchan 2018-04-08 17:09:41 -03:00
parent b9aa3966c0
commit 36dfd20c87
4 changed files with 19 additions and 14 deletions

View file

@ -20,6 +20,8 @@ namespace Ryujinx.Graphics.Gpu
TextureSwizzle Swizzle = (TextureSwizzle)((Tic[2] >> 21) & 7);
int Pitch = (Tic[3] & 0xffff) << 5;
int BlockHeightLog2 = (Tic[3] >> 3) & 7;
int BlockHeight = 1 << BlockHeightLog2;
@ -31,6 +33,7 @@ namespace Ryujinx.Graphics.Gpu
TextureAddress,
Width,
Height,
Pitch,
BlockHeight,
Swizzle,
Format);