aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
index 6f9ee6a4..a9a8fbac 100644
--- a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
+++ b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs
@@ -241,28 +241,6 @@ namespace Ryujinx.Graphics.Gpu.Memory
}
/// <summary>
- /// Gets the number of mapped or reserved pages on a given region.
- /// </summary>
- /// <param name="gpuVa">Start GPU virtual address of the region</param>
- /// <param name="maxSize">Maximum size of the data</param>
- /// <returns>Mapped size in bytes of the specified region</returns>
- internal ulong GetSubSize(ulong gpuVa, ulong maxSize)
- {
- ulong size = 0;
-
- while (GetPte(gpuVa + size) != PteUnmapped)
- {
- size += PageSize;
- if (size >= maxSize)
- {
- return maxSize;
- }
- }
-
- return size;
- }
-
- /// <summary>
/// Translates a GPU virtual address to a CPU virtual address.
/// </summary>
/// <param name="gpuVa">GPU virtual address to be translated</param>
@@ -280,25 +258,6 @@ namespace Ryujinx.Graphics.Gpu.Memory
}
/// <summary>
- /// Checks if a given memory region is currently unmapped.
- /// </summary>
- /// <param name="gpuVa">Start GPU virtual address of the region</param>
- /// <param name="size">Size in bytes of the region</param>
- /// <returns>True if the region is unmapped (free), false otherwise</returns>
- public bool IsRegionFree(ulong gpuVa, ulong size)
- {
- for (ulong offset = 0; offset < size; offset += PageSize)
- {
- if (IsPageInUse(gpuVa + offset))
- {
- return false;
- }
- }
-
- return true;
- }
-
- /// <summary>
/// Checks if a given memory page is mapped or reserved.
/// </summary>
/// <param name="gpuVa">GPU virtual address of the page</param>