|
@@ -62,67 +62,67 @@ namespace Ryujinx.HLE.Gpu.Texture
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 4, 4, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 4, 4, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D5x5:
|
|
case GalTextureFormat.Astc2D5x5:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 5, 5, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 5, 5, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D6x6:
|
|
case GalTextureFormat.Astc2D6x6:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 6, 6, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 6, 6, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D8x8:
|
|
case GalTextureFormat.Astc2D8x8:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 8, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 8, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D10x10:
|
|
case GalTextureFormat.Astc2D10x10:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 10, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 10, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D12x12:
|
|
case GalTextureFormat.Astc2D12x12:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 12, 12, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 12, 12, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D5x4:
|
|
case GalTextureFormat.Astc2D5x4:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 5, 4, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 5, 4, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D6x5:
|
|
case GalTextureFormat.Astc2D6x5:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 6, 5, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 6, 5, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D8x6:
|
|
case GalTextureFormat.Astc2D8x6:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 6, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 6, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D10x8:
|
|
case GalTextureFormat.Astc2D10x8:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 8, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 8, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D12x10:
|
|
case GalTextureFormat.Astc2D12x10:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 12, 10, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 12, 10, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D8x5:
|
|
case GalTextureFormat.Astc2D8x5:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 5, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 8, 5, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D10x5:
|
|
case GalTextureFormat.Astc2D10x5:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 5, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 5, 16);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
case GalTextureFormat.Astc2D10x6:
|
|
case GalTextureFormat.Astc2D10x6:
|
|
|
{
|
|
{
|
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 6, 16);
|
|
return CompressedTextureSize(Texture.Width, Texture.Height, 10, 6, 16);
|
|
@@ -139,7 +139,7 @@ namespace Ryujinx.HLE.Gpu.Texture
|
|
|
|
|
|
|
|
return W * H * Bpb;
|
|
return W * H * Bpb;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
public static (AMemory Memory, long Position) GetMemoryAndPosition(
|
|
public static (AMemory Memory, long Position) GetMemoryAndPosition(
|
|
|
IAMemory Memory,
|
|
IAMemory Memory,
|
|
|
long Position)
|
|
long Position)
|