Skip to content

docs(debt): narrow libSceHmd's protected-body notes to the throwing queries - #12267

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
dantdmdarealguy:docs/debt-hmd-throwing-queries
Oct 28, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
dantdmdarealguy:docs/debt-hmd-throwing-queries

Conversation

@dantdmdarealguy

Copy link
Copy Markdown
Contributor

What

Two entries in docs/dev/debt/libSceHmd.md say that all the functions they link are still protected, unimplemented stubs. Some of those functions have been implemented since then. This change cuts both sentences down to the functions that still throw.

No code changes.

Tested

Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release build of main ccfb96757f plus this commit, with BUILD_TESTING=ON.

  • ctest -R "debt_split|conventions_doc_links|^guest_hmd$|patched_libraries": 4/4 passed.
    • guest_hmd already checks the four work-memory values (GuestHmd.cpp L53-56) and the field-of-view, sensor and assembly-error answers without a headset (L73-77, L159-160).
  • Every function the edited sentences name as throwing calls NotImplemented_nid_no_patch(__func__) in Export.cpp (9 of 9).
  • cmake --build and cmake --build --target libs both succeed.
  • python tools/check_test_registration.py <build>: 1487 test executables, none new.
  • python tools/check_conventions.py --base origin/main: All conventions checks passed.
  • python tools/pr_overlap.py --branch <branch>: No overlap with open pull requests. No open PR head changes docs/dev/debt/libSceHmd.md.

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, some AI assistance was used

…ueries

The work-memory entry said the bodies of all its queries remain
unimplemented, but sceHmdGetDistortionWorkMemoryAlign and Size return
0x400 and 0x20000 since db25758 (boykopovar#8307), and their
sceHmdDistortionGetWorkMemory* aliases since fa916ae (boykopovar#8256). Only
capture start, separate-mode open, crash-report cancellation and the
mirroring aspect debug setter still throw.

The device and sensor query entry said its protected bodies are
unchanged, but sceHmdGetFieldOfView, sceHmdGetInertialSensorData and
sceHmdGetAssyError answer without a headset since fe6aba8 and
a569d07 (boykopovar#8256), before 7b97d75 (boykopovar#9137) wrote the entry. Only the
internal device-information, distortion-parameter, status-report and
DFU-status queries still throw.
@fogydes

fogydes commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

verdict: OK

  1. [verified] The debt-note edits match the current export implementation: the two distortion-work-memory functions and the field-of-view, inertial-sensor, and assembly-error queries have definitions in Export.cpp; the revised note limits the remaining gap to throwing queries.
  2. [verified] git diff --check origin/main...pull/12267 passes. The PR body contains the required template sections and checked boxes.

Freshness envelope: head 0de89c8; merge-base 0cd07dc; behind main: 0; git merge-tree --write-tree origin/main pull/12267: exit 0, clean.

Cross-PR ledger: pr_overlap.py checked 1,371 other open PRs and found no shared files or exports.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The edited debt statements now name only the exports that still throw; the removed claims were stale relative to the implementation and existing test coverage. The PR reports checking all nine named functions against NotImplemented_nid_no_patch, with the focused HMD/debt/documentation tests and conventions checks passing. No code behavior changes. No blocking issue found.

@THEMANnt THEMANnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 0de89c89ebf83101de6b3192a73329af54c8c204 against author merge base 0cd07dc4ab25d924cbcebee5e0468a1b785042f7 — approve the documentation change.

The replacement wording distinguishes actual field-of-view/device-status/work-memory behavior from the internal device-information, distortion/status/DFU and capture/separate-mode calls that still throw. The removed blanket protected-body statements no longer describe the pinned exports. Unresolved ABI semantics remain documented.

Validation: inspected the submitted diff and exact-revision implementation/workflow references; relative links resolve and git diff --check passes. Documentation-only source validation, not a runtime regression test.

@adriadam10 adriadam10 self-assigned this Oct 28, 2026
@adriadam10
adriadam10 merged commit c55fcc7 into boykopovar:main Oct 28, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the edited sentences against Export.cpp: the nine functions named as throwing all call NotImplemented_nid_no_patch, and the work-memory, field-of-view, sensor and assembly-error queries no longer do, so the old blanket notes were stale; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants