From cf7044e37bc628f25525941d25b830594b833428 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Fri, 20 Nov 2020 16:30:59 +0000 Subject: Perform Compressed<->Uncompressed copies using Pixel Buffer Objects (#1732) * PBO single layer copy, part 1 Still needs ability to take and set width/height slices. (using pack paramaters) * PBO Copies pt 2 * Some fixes and cleanup. * Misc Cleanup * Move handle into the TextureInfo interface. This interface is shared between texture storages and views. * Move unscaled copy to the TextureCopy class. * Address feedback. --- Ryujinx.Graphics.Texture/SizeCalculator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Texture') diff --git a/Ryujinx.Graphics.Texture/SizeCalculator.cs b/Ryujinx.Graphics.Texture/SizeCalculator.cs index b02b5a8d..9339ba12 100644 --- a/Ryujinx.Graphics.Texture/SizeCalculator.cs +++ b/Ryujinx.Graphics.Texture/SizeCalculator.cs @@ -197,7 +197,8 @@ namespace Ryujinx.Graphics.Texture alignment = GobStride / bytesPerPixel; } - (gobBlocksInY, gobBlocksInZ) = GetMipGobBlockSizes(height, depth, blockHeight, gobBlocksInY, gobBlocksInZ); + // Height has already been divided by block height, so pass it as 1. + (gobBlocksInY, gobBlocksInZ) = GetMipGobBlockSizes(height, depth, 1, gobBlocksInY, gobBlocksInZ); int blockOfGobsHeight = gobBlocksInY * GobHeight; int blockOfGobsDepth = gobBlocksInZ; -- cgit v1.2.3