feat(libSceAjmi): submit packed batches through native AJM #21535
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21535"
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 Mcm190 on 2026-11-16T11:13:36Z.
What
sceAjmiBatchStartBuffer currently throws for every call, even though the corresponding native AJM implementation can parse and execute supported packed batches. This change gives the export its six-argument native signature and forwards submission to libSceAjm.native. The returned batch handle belongs to the same backend used by native wait and cancel.
The firmware 13.42 symbol-table report in #15495 identifies sceAjmiBatchStartBuffer (9zA4YMlkR9M) as sharing an entry address with sceAjmBatchStartBuffer in libSceAjmi.sprx, SHA-256 ff0dc985c1f7a6b25a766904e3a535b55e44d0d4b8872329d2bd6c019491df0b. The module investigation at https://github.com/boykopovar/AnyPS5/pull/10563#issuecomment-6412138282 also records the CELT and SILK frontends calling this submission export before waiting; those PC runs stubbed AJM and do not establish its driver behavior or a complete prototype. The adapter inherits the existing native signature and behavior.
Jobs execute synchronously. Priority and inaccessible non-null batch/output memory are not generally validated by packed submission. Unsupported chunks and codec operations retain native exceptions; codec 23 accepts stream-only run flags. These limits are recorded in the debt fragment. The tests initialize the existing PCM backend and submit hand-built packed run jobs with known sample values; they establish host adapter execution and memory bounds, not console behavior or encoder compatibility.
The branch is based on main and builds independently of #21529, #21533 and #21182. It adds a separate export. Their common AJMI link/fixture and header areas overlap, and #21529/#21533 change the same debt entry, so the later merges need CMake/header and debt-fragment reconciliation.
This adds one implemented callable export: libSceAjmi 6/26 to 7/26 on this branch. Together with #21529 and #21533, libSceAjmi would reach 15/26. No title execution or startup improvement is claimed.
Tested
Fedora 45, AMD Ryzen 7 5800X, GCC 16.2.1, Release, bundled dependencies.
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 PrivacyOnion on 2026-11-16T11:15:48Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
a4c9a53a17:tools/check_conventions.pypassed;git diff --checkclean.guest_ajmi_submission_testsbuilt cleanly.guest_ajmi_submission_execute_unpatched,guest_ajmi_submission_errors_unpatched,guest_ajmi_submission_unsupported_unpatched,guest_ajmi_submission_execute_nid,guest_ajmi_submission_errors_nid,guest_ajmi_submission_unsupported_nid):core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Pull request closed