aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs11
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);
}
}