From d2bb458b51bbcbc097f8f53ac2a3b8b15a723a45 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 17 Nov 2018 02:01:31 -0200 Subject: Improved GPU command lists decoding (#499) * Better implementation of the DMA pusher, misc fixes * Remove some debug code * Correct RGBX8 format * Add support for linked Texture Sampler Control * Attempt to fix upside down screen issue --- Ryujinx.Graphics/GpuResourceManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics/GpuResourceManager.cs') diff --git a/Ryujinx.Graphics/GpuResourceManager.cs b/Ryujinx.Graphics/GpuResourceManager.cs index 71390a83..c3d697c5 100644 --- a/Ryujinx.Graphics/GpuResourceManager.cs +++ b/Ryujinx.Graphics/GpuResourceManager.cs @@ -117,7 +117,7 @@ namespace Ryujinx.Graphics return false; } - private bool MemoryRegionModified(NvGpuVmm Vmm, long Position, long Size, NvGpuBufferType Type) + public bool MemoryRegionModified(NvGpuVmm Vmm, long Position, long Size, NvGpuBufferType Type) { HashSet Uploaded = UploadedKeys[(int)Type]; @@ -136,5 +136,10 @@ namespace Ryujinx.Graphics UploadedKeys[Index].Clear(); } } + + public void ClearPbCache(NvGpuBufferType Type) + { + UploadedKeys[(int)Type].Clear(); + } } } -- cgit v1.2.3