aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-10-31 19:00:39 -0300
committerGitHub <noreply@github.com>2023-10-31 19:00:39 -0300
commit841dd56f4ce850693aee5980cd750791624e47be (patch)
tree585a5a581e78c5c6d64244e148097b57788cb9c6 /src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs
parenta16d582a105a6f9218e5f50fafd2670c64c1244c (diff)
Implement copy dependency for depth and color textures (#4365)1.1.1068
* Implement copy dependency for depth and color textures * Revert changes added because R32 <-> D32 copies were illegal * Restore depth alias matches
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs
index 432b1085..6b92c0aa 100644
--- a/src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs
+++ b/src/Ryujinx.Graphics.Gpu/Image/TextureCache.cs
@@ -733,9 +733,7 @@ namespace Ryujinx.Graphics.Gpu.Image
{
if (overlap.IsView)
{
- overlapCompatibility = overlapCompatibility == TextureViewCompatibility.FormatAlias ?
- TextureViewCompatibility.Incompatible :
- TextureViewCompatibility.CopyOnly;
+ overlapCompatibility = TextureViewCompatibility.CopyOnly;
}
else
{
@@ -813,7 +811,7 @@ namespace Ryujinx.Graphics.Gpu.Image
Texture overlap = _textureOverlaps[index];
OverlapInfo oInfo = _overlapInfo[index];
- if (oInfo.Compatibility <= TextureViewCompatibility.LayoutIncompatible || oInfo.Compatibility == TextureViewCompatibility.FormatAlias)
+ if (oInfo.Compatibility <= TextureViewCompatibility.LayoutIncompatible)
{
if (!overlap.IsView && texture.DataOverlaps(overlap, oInfo.Compatibility))
{