From ac4ec1a0151fd958d7ec58146169763b446836fe Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 11 Sep 2021 17:54:18 -0300 Subject: Account for negative strides on DMA copy (#2623) * Account for negative strides on DMA copy * Should account for non-zero Y --- Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs') 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; -- cgit v1.2.3