aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-10-27 17:51:33 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit3bcc395253e020df40763d36ba9401b126b17173 (patch)
treec172daab458b1447d7aa69832fd10068bc9ca1b6 /Ryujinx.Graphics.Gpu/Image
parentd3fcab85112708707eacc4c71a8362b9c178218d (diff)
Add shader support for the round mode on the F2F instruction, support mipmaps on ASTC compressed textures
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs
index 8da1041b..c34ff1d3 100644
--- a/Ryujinx.Graphics.Gpu/Image/Texture.cs
+++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs
@@ -250,17 +250,15 @@ namespace Ryujinx.Graphics.Gpu.Image
if (!_context.Capabilities.SupportsAstcCompression && _info.FormatInfo.Format.IsAstc())
{
- int blockWidth = _info.FormatInfo.BlockWidth;
- int blockHeight = _info.FormatInfo.BlockHeight;
-
data = AstcDecoder.DecodeToRgba8(
data,
- blockWidth,
- blockHeight,
+ _info.FormatInfo.BlockWidth,
+ _info.FormatInfo.BlockHeight,
1,
_info.Width,
_info.Height,
- _depth);
+ _depth,
+ _info.Levels);
}
HostTexture.SetData(data);