aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-01-09 20:11:31 -0300
committerGitHub <noreply@github.com>2021-01-10 10:11:31 +1100
commit8e0a421264df4eadbe35e2e63fcb81a02ae04ba4 (patch)
treef566ba564c797d9e82f2f645bde65de51581d47c /Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
parent71e2a002214a61d869e8f2848c7257c787b9b0b9 (diff)
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
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs8
1 files changed, 4 insertions, 4 deletions
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
}
/// <summary>
- /// Frees memory that was previously allocated by a map or reserved.
+ /// Unmaps a given range of pages at the specified GPU virtual memory region.
/// </summary>
- /// <param name="va">GPU virtual address to free</param>
- /// <param name="size">Size in bytes of the region being freed</param>
- public void Free(ulong va, ulong size)
+ /// <param name="va">GPU virtual address to unmap</param>
+ /// <param name="size">Size in bytes of the region being unmapped</param>
+ public void Unmap(ulong va, ulong size)
{
lock (_pageTable)
{