diff options
| author | Thog <me@thog.eu> | 2020-01-12 03:14:27 +0100 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2020-01-12 03:14:27 +0100 |
| commit | 29e8576b0d056a9c3a32b93bf47cafbb073e9f9c (patch) | |
| tree | 5c2d4e612e456977c2ec7b7647c927c94947cf74 /Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs | |
| parent | e485ee049d8d9418f3bdceed8d3342cc09977f50 (diff) | |
MapBufferEx: take page size into account (#873)
Fix #744
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs index 2fc315c3..ffca6f33 100644 --- a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs +++ b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs @@ -66,12 +66,13 @@ namespace Ryujinx.Graphics.Gpu.Memory /// </summary> /// <param name="pa">CPU virtual address to map into</param> /// <param name="size">Size in bytes of the mapping</param> + /// <param name="alignment">Required alignment of the GPU virtual address in bytes</param> /// <returns>GPU virtual address where the range was mapped, or an all ones mask in case of failure</returns> - public ulong Map(ulong pa, ulong size) + public ulong MapAllocate(ulong pa, ulong size, ulong alignment) { lock (_pageTable) { - ulong va = GetFreePosition(size); + ulong va = GetFreePosition(size, alignment); if (va != PteUnmapped) { |
