Restrict gobBlocksInZ for non-3D textures
This commit is contained in:
@@ -596,7 +596,10 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||||||
|
|
||||||
int gobBlocksInY = descriptor.UnpackGobBlocksInY();
|
int gobBlocksInY = descriptor.UnpackGobBlocksInY();
|
||||||
int gobBlocksInZ = descriptor.UnpackGobBlocksInZ();
|
int gobBlocksInZ = descriptor.UnpackGobBlocksInZ();
|
||||||
|
if (target != Target.Texture3D && gobBlocksInZ > 1 && depthOrLayers > 1)
|
||||||
|
{
|
||||||
|
gobBlocksInZ = 1;
|
||||||
|
}
|
||||||
int gobBlocksInTileX = descriptor.UnpackGobBlocksInTileX();
|
int gobBlocksInTileX = descriptor.UnpackGobBlocksInTileX();
|
||||||
|
|
||||||
layerSize = 0;
|
layerSize = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user