Restrict gobBlocksInZ for non-3D textures

This commit is contained in:
2026-06-15 20:03:26 -04:00
committed by GitHub
parent 6d67a86efd
commit e33e86c5bb
@@ -596,7 +596,10 @@ namespace Ryujinx.Graphics.Gpu.Image
int gobBlocksInY = descriptor.UnpackGobBlocksInY();
int gobBlocksInZ = descriptor.UnpackGobBlocksInZ();
if (target != Target.Texture3D && gobBlocksInZ > 1 && depthOrLayers > 1)
{
gobBlocksInZ = 1;
}
int gobBlocksInTileX = descriptor.UnpackGobBlocksInTileX();
layerSize = 0;