diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-04-25 10:40:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 23:40:20 +1000 |
| commit | 34d19f381cd496ec5e6d4fb13b45d47c141b7a63 (patch) | |
| tree | 0e8c66f59c0d19f2b73c458434b248dc2fab5846 /Ryujinx.Graphics.Gpu/Image | |
| parent | bcc5b0d21ec68732c3db37147e07800e3851892a (diff) | |
Fix texture level offset/size calculation when sparse tile width is > 1 (#1142)
* Fix texture level offset/size calculation when sparse tile width is > 1
* Sparse tile width affects layer size alignment aswell
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/Texture.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 957c3465..d02c3665 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -870,13 +870,6 @@ namespace Ryujinx.Graphics.Gpu.Image { int depth = Math.Max(1, info.GetDepth() >> level); - (int gobBlocksInY, int gobBlocksInZ) = SizeCalculator.GetMipGobBlockSizes( - height, - depth, - info.FormatInfo.BlockHeight, - info.GobBlocksInY, - info.GobBlocksInZ); - return SizeCalculator.GetBlockLinearAlignedSize( width, height, @@ -884,8 +877,8 @@ namespace Ryujinx.Graphics.Gpu.Image info.FormatInfo.BlockWidth, info.FormatInfo.BlockHeight, info.FormatInfo.BytesPerPixel, - gobBlocksInY, - gobBlocksInZ, + info.GobBlocksInY, + info.GobBlocksInZ, info.GobBlocksInTileX); } } |
