feat(libSceJobManager): implement compute sequences and compute dispatches #3186
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3186"
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 fma-rc on 2026-10-11T00:40:49Z.
What
Follow-up to #3170, which left compute sequences and both compute dispatches throwing. This implements them:
initializewith compute sequences and a completion mask, the unified factory'sCreateCompute/DestroyCompute,DispatchComputeandDispatchComputeIndirect. Each compute sequence submits on its own AGC compute queue (0x20 plus the mask bit) and a handler thread collects completions from an equeue, so sync points and waits order compute work against CPU jobs the way the shipped module does.The behaviour was taken from the copies of
libSceJobManager.prxthat Ratchet & Clank (PPSA01474) and Hades II (PPSA36082) ship: sizes fromcalculateRequiredMemorySize, error codes, and the command stream each dispatch submits. Differences from the original are listed indocs/dev/debt/libSceJobManager.md.Rebased onto current
main: the branch now holds only the two compute commits.Tested
Arch Linux, GCC 16.2.1, on
maina8581d333with this branch. New testagc_driver_job_manager_compute(sizes, create and dispatch errors, direct and indirect dispatch running a real compute shader, ordering across sync points, dispatch limit, shutdown) and the existing JobManager guest tests:agc_driver_job_manager_computeguest_job_manager_memoryguest_job_manager_validationguest_job_manager_dispatchguest_job_manager_orderingguest_job_manager_nestedguest_job_manager_limitsguest_job_manager_priorityguest_job_manager_shutdownThe same test file built against the two shipped modules passes on both, so every assertion in it holds for the original. Windows (WinLibs GCC 15.2 UCRT): build and ctest pass, 1433 of 1433.
tools/check_conventions.py --base origin/mainpasses.Not tested: no title I have reaches this path through our library, since the titles that use compute sequences here ship the module themselves.
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-11T00:40:59Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T23:14:13Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceJobManager/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T23:57:47Z.
Thanks for reopening this. It no longer merges cleanly into current main. Could you rebase onto current main? The branch still carries the earlier #3170 commits, which are already on main, so after the rebase it should only hold the compute sequence and dispatch work. DispatchCompute is still a stub on main, so this is wanted. We'll review and run full CI on the new head.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-18T00:21:17Z.
@oneandonlydean rebased onto current
main. The branch now holds only the two compute commits; the #3170 ones are gone. While rebasing I also replacedstd::aligned_allocin the new test, which did not build with WinLibs. The JobManager tests pass on an RTX 5080, RADV and lavapipe, and the Windows build plus ctest pass. The Tested section has the table.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T00:21:52Z.
Progress report (
a8581d3→394ac01)📈 System libraries: 89.73% (+0.08%, +4 implemented functions)
✅ 4 implemented
ComputeHandlerEntry_ZN3sce3Job10JobManager10initializeEPvmjjPKNS1_12ConfigParamsE_ZN3sce3Job10JobManager10initializeEPvmjjjmPKNS1_12ConfigParamsE_ZN3sce3Job10JobManager27calculateRequiredMemorySizeEPKNS1_21MemorySizeQueryParamsE