GPU: Difference between revisions
Remove command lists, since we now have a better, more complete page for the commands, also change the names to use official names instead the ones from nouveau. |
mNo edit summary |
||
Line 126: | Line 126: | ||
The above commands are added using the [[#Submission_mode|increasing mode]], since all those 4 registers are sequential. | The above commands are added using the [[#Submission_mode|increasing mode]], since all those 4 registers are sequential. | ||
Official games | Official games sets Operation to 0 (Release), bit 4 to 1, bits 15-12 (Unit) to 0xF, and bit 28 to 1 (OneWord). The ReportSemaphorePayload value is then written by the GPU to the address pointed to by ReportSemaphoreOffset. | ||
On the CPU side, the game code should wait until the value at the address pointed to by ReportSemaphoreOffset is >= to the last written value. Official code waits for this condition to be true on a loop, and won't send any further commands before that. | On the CPU side, the game code should wait until the value at the address pointed to by ReportSemaphoreOffset is >= to the last written value. Official code waits for this condition to be true on a loop, and won't send any further commands before that. | ||