aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-09-11 17:54:18 -0300
committerGitHub <noreply@github.com>2021-09-11 22:54:18 +0200
commitac4ec1a0151fd958d7ec58146169763b446836fe (patch)
tree35ee4908dba22e9552bd70b4b251a1f00ef9b1bc /Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs
parent016fc64b3df8e039e62f3022139244061a00ec30 (diff)
Account for negative strides on DMA copy (#2623)
* Account for negative strides on DMA copy * Should account for non-zero Y
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs b/Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs
index 81c5ad77..75b8e220 100644
--- a/Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs
@@ -110,10 +110,8 @@ namespace Ryujinx.Graphics.Gpu.Engine.InlineToMemory
ulong dstGpuVa = ((ulong)state.OffsetOutUpperValue << 32) | state.OffsetOut;
- ulong dstBaseAddress = _channel.MemoryManager.Translate(dstGpuVa);
-
// Trigger read tracking, to flush any managed resources in the destination region.
- _channel.MemoryManager.Physical.GetSpan(dstBaseAddress, _size, true);
+ _channel.MemoryManager.GetSpan(dstGpuVa, _size, true);
_dstGpuVa = dstGpuVa;
_dstX = state.SetDstOriginBytesXV;