perf(agc): pipeline queue-0 draw commits behind the packet worker #6203
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6203"
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 ivica00 on 2026-10-15T02:52:58Z.
What
Queue 0 can decode and capture a draw on the packet worker while a committer thread records it. Work the committer has not reached is tracked by the guest ranges it will write; a later packet that reads or writes them, or one the pipeline cannot order, drains it.
Off unless
APS5_PIPELINED_DRAWSis set. Labels, the end of a queue-0 submission, and buffer fills stay ordered as commit items (APS5_PIPELINE_DRAIN_LABELS,APS5_PIPELINE_DRAIN_SUBMISSIONS,APS5_PIPELINE_DRAIN_FILLSdrain them instead). A null storage image in a draw's written set writes nothing, and a pipelined release withINT_SEL3 raises no interrupt.Rebased onto current
main. UpstreamShaderMemoryalready moves, so this does not add a separate move constructor. Descriptor-set recycling forwards the update-after-bind and variable-count argumentsAllocatetakes here.Tested
The pipeline behavior is what the fork runs. Hello Neighbor 2 title and gameplay were exercised on this machine with pipelined draws enabled. This rebase onto current
mainwas not run as its own title session.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T03:31:40Z.
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/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Memory/DrawWriteRanges.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/SlimMutex.hppcore/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelinedDma.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Memory/DrawWriteRanges.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/SlimMutex.hppcore/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelinedDma.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Memory/DrawWriteRanges.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/SlimMutex.hppcore/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelinedDma.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Memory/DrawWriteRanges.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/SlimMutex.hppcore/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelinedDma.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Memory/DrawWriteRanges.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/SlimMutex.hppcore/libs/prx/libSceAgcDriver/tests/execution/DrawWriteRanges.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelinedDma.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T09:23:30Z.
Closing as a duplicate of #1201:
DrawPipeline.cpp,DrawPipeline.hppandDrawWriteRanges.hpphere are byte-identical to #1201's head, and the commits are its authors' (Michon, gjonn, TheAggie). #1201 is still open and has an active review thread (ordering fixes from @Raghav314 and @eliyarson, A/B data on several titles), so a second copy of the same change would only split that discussion and conflict with it.Also: this PR conflicts with
main, declaresDepends on: nonewhile sitting on top of #1201, #1202, #1747, #1896 and #5867, and the body says the rebase was not run on any title.If you have a fix or measurement for the pipelined path, please post it on #1201 (or as a branch there), and feel free to reopen with a distinct change.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T09:40:44Z.
The fixes from this review (BufferPool, stage lifetimes, ReportFailure, CMASK, fill drains, pipelined test variants) are now on #1201, rebased on main without #1191: https://github.com/boykopovar/AnyPS5/pull/1201#issuecomment-6189118381. #6208 can build on #1201.
Pull request closed