From e33e86c5bb9c48f2384f96ebde64cf9311fde3fe Mon Sep 17 00:00:00 2001 From: TheRooferDev Date: Mon, 15 Jun 2026 20:03:26 -0400 Subject: [PATCH] Restrict gobBlocksInZ for non-3D textures --- src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs index d9fe02f8d..974ea7b1c 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs @@ -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;