Преглед на файлове

Fast D32S8 2D depth texture copy (#6636)

gdkchan преди 2 години
родител
ревизия
80201466ae
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

+ 4 - 0
src/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

@@ -247,6 +247,10 @@ namespace Ryujinx.Graphics.Gpu.Image
                 {
                     return TextureMatchQuality.FormatAlias;
                 }
+                else if (lhs.FormatInfo.Format == Format.D32FloatS8Uint && rhs.FormatInfo.Format == Format.R32G32Float)
+                {
+                    return TextureMatchQuality.FormatAlias;
+                }
             }
 
             return lhs.FormatInfo.Format == rhs.FormatInfo.Format ? TextureMatchQuality.Perfect : TextureMatchQuality.NoMatch;