feat(libSceAgc): implement ACB flips and rendering waits #1585
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1585"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T13:43:39Z.
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
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T13:58:29Z.
Progress report (
033a463→60f44b7)📈 System libraries: 84.84% (+0.07%, +2 implemented functions)
✅ 2 implemented
sceAgcAcbSetFlipsceAgcAcbWaitUntilSafeForRenderingImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T18:40:07Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/Flip.cppL82Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T20:07:58Z.
On the overlap with #1745: the conflict is only in
tests/Flip.cpp. Both PRs give the testOutputaCaptureRenderingWaitoverride and anIRenderingWaitclass. The code changes don't overlap.If #1745 lands first, I'll rebase this PR onto its
RenderingGate, which is open by default. I'll add only what the compute-queue case checks: the captured buffer index (waited == 3). If this one lands first, #1745 can do the same in reverse.Written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:54:53Z.
Closing: no title is shown to reach
sceAgcAcbSetFliporsceAgcAcbWaitUntilSafeForRenderingon main (same as #1052). Please reopen with the title ID and the log line if you find one.Pull request closed