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
This commit is contained in:
gdkchan
2021-01-09 20:11:31 -03:00
committed by GitHub
parent 71e2a00221
commit 8e0a421264
5 changed files with 88 additions and 117 deletions

View File

@ -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)
{