Improve BRX target detection heuristics (#1591)

This commit is contained in:
gdkchan
2020-10-03 02:43:33 -03:00
committed by GitHub
parent 86412ed30a
commit 0954e76a26
4 changed files with 39 additions and 2 deletions

View File

@ -310,6 +310,16 @@ namespace Ryujinx.Graphics.Gpu.Memory
return PteUnmapped;
}
/// <summary>
/// Checks if a given page is mapped.
/// </summary>
/// <param name="gpuVa">GPU virtual address of the page to check</param>
/// <returns>True if the page is mapped, false otherwise</returns>
public bool IsMapped(ulong gpuVa)
{
return Translate(gpuVa) != PteUnmapped;
}
/// <summary>
/// Translates a GPU virtual address to a CPU virtual address.
/// </summary>