rjx-mirror/Ryujinx.Graphics.Shader
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
..
CodeGen Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
Decoders Fix shader LOP3 predicate write condition (#1910) 2021-01-14 01:07:50 +01:00
Instructions Fix shader LOP3 predicate write condition (#1910) 2021-01-14 01:07:50 +01:00
IntermediateRepresentation Simplify logic for bindless texture handling (#1667) 2020-11-09 19:35:04 -03:00
StructuredIr Simplify logic for bindless texture handling (#1667) 2020-11-09 19:35:04 -03:00
Translation Implement shader CC mode for ISCADD, X mode for ISETP and fix STL/STS/STG with RZ (#1901) 2021-01-13 08:52:13 +11:00
BufferDescriptor.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
BufferUsageFlags.cs Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
IGpuAccessor.cs Implement Force Early Z Register (#1755) 2020-12-02 00:13:27 +01:00
InputTopology.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
OutputTopology.cs Support texture rectangle targets (non-normalized coords) 2020-01-09 02:13:00 +01:00
Ryujinx.Graphics.Shader.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00
SamplerType.cs Avoid sampler conflicts on bindless samplers with the same name (#1642) 2020-10-28 21:20:43 +01:00
ShaderProgram.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
ShaderProgramInfo.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
ShaderStage.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
TextureDescriptor.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
TextureFormat.cs Implement SULD shader instruction (#1117) 2020-04-22 09:35:28 +10:00
TextureUsageFlags.cs Support res scale on images, correctly blacklist for SUST, move logic out of backend. (#1657) 2020-11-02 16:53:23 -03:00