fix(libSceHmd2): silent stubs for reprojection size/align queries #6272

Closed
mazen320 wants to merge 2 commits from upstream-pr/6272 into main
mazen320 commented 2026-10-15 08:40:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:40:32Z.


What

sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign, sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign, sceHmd2ReprojectionQueryBufferSizeAlign, and sceHmd2ReprojectionQueryDisplayBufferSizeAlign no longer call NotImplemented_nid_no_patch. They return 0 with no reprojection buffer sizing.

These are the remaining SizeAlign-style reprojection queries still throwing on main (sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign is #6269). Signatures are unknown; titles import them with no arguments. guest_hmd2 covers all four.

Tested

Windows 11. python tools/check_conventions.py --base upstream/main passed. Full guest_hmd2 run needs a configure that rebuilds libSceHmd2 against this worktree (not re-run here against the dirty main build tree).

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
  • Unblocks: PPSA29866 #3646 / PPSA15878 (SizeAlign query stops; SeeThrough is #6269; FlipMaster is #6253; Finalize is #6271)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870556860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:40:32Z. --- ### What `sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign`, `sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign`, `sceHmd2ReprojectionQueryBufferSizeAlign`, and `sceHmd2ReprojectionQueryDisplayBufferSizeAlign` no longer call `NotImplemented_nid_no_patch`. They return 0 with no reprojection buffer sizing. These are the remaining SizeAlign-style reprojection queries still throwing on main (`sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign` is #6269). Signatures are unknown; titles import them with no arguments. `guest_hmd2` covers all four. ### Tested Windows 11. `python tools/check_conventions.py --base upstream/main` passed. Full `guest_hmd2` run needs a configure that rebuilds `libSceHmd2` against this worktree (not re-run here against the dirty main build tree). ### 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] Unblocks: PPSA29866 #3646 / PPSA15878 (SizeAlign query stops; SeeThrough is #6269; FlipMaster is #6253; Finalize is #6271) - [x] GPUs tested: n/a - [x] AI-assisted: yes
mazen320 commented 2026-10-15 08:40:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:40:42Z.


Overlap (#6269 / #6271 / #6253)

Bot may flag docs/dev/debt/libSceHmd2.md (Silent stubs wording). Production change here is four SizeAlign exports in Export.cpp (not SeeThrough). #6269 is SeeThrough; #6271 is VrTracker2 Finalize; #6253 is FlipMaster — rebase debt hunk if those land first. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188068205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272#issuecomment-6188068205). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:40:42Z. --- ### Overlap (#6269 / #6271 / #6253) Bot may flag `docs/dev/debt/libSceHmd2.md` (Silent stubs wording). Production change here is four SizeAlign exports in `Export.cpp` (not SeeThrough). #6269 is SeeThrough; #6271 is VrTracker2 Finalize; #6253 is FlipMaster — rebase debt hunk if those land first. Depends on: none.
github-actions[bot] commented 2026-10-15 08:41:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:41:17Z.


Progress report (c0be1f6 → b39fe7d)

📈 System libraries: 88.82% (+0.11%, +4 implemented functions)

✅ 4 implemented
Library Name
libSceHmd2 sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign
libSceHmd2 sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign
libSceHmd2 sceHmd2ReprojectionQueryBufferSizeAlign
libSceHmd2 sceHmd2ReprojectionQueryDisplayBufferSizeAlign
⚪ 4 behaviourally empty (constant return or throw)
Library Name
libSceHmd2 sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign
libSceHmd2 sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign
libSceHmd2 sceHmd2ReprojectionQueryBufferSizeAlign
libSceHmd2 sceHmd2ReprojectionQueryDisplayBufferSizeAlign
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188079007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272#issuecomment-6188079007). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:41:17Z. --- <!-- progress-report --> ### Progress report (c0be1f6 → b39fe7d) 📈 **System libraries**: 88.82% (+0.11%, +4 implemented functions) <details> <summary>✅ 4 implemented</summary> | Library | Name | | - | - | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionQueryBufferSizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionQueryDisplayBufferSizeAlign` | </details> <details> <summary>⚪ 4 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionQueryBufferSizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionQueryDisplayBufferSizeAlign` | </details>
github-actions[bot] commented 2026-10-15 12:17:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:52Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestHmd2.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191854162 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272#issuecomment-6191854162). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:17:52Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestHmd2.cpp` |
mazen320 commented 2026-10-15 15:35:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:35:29Z.


Agree with the silent-stub bar from #6274 / CONTRIBUTING: need UI-only (or safe-to-ignore / never-called) evidence, not only a load stop.

This PR only established that the title fails to load without the export. Restored throwing and closing until that evidence exists.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195931201 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272#issuecomment-6195931201). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:29Z. --- Agree with the silent-stub bar from #6274 / CONTRIBUTING: need UI-only (or safe-to-ignore / never-called) evidence, not only a load stop. This PR only established that the title fails to load without the export. Restored throwing and closing until that evidence exists.
mazen320 commented 2026-10-15 15:35:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:35:30Z.


Closing: silent stub withdrawn; export(s) throw again pending UI-only / never-called evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195931786 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6272#issuecomment-6195931786). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:30Z. --- Closing: silent stub withdrawn; export(s) throw again pending UI-only / never-called evidence.

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!6272
No description provided.