From 3bcc395253e020df40763d36ba9401b126b17173 Mon Sep 17 00:00:00 2001 From: gdk Date: Sun, 27 Oct 2019 17:51:33 -0300 Subject: Add shader support for the round mode on the F2F instruction, support mipmaps on ASTC compressed textures --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Image/Texture.cs') 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); -- cgit v1.2.3