docs(libSceAvPlayer): note that six titles pass all four allocator callbacks #11716

Merged
milescoviello merged 1 commit from upstream-pr/11716 into main 2026-10-27 12:02:55 +00:00
milescoviello commented 2026-10-27 05:12:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-27T05:12:57Z.


What

The sceAvPlayerInit / sceAvPlayerInitEx entry in docs/dev/debt/libSceAvPlayer.md says behaviour without a memory replacement is unknown, and that frame and sample buffers then come from the guest heap. This adds that none of the six titles disassembled for it takes that path: before each of their nine calls they store all four allocator callbacks (allocate, deallocate, allocate_texture, deallocate_texture) in the init data.

Title Version Calls
Borderlands 4 (PPSA01494) 01.100.002 sceAvPlayerInit, sceAvPlayerInitEx
Metal Gear Solid 4 (PPSA18194) 01.004.003 sceAvPlayerInitEx
ASTRO BOT (PPSA21564) 01.007.000 sceAvPlayerInit
MXGP 26 (PPSA30839) 01.003.000 sceAvPlayerInit, sceAvPlayerInitEx
Super Meat Boy 3D (PPSA31162) 02.000.001 sceAvPlayerInit, sceAvPlayerInitEx
STEINS;GATE RE:BOOT (PPSA36591) 01.002.000 sceAvPlayerInit

So the guest-heap fallback in WithGuestHeapFallback isn't what these titles run on; their own allocators are.

How

I found the calls through each import's PLT stub in the relinked eboot.bin. For each call I read the stores into the init data before it: offsets 0x08 to 0x20 of AvPlayerInitData, and 0x10 to 0x28 of AvPlayerInitDataEx, after this_size. No code change.

Changed: docs/dev/debt/libSceAvPlayer.md.

Tested

Docs only. tools/check_conventions.py --base upstream/main passes.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5028936696 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11716). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-27T05:12:57Z. --- ### What The `sceAvPlayerInit / sceAvPlayerInitEx` entry in `docs/dev/debt/libSceAvPlayer.md` says behaviour without a memory replacement is unknown, and that frame and sample buffers then come from the guest heap. This adds that none of the six titles disassembled for it takes that path: before each of their nine calls they store all four allocator callbacks (`allocate`, `deallocate`, `allocate_texture`, `deallocate_texture`) in the init data. | Title | Version | Calls | |---|---|---| | Borderlands 4 (PPSA01494) | 01.100.002 | `sceAvPlayerInit`, `sceAvPlayerInitEx` | | Metal Gear Solid 4 (PPSA18194) | 01.004.003 | `sceAvPlayerInitEx` | | ASTRO BOT (PPSA21564) | 01.007.000 | `sceAvPlayerInit` | | MXGP 26 (PPSA30839) | 01.003.000 | `sceAvPlayerInit`, `sceAvPlayerInitEx` | | Super Meat Boy 3D (PPSA31162) | 02.000.001 | `sceAvPlayerInit`, `sceAvPlayerInitEx` | | STEINS;GATE RE:BOOT (PPSA36591) | 01.002.000 | `sceAvPlayerInit` | So the guest-heap fallback in `WithGuestHeapFallback` isn't what these titles run on; their own allocators are. ### How I found the calls through each import's PLT stub in the relinked `eboot.bin`. For each call I read the stores into the init data before it: offsets 0x08 to 0x20 of `AvPlayerInitData`, and 0x10 to 0x28 of `AvPlayerInitDataEx`, after `this_size`. No code change. Changed: `docs/dev/debt/libSceAvPlayer.md`. ### Tested Docs only. `tools/check_conventions.py --base upstream/main` passes. ### 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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-27 05:17:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T05:17:30Z.

Review: APPROVED


Reviewed exact head 369011996c80c273fd7bc71eefe7c467f90adea2.

This is a focused debt-note clarification: the title/version/call counts sum to nine and the text records the four allocator callback fields and their offsets for both init structures. It preserves the uncertainty around behavior when callbacks are absent and does not claim a runtime change. The claim is based on the author's disassembly of the six listed title versions; I did not independently reproduce those title-binary reads. The hosted eligibility, intake, conventions and label checks pass; product jobs were skipped for the docs-only change.

No blocking issue found in the documentation diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5662540386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11716#pullrequestreview-5662540386). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T05:17:30Z. **Review:** APPROVED --- Reviewed exact head `369011996c80c273fd7bc71eefe7c467f90adea2`. This is a focused debt-note clarification: the title/version/call counts sum to nine and the text records the four allocator callback fields and their offsets for both init structures. It preserves the uncertainty around behavior when callbacks are absent and does not claim a runtime change. The claim is based on the author's disassembly of the six listed title versions; I did not independently reproduce those title-binary reads. The hosted eligibility, intake, conventions and label checks pass; product jobs were skipped for the docs-only change. No blocking issue found in the documentation diff.
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!11716
No description provided.