Commit Graph
118 Commits
Author SHA1 Message Date
gdkchanandGitHub 796e5d14b4 Use correct shader local memory size instead of a hardcoded size (#914)
* Use correct shader local size instead of a hardcoded size

* Remove unused uniform block

* Update XML doc

* Local memory size has 23 bits on maxwell

* Generate compute QMD struct from nv open doc header

* Remove dummy arrays when shared or local memory is not used, other improvements
2020-02-02 14:25:52 +11:00
gdkchanandjduncanator b8e3909d80 Add a GetSpan method to the memory manager and use it on GPU (#877) 2020-01-13 10:27:50 +11:00
gdkchanandThog 383452f5cf Fix some shader disposal issues 2020-01-09 02:13:00 +01:00
gdkchanandThog 92703af555 Address PR feedback 2020-01-09 02:13:00 +01:00
gdkchanandThog 9bfb373bdf Remove more unused code 2020-01-09 02:13:00 +01:00
gdkchanandThog 59fdaa744b GPU resource disposal 2020-01-09 02:13:00 +01:00
gdkchanandThog 430faeb8ef Add XML documentation to Ryujinx.Graphics.Gpu.Shader 2020-01-09 02:13:00 +01:00
gdkchanandThog 654e617fe7 Some code cleanup 2020-01-09 02:13:00 +01:00
gdkchanandThog 9d7a142a48 Support texture rectangle targets (non-normalized coords) 2020-01-09 02:13:00 +01:00
gdkchanandThog f2c85c5d58 Support non-constant texture offsets on non-NVIDIA gpus 2020-01-09 02:13:00 +01:00
gdkchanandThog 3323a3a042 Use correct shared memory size (in words, not bytes) 2020-01-09 02:13:00 +01:00
gdkchanandThog 66d91cbc6c Use dispatch params shared memory size when available 2020-01-09 02:13:00 +01:00
gdkchanandThog 0d9672f3ae Use maximum shared memory size supported by hardware 2020-01-09 02:13:00 +01:00
gdkchanandThog cb171f6ebf Support shared color mask, implement more shader instructions
Support shared color masks (used by Nouveau and maybe the NVIDIA
driver).
Support draw buffers (also required by OpenGL).
Support viewport transform disable (disabled for now as it breaks some
games).
Fix instanced rendering draw being ignored for multi draw.
Fix IADD and IADD3 immediate shader encodings, that was not matching
some ops.
Implement FFMA32I shader instruction.
Implement IMAD shader instruction.
2020-01-09 02:13:00 +01:00
gdkandThog 6a98c643ca Add a pass to turn global memory access into storage access, and do all storage related transformations on IR 2020-01-09 02:13:00 +01:00
gdkandThog 65428f5842 Fix shader code comparison method 2020-01-09 02:13:00 +01:00
gdkandThog 3ca675223a Remove TranslatorConfig struct 2020-01-09 02:13:00 +01:00
gdkandThog 6e399061ce Invalidate shaders when they are modified 2020-01-09 02:13:00 +01:00