diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-25 20:28:17 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 647d0962df5b54334af965b88f784409afbf6223 (patch) | |
| tree | 3cd884099188341f869919c8235deecdea96be9b /Ryujinx.Graphics.Gpu/Image | |
| parent | 6cf9a04d981a9e966cccb0dc90182e29aac7e270 (diff) | |
Initialize GPU physical memory accessor from KProcess, to allow homebrew that never maps anything on the GPU to work
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/Texture.cs | 8 |
1 files changed, 0 insertions, 8 deletions
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<byte> data = _context.PhysicalMemory.Read(Address, Size); if (_info.IsLinear) |
