From af8498d6790ba83f1cf87eccf5f272f2ccbeb169 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 28 Dec 2019 20:45:33 -0300 Subject: Add basic error logging to the GPU --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index b939e0b2..04657f39 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -1,4 +1,5 @@ using Ryujinx.Common; +using Ryujinx.Common.Logging; using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.GAL.Texture; using Ryujinx.Graphics.Gpu.Memory; @@ -7,7 +8,6 @@ using Ryujinx.Graphics.Texture.Astc; using System; using System.Collections.Generic; using System.Diagnostics; -using Ryujinx.Common.Logging; namespace Ryujinx.Graphics.Gpu.Image { @@ -256,7 +256,9 @@ namespace Ryujinx.Graphics.Gpu.Image _info.Levels, out Span decoded)) { - // TODO: Error. + string texInfo = $"{_info.Target} {_info.FormatInfo.Format} {_info.Width}x{_info.Height}x{_info.DepthOrLayers} levels {_info.Levels}"; + + Logger.PrintError(LogClass.Gpu, $"Invalid ASTC texture at 0x{_info.Address:X} ({texInfo})."); } data = decoded; -- cgit v1.2.3