1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-28 00:22:02 +00:00

Remove buffer invalidation (#1194)

This commit is contained in:
gdkchan 2020-05-03 18:07:42 -03:00 committed by GitHub
parent b0f0bd205d
commit ea3d5fde73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,6 @@ namespace Ryujinx.Graphics.Gpu.Memory
HostBuffer = context.Renderer.CreateBuffer((int)size);
_sequenceNumbers = new int[size / MemoryManager.PageSize];
Invalidate();
}
/// <summary>
@ -152,14 +150,6 @@ namespace Ryujinx.Graphics.Gpu.Memory
_context.PhysicalMemory.Write(address, data);
}
/// <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>