feat(prx): declare the missing libSceAgcVsh exports #11971

Closed
juanpimg wants to merge 3 commits from upstream-pr/11971 into main
juanpimg commented 2026-10-27 14:10:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-27T14:10:43Z.


What

Declares 46 PS5 3.20 system exports that AnyPS5 does not provide, in libSceAgcVsh. The 45 libSceGnmDriverForNeoMode names this branch previously declared are now implemented by open PR #9432 in libSceGnmDriver, so they were removed here to avoid exporting the same NIDs twice (the project's duplicate-export check fails such a collision, and on Linux a throwing stub could shadow the real implementation depending on load order).

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_patch and returns 0; none of them implements the function. All 46 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.

The list is the intersection of the export table of the console's library (function symbols only) and the pinned aerolib names, limited to exports not provided by this tree: 44 of the AgcVsh names are already implemented by libSceAgc on main, so those declarations exist only so titles importing libSceAgcVsh resolve, and are not claimed as new functionality. Every name recomputes to its NID with tools/nid_names.py. It was computed with tools/export_gap.py (#8588), which recognises what a module already provides through an APS5_VABI declaration, a _nid_postfix name, an APS5_EXPORT binding or a macro, and which reports the missing exports whose name the module calls itself.

libSceAgcVsh declares its exports as <base>_nid_no_patch bound with APS5_EXPORT, following the file's own 150-entry precedent: the plain sceAgc* names are defined by sibling libSceAgc, so plain definitions would collide at link time.

libScePlayReady4 was measured as part of this batch and left out: all of its inventory names are already provided by libScePlayReady and libScePlayReady2, so declaring them would export the same NID twice.

tools/pr_overlap.py reports no shared export with any open pull request.

tools/progress.py reports system libraries changing from 6568/13463 (48.79%) to 6568/13509 (48.62%). These are pending declarations, so the implemented count is unchanged.

Tested

CachyOS Linux, kernel 7.2.9-2-cachyos, Python 3.14.8, Release build.

  • New test entry is not needed: the declarations are stubs and the project does not add tests that only check that a symbol is exported.
  • python3 tools/check_conventions.py --base origin/main: all conventions checks passed.
  • python3 tools/pr_overlap.py --branch feat/prx-declare-batch2: no shared export with any open pull request.
  • Every declared symbol's NID was checked with the project's own tools/nid_names.py against the inventory, every symbol was checked against origin/main (including _nid_postfix bases and macro-declared exports) so that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls.
  • No title was run: the contributor has no PS5 and no game dumps.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5035322975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11971). Originally posted by [juanpimg](https://github.com/juanpimg) on 2026-10-27T14:10:43Z. --- ### What Declares 46 PS5 3.20 system exports that AnyPS5 does not provide, in `libSceAgcVsh`. The 45 `libSceGnmDriverForNeoMode` names this branch previously declared are now implemented by open PR #9432 in `libSceGnmDriver`, so they were removed here to avoid exporting the same NIDs twice (the project's duplicate-export check fails such a collision, and on Linux a throwing stub could shadow the real implementation depending on load order). 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_patch` and returns 0; none of them implements the function. All 46 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. The list is the intersection of the export table of the console's library (function symbols only) and the pinned [aerolib](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) names, limited to exports not provided by this tree: 44 of the AgcVsh names are already implemented by libSceAgc on main, so those declarations exist only so titles importing libSceAgcVsh resolve, and are not claimed as new functionality. Every name recomputes to its NID with `tools/nid_names.py`. It was computed with `tools/export_gap.py` (#8588), which recognises what a module already provides through an `APS5_VABI` declaration, a `_nid_postfix` name, an `APS5_EXPORT` binding or a macro, and which reports the missing exports whose name the module calls itself. `libSceAgcVsh` declares its exports as `<base>_nid_no_patch` bound with `APS5_EXPORT`, following the file's own 150-entry precedent: the plain `sceAgc*` names are defined by sibling `libSceAgc`, so plain definitions would collide at link time. `libScePlayReady4` was measured as part of this batch and left out: all of its inventory names are already provided by `libScePlayReady` and `libScePlayReady2`, so declaring them would export the same NID twice. `tools/pr_overlap.py` reports no shared export with any open pull request. `tools/progress.py` reports system libraries changing from 6568/13463 (48.79%) to 6568/13509 (48.62%). These are pending declarations, so the implemented count is unchanged. ### Tested CachyOS Linux, kernel 7.2.9-2-cachyos, Python 3.14.8, Release build. - New test entry is not needed: the declarations are stubs and the project does not add tests that only check that a symbol is exported. - `python3 tools/check_conventions.py --base origin/main`: all conventions checks passed. - `python3 tools/pr_overlap.py --branch feat/prx-declare-batch2`: no shared export with any open pull request. - Every declared symbol's NID was checked with the project's own `tools/nid_names.py` against the inventory, every symbol was checked against `origin/main` (including `_nid_postfix` bases and macro-declared exports) so that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls. - No title was run: the contributor has no PS5 and no game dumps. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11971
No description provided.