From 647d0962df5b54334af965b88f784409afbf6223 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 25 Dec 2019 20:28:17 -0300 Subject: Initialize GPU physical memory accessor from KProcess, to allow homebrew that never maps anything on the GPU to work --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index e72b619c..11855592 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -212,14 +212,6 @@ namespace Ryujinx.Graphics.Gpu.Image return; } - ulong pageSize = (uint)_context.PhysicalMemory.GetPageSize(); - - ulong pageMask = pageSize - 1; - - ulong rangeAddress = Address & ~pageMask; - - ulong rangeSize = (EndAddress - Address + pageMask) & ~pageMask; - Span data = _context.PhysicalMemory.Read(Address, Size); if (_info.IsLinear) -- cgit v1.2.3