diff --git a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs index d9fe02f8d..6c7c676bf 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TexturePool.cs @@ -529,6 +529,19 @@ namespace Ryujinx.Graphics.Gpu.Image } } + private static bool IsUninitializedDescriptor(in TextureDescriptor descriptor) + { + uint w = descriptor.Word0; + + return descriptor.Word1 == w + && descriptor.Word2 == w + && descriptor.Word3 == w + && descriptor.Word4 == w + && descriptor.Word5 == w + && descriptor.Word6 == w + && descriptor.Word7 == w; + } + /// /// Gets texture information from a texture descriptor. /// @@ -586,7 +599,7 @@ namespace Ryujinx.Graphics.Gpu.Image if (!FormatTable.TryGetTextureFormat(format, srgb, out FormatInfo formatInfo)) { - if (gpuVa != 0 && format != 0) + if (gpuVa != 0 && format != 0 && !IsUninitializedDescriptor(descriptor)) { Logger.Error?.Print(LogClass.Gpu, $"Invalid texture format 0x{format:X} (sRGB: {srgb})."); }