feat(jxr): add missing firmware inventory exports #13139

Merged
Celegans12 merged 1 commit from upstream-pr/13139 into main 2026-11-01 04:13:23 +00:00
Celegans12 commented 2026-10-30 04:07:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-30T04:07:19Z.


What

Adds the complete 132-entry missing inventory group for the existing libSceJxr provider. Each guest binding uses the repository's _nid_postfix convention so it remains distinct from any hidden native JXR helper with the same bare name.

The exact name/NID set comes from LIBRARIES.md and the 136-entry per-library metadata, pinned to bfec40deb4c47a17d7603ee2bc79aa6862c0c56b. Four entries already have accepted functional guest bindings; this topic adds the other 132 without changing those bodies. The sorted new mapping has SHA-256 5297d37e176d765c353189f3c6a041dacabad7444419bb4b6cdd19d70161b2cf.

Physical-provider evidence in boykopovar/ps5-nid-map at cc1d586fddab576a520f226da6b2632b031e6d09 maps all 136 identities to libSceJxr.sprx. This extends an existing system-library provider and does not replace a title-shipped module or infer support from an absent directory.

Every new call immediately throws through NotImplemented_nid_no_patch. The parameterless int declarations are import-resolution placeholders, not verified ABI prototypes. Unknown signatures and behavior are recorded in technical debt. This does not implement JXR encoding, decoding, stream processing or title compatibility.

Tested

Linux x86-64, GCC 13.3. Current topic base: upstream main 5ecef095b61e7a406b279c97896f3a8a6fbd6353.

  • python3 tools/check_conventions.py --base origin/main, whitespace checks and the full public_headers audit passed (373 libraries, 14,375 exports).
  • All 136 compiled guest name/NID pairs exactly match the pinned inventory. Rebuilt baseline/change DSOs changed the 132 candidate NIDs from 0/132 to 132/132, each defined once, while preserving the four existing bindings.
  • Nine existing JXR executions passed on both baseline and change: the shared native reference, raw and patched lookup, forward/reverse padding checks, guest_jxr, and guest_jxr_stream. They exercise existing behavior, not the new unknown-ABI entries.
  • Historical review found no rejection of this focused group. #8825 and #8747 supplied only the four existing bindings; #8747 explicitly invited focused per-library follow-ups after rejecting its mass integration scope.
  • tools/pr_overlap.py scanned the final topic head against all 1,460 open pull requests and reported no overlap.

The full all-library build and full CTest suite were not run. No Windows, PS5 hardware, GPU, title or Ghost of Yōtei validation. No tests were added solely to check symbol existence.

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 (ChatGPT Work)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5079308682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13139). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-30T04:07:19Z. --- ### What Adds the complete 132-entry missing inventory group for the existing `libSceJxr` provider. Each guest binding uses the repository's `_nid_postfix` convention so it remains distinct from any hidden native JXR helper with the same bare name. The exact name/NID set comes from [`LIBRARIES.md`](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/LIBRARIES.md) and the [136-entry per-library metadata](https://github.com/xdCloudy/PS5-13.60-Function-Stub-Library/blob/bfec40deb4c47a17d7603ee2bc79aa6862c0c56b/data/firmware-13.60/libscejxr-59a05f1891.jsonl), pinned to `bfec40deb4c47a17d7603ee2bc79aa6862c0c56b`. Four entries already have accepted functional guest bindings; this topic adds the other 132 without changing those bodies. The sorted new mapping has SHA-256 `5297d37e176d765c353189f3c6a041dacabad7444419bb4b6cdd19d70161b2cf`. Physical-provider evidence in `boykopovar/ps5-nid-map` at `cc1d586fddab576a520f226da6b2632b031e6d09` maps all 136 identities to `libSceJxr.sprx`. This extends an existing system-library provider and does not replace a title-shipped module or infer support from an absent directory. Every new call immediately throws through `NotImplemented_nid_no_patch`. The parameterless `int` declarations are import-resolution placeholders, not verified ABI prototypes. Unknown signatures and behavior are recorded in technical debt. This does not implement JXR encoding, decoding, stream processing or title compatibility. ### Tested Linux x86-64, GCC 13.3. Current topic base: upstream main `5ecef095b61e7a406b279c97896f3a8a6fbd6353`. - `python3 tools/check_conventions.py --base origin/main`, whitespace checks and the full `public_headers` audit passed (373 libraries, 14,375 exports). - All 136 compiled guest name/NID pairs exactly match the pinned inventory. Rebuilt baseline/change DSOs changed the 132 candidate NIDs from 0/132 to 132/132, each defined once, while preserving the four existing bindings. - Nine existing JXR executions passed on both baseline and change: the shared native reference, raw and patched lookup, forward/reverse padding checks, `guest_jxr`, and `guest_jxr_stream`. They exercise existing behavior, not the new unknown-ABI entries. - Historical review found no rejection of this focused group. #8825 and #8747 supplied only the four existing bindings; #8747 explicitly invited focused per-library follow-ups after rejecting its mass integration scope. - `tools/pr_overlap.py` scanned the final topic head against all 1,460 open pull requests and reported no overlap. The full all-library build and full CTest suite were not run. No Windows, PS5 hardware, GPU, title or Ghost of Yōtei validation. No tests were added solely to check symbol existence. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes (ChatGPT Work) <!-- yes / no -->
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!13139
No description provided.