Ryujinx/Ryujinx.HLE/HOS
Thog 644de99e86
Implement GPU syncpoints (#980)
* Implement GPU syncpoints

This adds support for GPU syncpoints on the GPU backend & nvservices.

Everything that was implemented here is based on my researches,
hardware testing of the GM20B and reversing of nvservices (8.1.0).

Thanks to @fincs for the informations about some behaviours of the pusher
and for the initial informations about syncpoints.

* syncpoint: address gdkchan's comments

* Add some missing logic to handle SubmitGpfifo correctly

* Handle the NV event API correctly

* evnt => hostEvent

* Finish addressing gdkchan's comments

* nvservices: write the output buffer even when an error is returned

* dma pusher: Implemnet prefetch barrier

lso fix when the commands should be prefetch.

* Partially fix prefetch barrier

* Add a missing syncpoint check in QueryEvent of NvHostSyncPt

* Address Ac_K's comments and fix GetSyncpoint for ChannelResourcePolicy == Channel

* fix SyncptWait & SyncptWaitEx cmds logic

* Address ripinperi's comments

* Address gdkchan's comments

* Move user event management to the control channel

* Fix mm implementation, nvdec works again

* Address ripinperi's comments

* Address gdkchan's comments

* Implement nvhost-ctrl close accurately + make nvservices dispose channels when stopping the emulator

* Fix typo in MultiMediaOperationType
2020-04-19 11:25:57 +10:00
..
Applets Revert SwKbd Applet ReadStruct and fix IApplet's ReadStruct to catch (#1087) 2020-04-03 17:53:06 +11:00
Diagnostics/Demangler Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Font Reduce requirements for running homebrew (#1053) 2020-03-30 08:23:05 +11:00
Ipc Discard higher 32-bits of IPC message magic and command number (#911) 2020-01-30 21:43:47 +01:00
Kernel Use a Jump Table for direct and indirect calls/jumps, removing transitions to managed (#975) 2020-03-12 14:20:55 +11:00
Services Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
SystemState Implement GetRegionCode and add the RegionCode to settings (#999) 2020-03-20 09:37:55 +11:00
Homebrew.cs .NET Core 3.0 is here! (#784) 2019-10-31 19:09:03 +01:00
HomebrewRomFsStream.cs Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Horizon.cs Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
IdDictionary.cs Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
ProgramLoader.cs Implement update loader and log loaded application info (#1023) 2020-04-12 23:02:37 +02:00
ResultCode.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ServiceCtx.cs .NET Core 3.0 is here! (#784) 2019-10-31 19:09:03 +01:00