fix(libSceHmd2): silent stub for ReprojectionQuerySeeThroughBufferSizeAlign #6269

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

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


What

sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign no longer calls NotImplemented_nid_no_patch. It returns 0 with no see-through buffer size/align.

PPSA29866 (Tomba! 2) imports it with an unknown signature and stops when it throws (#3646). The host has no PS VR2 see-through path, so this matches other Hmd2 silent-stub patterns once initialization already fails for titles that check it. Debt moved from Unknown function info into Silent stubs. guest_hmd2 covers the new return.

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 (SeeThrough query stop; other Hmd2/VideoOut/workload follow-ups remain)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870465512 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:32:28Z. --- ### What `sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign` no longer calls `NotImplemented_nid_no_patch`. It returns 0 with no see-through buffer size/align. PPSA29866 (Tomba! 2) imports it with an unknown signature and stops when it throws (#3646). The host has no PS VR2 see-through path, so this matches other Hmd2 silent-stub patterns once initialization already fails for titles that check it. Debt moved from Unknown function info into Silent stubs. `guest_hmd2` covers the new return. ### 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 (SeeThrough query stop; other Hmd2/VideoOut/workload follow-ups remain) - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 08:33:00 +00:00 (Migrated from github.com)

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


Progress report (92e5041 → 1e722ea)

📈 System libraries: 88.82% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHmd2 sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceHmd2 sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187932520 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6187932520). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:33:00Z. --- <!-- progress-report --> ### Progress report (92e5041 → 1e722ea) 📈 **System libraries**: 88.82% (+0.02%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHmd2 | `sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceHmd2 | `sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign` | </details>
mazen320 commented 2026-10-15 08:33:33 +00:00 (Migrated from github.com)

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


Overlap (#6253)

Bot may flag docs/dev/debt/libSceHmd2.md (PPSA29866 unknown-imports line). Production change here is Export.cpp alone (sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign returns 0). #6253 moves FlipMaster out of that same debt bullet; rebase debt hunk if that PR lands first. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187941484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6187941484). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:33:33Z. --- ### Overlap (#6253) Bot may flag `docs/dev/debt/libSceHmd2.md` (PPSA29866 unknown-imports line). Production change here is `Export.cpp` alone (`sceHmd2ReprojectionQuerySeeThroughBufferSizeAlign` returns 0). #6253 moves FlipMaster out of that same debt bullet; rebase debt hunk if that PR lands first. Depends on: none.
github-actions[bot] commented 2026-10-15 08:35:35 +00:00 (Migrated from github.com)

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


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5960 docs/dev/debt/libSceHmd2.md L9

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:6187976456 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6187976456). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:35:35Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5960](https://www.github.com/boykopovar/AnyPS5/pull/5960) | `docs/dev/debt/libSceHmd2.md` [L9](https://github.com/boykopovar/AnyPS5/blob/940eba9a26ec363eef9a461b24e94576317a4955/docs/dev/debt/libSceHmd2.md#L9) | | | 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 09:33:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:33:34Z.


Overlap

Bot flagged docs/dev/debt/libSceHmd2.md with #5960. Production change here is one Hmd2 silent stub export; debt line only. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188997977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6188997977). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:33:34Z. --- ### Overlap Bot flagged `docs/dev/debt/libSceHmd2.md` with #5960. Production change here is one Hmd2 silent stub export; debt line only. **Depends on: none.**
mazen320 commented 2026-10-15 15:35:57 +00:00 (Migrated from github.com)

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


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:6195941005 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6195941005). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:57Z. --- 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:59 +00:00 (Migrated from github.com)

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


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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195941783 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6269#issuecomment-6195941783). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:59Z. --- 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!6269
No description provided.