Repository navigation
feat(libSceAgc): implement ACB flips and rendering waits - #1585
Closed
EdouardSence wants to merge 1 commit into
Closed
EdouardSence wants to merge 1 commit into
EdouardSence wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
On the overlap with #1745: the conflict is only in If #1745 lands first, I'll rebase this PR onto its Written by Claude (AI assistant) on a contributor's machine. |
Collaborator
|
Closing: no title is shown to reach |
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements
sceAgcAcbSetFlipandsceAgcAcbWaitUntilSafeForRendering. They write the same packets as their DCB counterparts,sceAgcDcbSetFlipandsceAgcDcbWaitUntilSafeForRendering. Both are the driver's flip (NOP 0x17) and rendering wait (NOP 0x06) packets.The signatures match the existing declarations and SharpProspero:
(buffer, videoOutHandle, displayBufferIndex, flipMode, flipArg)and(buffer, videoOutHandle, displayBufferIndex).Driver change:
Pm4.cpprejected both packets outside queue 0 ("graphics packet in compute queue"). They are now accepted on compute queues. Everything they need runs through the sameSubmitpath for every queue:waitForFlipRoomandreserveOutputsat submit time.PacketExecution.cpp.Library progress: +2.
Tested
Linux (CachyOS, GCC), RX 9070 XT:
agc_driver_flip: the old check expected a flip on queue 0x20 to throw. It is replaced by a positive case: a rendering wait followed by a flip, submitted withsceAgcDriverSubmitAcb(0x20, ...). The test checks that the output captured the wait for the right buffer and presented the flip. The test output now implementsCaptureRenderingWait.agc_commands: the ACB packets match the expected words and the DCB flip byte for byte.ctest: 458/458.tools/check_conventions.pypasses.Not tested in a title. Astro Bot (PPSA21567), the only title I have, does not import either function. I checked its import NIDs.
The order between a compute-queue flip and graphics work submitted on other queues is left to the title's own synchronization, as for any cross-queue dependency.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code