mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 15:36:39 +00:00
a1f77a5b6a
* Initial implementation of buffer flush (VERY WIP) * Host shaders need to be rebuilt for the SSBO write flag. * New approach with reserved regions and gl sync * Fix a ton of buffer issues. * Remove unused buffer unmapped behaviour * Revert "Remove unused buffer unmapped behaviour" This reverts commit f1700e52fb8760180ac5e0987a07d409d1e70ece. * Delete modified ranges on unmap Fixes potential crashes in Super Smash Bros, where a previously modified range could lie on either side of an unmap. * Cache some more delegates. * Dispose Sync on Close * Also create host sync for GPFifo syncpoint increment. * Copy buffer optimization, add docs * Fix race condition with OpenGL Sync * Enable read tracking on CommandBuffer, insert syncpoint on WaitForIdle * Performance: Only flush individual pages of SSBO at a time This avoids flushing large amounts of data when only a small amount is actually used. * Signal Modified rather than flushing after clear * Fix some docs and code style. * Introduce a new test for tracking memory protection. Sucessfully demonstrates that the bug causing write protection to be cleared by a read action has been fixed. (these tests fail on master) * Address Comments * Add host sync for SetReference This ensures that any indirect draws will correctly flush any related buffer data written before them. Fixes some flashing and misplaced world geometry in MH rise. * Make PageAlign static * Re-enable read tracking, for reads.
24 lines
No EOL
507 B
C#
24 lines
No EOL
507 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public struct BufferDescriptor
|
|
{
|
|
public readonly int Binding;
|
|
public readonly int Slot;
|
|
public BufferUsageFlags Flags;
|
|
|
|
public BufferDescriptor(int binding, int slot)
|
|
{
|
|
Binding = binding;
|
|
Slot = slot;
|
|
|
|
Flags = BufferUsageFlags.None;
|
|
}
|
|
|
|
public BufferDescriptor SetFlag(BufferUsageFlags flag)
|
|
{
|
|
Flags |= flag;
|
|
|
|
return this;
|
|
}
|
|
}
|
|
} |