diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-04-17 05:13:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 08:13:53 +0000 |
commit | d9b63353b019e1f1775370154f4f045ff14184ce (patch) | |
tree | ef4909c3da741eb9c498fcd57891c857a5cabe5a /Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs | |
parent | eabd0ec93f903fb39605a29b35db4c6290bc9c88 (diff) |
Support copy between multisample and non-multisample depth textures (#4676)1.1.721
* Support copy between multisample and non-multisample depth textures
* PR feedback
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs index 4b84333d..e93ea0c0 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs @@ -732,12 +732,7 @@ namespace Ryujinx.Graphics.Gpu.Image break; case Target.Texture2DMultisample: case Target.Texture2DMultisampleArray: - // We don't support copy between multisample and non-multisample depth-stencil textures - // because there's no way to emulate that since most GPUs don't support writing a - // custom stencil value into the texture, among several other API limitations. - - if ((rhs.Target == Target.Texture2D || rhs.Target == Target.Texture2DArray) && - !rhs.FormatInfo.Format.IsDepthOrStencil()) + if (rhs.Target == Target.Texture2D || rhs.Target == Target.Texture2DArray) { return TextureViewCompatibility.CopyOnly; } |