From 8e0a421264df4eadbe35e2e63fcb81a02ae04ba4 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 9 Jan 2021 20:11:31 -0300 Subject: Fix remap when handle is 0 (#1882) * Nvservices cleanup and attempt to fix remap * Unmap if remap handle is 0 * Remove mapped pool add from Remap --- Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Memory') diff --git a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs index b1b1a1a8..cf49fd93 100644 --- a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs +++ b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs @@ -129,11 +129,11 @@ namespace Ryujinx.Graphics.Gpu.Memory } /// - /// Frees memory that was previously allocated by a map or reserved. + /// Unmaps a given range of pages at the specified GPU virtual memory region. /// - /// GPU virtual address to free - /// Size in bytes of the region being freed - public void Free(ulong va, ulong size) + /// GPU virtual address to unmap + /// Size in bytes of the region being unmapped + public void Unmap(ulong va, ulong size) { lock (_pageTable) { -- cgit v1.2.3