feat(prx): declare the missing Sdma and VideoOut exports #13994
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13994"
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 juanpimg on 2026-10-31T14:37:26Z.
What
Declares 11 PS5 3.20 system exports that AnyPS5 does not provide, across 2 libraries:
libSceAgcDriver(10 SDMA entry points) andlibSceVideoOut(1).AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker.
Every declaration calls
NotImplemented_nid_no_patchfirst; none of them implements the function. All 11 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. The 10sceAgcSdma*names are the driver's SDMA entry points; the siblinglibSceSdmaexports the same operations under differentsceSdma*NIDs, but the driver-level prototypes, handle layout and behavior are unknown.The list is the intersection of the export table of each console library (function symbols only), the pinned aerolib names and the functions not yet defined anywhere in the repo. Each name/NID pair was verified with
tools/nid_names.py, andtools/pr_overlap.pyreports no shared export with any of the 1,658 open pull requests.tools/progress.pyreports system libraries changing from 9921/37146 (26.71%) to 9921/37157 (26.70%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --target libSceAgcDriver libSceVideoOut: builds and links cleanly.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.git diff --check: clean.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 MarcZX10 on 2026-10-31T14:48:58Z.
Review: APPROVED
Reviewed — looks good
The 12 declarations are throwing placeholders, their names map to the listed NIDs, and the exact diff passes conventions and patch checks.
What I ran
Reviewed head
7f5c4abf7a7039b20efb9e414e8735469dd9560dagainst base73f4f7e06e4f210a8c6570e335fd654dc0a86134; no local build or merge-preview was run. Environment: Debian Linux 6.1 x86_64, Python 3.11.2.I also compared all 12 name/NID pairs with the pinned
aerolib.csvsource. The author reports a Linux GCC 16.2.1 build and link; that build was not run by me. The no-build precheck's diff, conventions/template, and dependency checks passed; its optional ABI and test-quality helpers were absent from the fetched PR tree.Results
NotImplemented_nid_no_patch; the PR makes no implementation-behavior claim.Unedited local check output
Unedited hosted check summary
Sources
Not verified
I did not build locally or run titles. The hosted Windows job was still pending at the last refresh; the author's reported Linux build is not an independent run.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T15:04:12Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Two current contribution/integration blockers remain: ten new AGC exports lack reachable header declarations, and
sceSaveDataMount2duplicates an implementation in open PR #8285.What I ran
Rechecked head
7f5c4abf7a7039b20efb9e414e8735469dd9560dagainst base73f4f7e06e4f210a8c6570e335fd654dc0a86134; the current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No project build or C++ tests were run.Results
sceAgcSdma*definitions are absent from the reachableAgcDriver.hpp.sceSaveDataMount2;libSceSaveData/CMakeLists.txtincludes the nativeSaveDataLibrary.cmakeand adds this PR'sInventoryExports.cppto the same library target. Both definitions would be linked intolibSceSaveData.Unedited convention-check output
Findings
Blocking
Export.cppadds tenAPS5_VABI sceAgcSdma*exports, but none is declared in the reachable publicAgcDriver.hpp.CONTRIBUTING.mdrequires exactly one reachable header declaration for every exportedAPS5_VABIfunction. Add one declaration for each new name there; the no-argument placeholders may remain if their ABI is explicitly unknown.#8285 is open at head
c03058cb2ac759b6f1cccfa9535b3f7ac53c9a31and adds a typedsceSaveDataMount2implementation inlibSceSaveData.native/Export.cpp. The baselibSceSaveData/CMakeLists.txtincludeslibSceSaveData.native/SaveDataLibrary.cmakeand then adds this PR'slibSceSaveData/InventoryExports.cppto the same target. If both PRs land unchanged, the target will contain two C-linkage definitions ofsceSaveDataMount2. Please coordinate with #8285 and keep one canonical definition; update this PR's overlap claim accordingly.Non-blocking
None identified.
Sources
Not verified
I did not build the combined #8285 + #13994 target or run CTest. The duplicate-definition finding follows from both source definitions being compiled into the same library target; no combined build was run.
To get this to a good state
Add the ten declarations to the reachable AGC header and coordinate with #8285 so only one
sceSaveDataMount2definition is compiled. I’ll rerun the same checks on the updated head.