diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-05-03 18:07:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-03 23:07:42 +0200 |
| commit | ea3d5fde7329e5fede58e216f8c1dc045b504029 (patch) | |
| tree | 792b7691bf5e44225fcf030503a2e7c5befb86c2 | |
| parent | b0f0bd205dc1664aa18cb2fa61eeac929e779d36 (diff) | |
Remove buffer invalidation (#1194)
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Memory/Buffer.cs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/Buffer.cs b/Ryujinx.Graphics.Gpu/Memory/Buffer.cs index a0339cce..e4bc161f 100644 --- a/Ryujinx.Graphics.Gpu/Memory/Buffer.cs +++ b/Ryujinx.Graphics.Gpu/Memory/Buffer.cs @@ -47,8 +47,6 @@ namespace Ryujinx.Graphics.Gpu.Memory HostBuffer = context.Renderer.CreateBuffer((int)size); _sequenceNumbers = new int[size / MemoryManager.PageSize]; - - Invalidate(); } /// <summary> @@ -153,14 +151,6 @@ namespace Ryujinx.Graphics.Gpu.Memory } /// <summary> - /// Invalidates all the buffer data, causing it to be read from guest memory. - /// </summary> - public void Invalidate() - { - HostBuffer.SetData(0, _context.PhysicalMemory.GetSpan(Address, Size)); - } - - /// <summary> /// Disposes the host buffer. /// </summary> public void Dispose() |
