rjx-mirror/Ryujinx.Graphics.OpenGL
riperiperi a1f77a5b6a
Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790)
* 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.
2021-01-17 17:08:06 -03:00
..
Image Allow copy destination to have a different scale from source (#1711) 2020-11-20 17:14:45 -03:00
Queries End empty gl queries before returning them to the pool. (#1806) 2020-12-12 10:31:39 +11:00
BackgroundContextWorker.cs Memory Read/Write Tracking using Region Handles (#1272) 2020-10-16 17:18:35 -03:00
Buffer.cs Implement clear buffer (fast path) (#1902) 2021-01-13 08:50:54 +11:00
Constants.cs Fix transform feedback errors caused by host pause/resume and multiple uses (#1634) 2020-10-25 17:23:42 -03:00
Debugger.cs Rename DebugLevel Performance to Slowdowns (#1450) 2020-08-07 15:30:06 +02:00
EnumConversion.cs Fix incorrect GPU GL blend func values (#1612) 2020-10-13 14:45:41 +11:00
FormatInfo.cs Add basic error logging to the GPU 2020-01-09 02:13:00 +01:00
FormatTable.cs gpu: Implement missing texture formats (#1867) 2021-01-05 06:02:49 +01:00
Framebuffer.cs Fix error when dual source blend is used (#1610) 2020-10-12 21:50:41 -03:00
Handle.cs Spanify Graphics Abstraction Layer (#1226) 2020-05-23 11:46:09 +02:00
HwCapabilities.cs Add seamless cubemap flag in sampler parameters. (#1658) 2020-11-02 17:03:06 -03:00
Pipeline.cs Implement clear buffer (fast path) (#1902) 2021-01-13 08:50:54 +11:00
Program.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
Renderer.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
ResourcePool.cs Texture/Buffer Memory Management Improvements (#1408) 2020-09-10 16:44:04 -03:00
Ryujinx.Graphics.OpenGL.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00
Shader.cs Use explicit buffer and texture bindings on shaders (#1666) 2020-11-08 12:10:00 +01:00
Sync.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
VertexArray.cs Fix vertex buffer handle null check (#1638) 2020-10-26 01:40:50 +01:00
VertexBuffer.cs Initial work 2020-01-09 02:13:00 +01:00
Window.cs gui/gpu: Implement setting and toggle for Aspect Ratio (#1777) 2020-12-15 23:19:07 -03:00