diff options
author | gdkchan <gab.dark.100@gmail.com> | 2024-01-22 17:14:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 17:14:46 -0300 |
commit | f241f88558b3fe90d76fc21123bd06b9e4c3d2da (patch) | |
tree | 7135051e6a5dc2227d87724777cb63f76453db58 /src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs | |
parent | 90455a05e6d7fe4305c997f20f76d2411197a182 (diff) |
Add a separate device memory manager (#6153)1.1.1120
* Add a separate device memory manager
* Still need this
* Device writes are always tracked
* Device writes are always tracked (2)
* Rename more instances of gmm to mm
Diffstat (limited to 'src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs b/src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs index 8a9acd91..83f00f34 100644 --- a/src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs +++ b/src/Ryujinx.Graphics.Vic/Image/SurfaceReader.cs @@ -454,7 +454,7 @@ namespace Ryujinx.Graphics.Vic.Image int srcStride = GetPitch(width, bytesPerPixel); int inSize = srcStride * height; - ReadOnlySpan<byte> src = rm.Gmm.GetSpan(ExtendOffset(offset), inSize); + ReadOnlySpan<byte> src = rm.MemoryManager.GetSpan(ExtendOffset(offset), inSize); int outSize = dstStride * height; int bufferIndex = rm.BufferPool.RentMinimum(outSize, out byte[] buffer); @@ -481,7 +481,7 @@ namespace Ryujinx.Graphics.Vic.Image { int inSize = GetBlockLinearSize(width, height, bytesPerPixel, gobBlocksInY); - ReadOnlySpan<byte> src = rm.Gmm.GetSpan(ExtendOffset(offset), inSize); + ReadOnlySpan<byte> src = rm.MemoryManager.GetSpan(ExtendOffset(offset), inSize); int outSize = dstStride * height; int bufferIndex = rm.BufferPool.RentMinimum(outSize, out byte[] buffer); |