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.Shader/CodeGen/Glsl
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
..
HelperFunctions Implement Zero-Configuration Resolution Scaling (#1365) 2020-07-07 04:41:07 +02:00
Instructions Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790) 2021-01-17 17:08:06 -03:00
CodeGenContext.cs Simplify logic for bindless texture handling (#1667) 2020-11-09 19:35:04 -03:00
Declarations.cs Implement Force Early Z Register (#1755) 2020-12-02 00:13:27 +01:00
DefaultNames.cs Implement CAL and RET shader instructions (#1618) 2020-10-25 17:00:44 -03:00
GlslGenerator.cs Implement CAL and RET shader instructions (#1618) 2020-10-25 17:00:44 -03:00
GlslProgram.cs Initial support for image stores, support texture sample on compute 2020-01-09 02:13:00 +01:00
NumberFormatter.cs Support single precision contants for double precision operations (#1673) 2020-11-06 18:54:13 +01:00
OperandManager.cs Simplify logic for bindless texture handling (#1667) 2020-11-09 19:35:04 -03:00
TypeConversion.cs Initial work 2020-01-09 02:13:00 +01:00
Varying.cs Initial transform feedback support (#1370) 2020-07-15 13:01:10 +10:00