0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.Graphics.Gpu/Engine
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
..
GPFifo Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
MME Fix MacroJit SubtractWithBorrow Alu Reg Operation. (#1473) 2020-08-13 12:08:48 -03:00
Compute.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
ComputeQmd.cs Use correct shader local memory size instead of a hardcoded size (#914) 2020-02-02 14:25:52 +11:00
ConditionalRenderEnabled.cs Implement small indexed draws and other fixes to make guest Vulkan work (#1558) 2020-09-24 09:48:34 +10:00
IbStreamer.cs Implement small indexed draws and other fixes to make guest Vulkan work (#1558) 2020-09-24 09:48:34 +10:00
Inline2Memory.cs Fix compute reserved constant buffer updates (#1892) 2021-01-10 21:02:58 +01:00
MethodClear.cs Synchronize Rasterizer State before Clear (#1680) 2020-11-07 16:21:10 -03:00
MethodConditionalRendering.cs Implement small indexed draws and other fixes to make guest Vulkan work (#1558) 2020-09-24 09:48:34 +10:00
MethodCopyBuffer.cs Implement clear buffer (fast path) (#1902) 2021-01-13 08:50:54 +11:00
MethodCopyTexture.cs Allow copy destination to have a different scale from source (#1711) 2020-11-20 17:14:45 -03:00
MethodDraw.cs Implement small indexed draws and other fixes to make guest Vulkan work (#1558) 2020-09-24 09:48:34 +10:00
MethodFirmware.cs Ignore exit flag on branch delay slot (#899) 2020-01-22 02:11:43 +01:00
MethodIncrementSyncpoint.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
MethodReport.cs Remove GPU MemoryAccessor (#1423) 2020-07-25 16:39:45 +10:00
MethodResetCounter.cs Fix some spelling mistakes 2020-01-09 02:13:00 +01:00
Methods.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
MethodUniformBufferBind.cs Add XML documentation to Ryujinx.Graphics.Gpu.Engine 2020-01-09 02:13:00 +01:00
MethodUniformBufferUpdate.cs Remove GPU MemoryAccessor (#1423) 2020-07-25 16:39:45 +10:00
ShaderTexture.cs Fix image binding format (#1625) 2020-10-20 19:03:20 -03:00