Initialize GPU physical memory accessor from KProcess, to allow homebrew that never maps anything on the GPU to work
This commit is contained in:
parent
6cf9a04d98
commit
647d0962df
7 changed files with 40 additions and 61 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue