Use correct pitch value when decoding linear swizzle textures
This commit is contained in:
parent
b9aa3966c0
commit
36dfd20c87
4 changed files with 19 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue