feat(libSceAmpr): declare 3 additional exports #11936

Closed
kyon-eth wants to merge 1 commit from upstream-pr/11936 into main
kyon-eth commented 2026-10-27 13:10:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kyon-eth on 2026-10-27T13:10:48Z.


What

Declare 3 missing libSceAmpr exports for import resolution. Each entry throws through NotImplemented_nid_no_patch; no runtime functionality or successful result is supplied. Parameterless int signatures are unverified placeholders, not ABI claims. The new public header is reachable through the library umbrella, and the existing production Export.cpp defines the entries. Technical debt records every name/NID and the unknown parameter lists, return types and behavior.

Every selected name/NID pair is present in the 13.60 function-export inventory and recomputes with the repository NID algorithm. This verifies export identity, not the version that introduced it. No implemented-coverage increase, performance improvement or title unblock is claimed.

Export NID
sceAmprMeasureCommandSizeWriteAddressFromCounterOnCompletion 32AcaTaBPSY
sceAmprMeasureCommandSizeWriteAddressFromCounterPairOnCompletion vxC58+DRk-U
sceAmprMeasureCommandSizeWriteAddressFromTimeCounterOnCompletion x7SQEXfeovg

Tested

  • Based on main 62b3ba2522.
  • macOS x86-64: compiled the complete changed production Export.cpp with warnings treated as errors; inspected the object and confirmed every selected function is defined. Object compilation only, not a complete library/product link.
  • Standalone umbrella compilation and repository-wide public-header uniqueness/coverage audit pass.
  • Name/NID recomputation and function-export-table checks pass.
  • Current-main conventions, whitespace and privacy checks pass.
  • Full live open-PR overlap scan: no duplicate exports or confirmed conflicts. The checker could not compare Export.cpp in #7081 and #11727 because those branches already conflict with main. Manual review of their complete shared-file patches found CRT forwarding renames (#7081) and command-buffer growth changes (#11727), with none of these names/NIDs and no edits to the new declaration block. No landing dependency is required.
  • No tests pinning intentionally unsupported behavior were added. No runtime, console, title or Linux/Windows execution is claimed.

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:5034460048 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11936). Originally posted by [kyon-eth](https://github.com/kyon-eth) on 2026-10-27T13:10:48Z. --- ### What Declare 3 missing `libSceAmpr` exports for import resolution. Each entry throws through `NotImplemented_nid_no_patch`; no runtime functionality or successful result is supplied. Parameterless `int` signatures are unverified placeholders, not ABI claims. The new public header is reachable through the library umbrella, and the existing production `Export.cpp` defines the entries. Technical debt records every name/NID and the unknown parameter lists, return types and behavior. Every selected name/NID pair is present in the 13.60 function-export inventory and recomputes with the repository NID algorithm. This verifies export identity, not the version that introduced it. No implemented-coverage increase, performance improvement or title unblock is claimed. | Export | NID | | --- | --- | | `sceAmprMeasureCommandSizeWriteAddressFromCounterOnCompletion` | `32AcaTaBPSY` | | `sceAmprMeasureCommandSizeWriteAddressFromCounterPairOnCompletion` | `vxC58+DRk-U` | | `sceAmprMeasureCommandSizeWriteAddressFromTimeCounterOnCompletion` | `x7SQEXfeovg` | ### Tested - Based on main `62b3ba2522`. - macOS x86-64: compiled the complete changed production `Export.cpp` with warnings treated as errors; inspected the object and confirmed every selected function is defined. Object compilation only, not a complete library/product link. - Standalone umbrella compilation and repository-wide public-header uniqueness/coverage audit pass. - Name/NID recomputation and function-export-table checks pass. - Current-main conventions, whitespace and privacy checks pass. - Full live open-PR overlap scan: no duplicate exports or confirmed conflicts. The checker could not compare `Export.cpp` in #7081 and #11727 because those branches already conflict with main. Manual review of their complete shared-file patches found CRT forwarding renames (#7081) and command-buffer growth changes (#11727), with none of these names/NIDs and no edits to the new declaration block. No landing dependency is required. - No tests pinning intentionally unsupported behavior were added. No runtime, console, title or Linux/Windows execution is claimed. <!-- 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 - [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!11936
No description provided.