aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-03-23 17:09:32 -0300
committerGitHub <noreply@github.com>2022-03-23 17:09:32 -0300
commit1402d8391d84f912110104e3e6c1a50a8c000d59 (patch)
tree20c22eb021a92d0256c45ba676d05a7504460bfa /Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs
parente3b36db71c62a34a26b30683dd5ad5410c97cc9c (diff)
Support NVDEC H264 interlaced video decoding and VIC deinterlacing (#3225)1.1.84
* Support NVDEC H264 interlaced video decoding and VIC deinterlacing * Remove unused code
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs b/Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs
index bfd3c04f..57590fb3 100644
--- a/Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs
+++ b/Ryujinx.Graphics.Gpu/Memory/PhysicalMemory.cs
@@ -341,6 +341,16 @@ namespace Ryujinx.Graphics.Gpu.Memory
}
/// <summary>
+ /// Checks if the page at a given address is mapped on CPU memory.
+ /// </summary>
+ /// <param name="address">CPU virtual address of the page to check</param>
+ /// <returns>True if mapped, false otherwise</returns>
+ public bool IsMapped(ulong address)
+ {
+ return _cpuMemory.IsMapped(address);
+ }
+
+ /// <summary>
/// Release our reference to the CPU memory manager.
/// </summary>
public void Dispose()