docs(libScePsml_debug): record the v1100 shapes from the Nioh 3 fakelib revision #20681

Merged
akkadbakkad89 merged 1 commit from upstream-pr/20681 into main 2026-11-16 16:28:59 +00:00
akkadbakkad89 commented 2026-11-15 12:19:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-11-15T12:19:15Z.


What

Records the v1100-family guard and parameter shapes read from the libScePsml.sprx bundled in PPSA32786's fakelib (Nioh 3, SDK 5.xx) into the libScePsml_debug debt note. The library demands all five scePsmlMfsr* v1100 imports plus scePsmlMfsrInit at link time; every demanded guard is already the emitted behaviour on the modelled console, so this is a documentation-only update.

New details captured for this revision: the context-requirement calculator writes {blockBytes=0x200000, alignment=0x200000, blockCount=ceil(bytes/0x200000)} with a type-dispatched size function (type 1 requires exactly 7680x4320, type 2 halves the input pair), CreateSharedResources packs resolution as (height<<16)|width, CreateContext1100's null/param+0x08/param+0x1c/type-dispatch guard order, GetDispatchMfsrPacket1100's init-check-free wrapper shape, and Init's 0x8A810012/0x8A810002/0x8A810010 ladder - matching the earlier revision's model.

Tested

  • python3 tools/check_conventions.py --base origin/main - clean
  • Disassembly verified against libScePsml.elf (PPSA32786 fakelib, unwrap_self.py output): export vaddrs 0x2c200/0x2c2d0/0x2ca20/0x2d460/0x2e090, requirement calculator at 0x27bc0, size function at 0x26b50

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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 (documentation-only)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5322626067 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20681). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-11-15T12:19:15Z. --- ### What Records the v1100-family guard and parameter shapes read from the `libScePsml.sprx` bundled in PPSA32786's fakelib (Nioh 3, SDK 5.xx) into the libScePsml_debug debt note. The library demands all five `scePsmlMfsr*` v1100 imports plus `scePsmlMfsrInit` at link time; every demanded guard is already the emitted behaviour on the modelled console, so this is a documentation-only update. New details captured for this revision: the context-requirement calculator writes `{blockBytes=0x200000, alignment=0x200000, blockCount=ceil(bytes/0x200000)}` with a type-dispatched size function (type 1 requires exactly 7680x4320, type 2 halves the input pair), `CreateSharedResources` packs resolution as `(height<<16)|width`, `CreateContext1100`'s null/`param+0x08`/`param+0x1c`/type-dispatch guard order, `GetDispatchMfsrPacket1100`'s init-check-free wrapper shape, and `Init`'s 0x8A810012/0x8A810002/0x8A810010 ladder - matching the earlier revision's model. ### Tested - `python3 tools/check_conventions.py --base origin/main` - clean - Disassembly verified against `libScePsml.elf` (PPSA32786 fakelib, `unwrap_self.py` output): export vaddrs 0x2c200/0x2c2d0/0x2ca20/0x2d460/0x2e090, requirement calculator at 0x27bc0, size function at 0x26b50 ### 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) and the licence notice of code adapted from upstream (see AGENTS.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 (documentation-only) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-15 13:01:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T13:01:35Z.

Review: APPROVED


Reviewed — looks good

The documentation update adds a detailed account of the v1100 fakelib behavior; the changed claims are internally consistent with the existing note and do not alter runtime code.

What I ran

Read the prepared description, commit list, manifest, diff, and the changed documentation file at the pinned head 7a6c07ebc25b6886be33d18409d2b83eb0ca2431. No tests or convention checks were run.

Results

Check Result Note
Changed-file review passed Documentation only
Tests and convention check not run Author reported clean convention check
Disassembly claims not run Not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

The sole reviewed changed file is docs/dev/debt/libScePsml_debug.md; it was read in full. files.json was not available through the reader, so excluded-file details could not be checked. The underlying fakelib disassembly and author-reported convention check were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5910855587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20681#pullrequestreview-5910855587). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T13:01:35Z. **Review:** APPROVED --- # Reviewed — looks good The documentation update adds a detailed account of the v1100 fakelib behavior; the changed claims are internally consistent with the existing note and do not alter runtime code. ## What I ran Read the prepared description, commit list, manifest, diff, and the changed documentation file at the pinned head `7a6c07ebc25b6886be33d18409d2b83eb0ca2431`. No tests or convention checks were run. ## Results | Check | Result | Note | |---|---|---| | Changed-file review | passed | Documentation only | | Tests and convention check | not run | Author reported clean convention check | | Disassembly claims | not run | Not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The sole reviewed changed file is `docs/dev/debt/libScePsml_debug.md`; it was read in full. `files.json` was not available through the reader, so excluded-file details could not be checked. The underlying fakelib disassembly and author-reported convention check were not independently verified. ## To get this to a good state Nothing is required.
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!20681
No description provided.