diff options
author | gdkchan <gab.dark.100@gmail.com> | 2019-12-28 20:45:33 -0300 |
---|---|---|
committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
commit | af8498d6790ba83f1cf87eccf5f272f2ccbeb169 (patch) | |
tree | f4bbd0c418a056211f5077646100bedeb5e8fc13 /Ryujinx.Graphics.Gpu/Image/Texture.cs | |
parent | d1ab9fb42c2fd9f018d4410ca619cd66294eafc9 (diff) |
Add basic error logging to the GPU
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/Texture.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/Texture.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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<byte> 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; |