Repository navigation
docs(debt): narrow libSceHmd's protected-body notes to the throwing queries - #12267
Conversation
…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.
|
verdict: OK
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Checked the edited sentences against |
What
Two entries in
docs/dev/debt/libSceHmd.mdsay 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.sceHmdGetDistortionWorkMemoryAlignandsceHmdGetDistortionWorkMemorySizereturn0x400and0x20000since db25758 (fix(libs): return what the firmware returns from 31 more calls it does not implement #8307), which gives the firmware's bodies. Seecore/libs/prx/libSceHmd/Export.cppL268 and L339.sceHmdDistortionGetWorkMemoryAlign/Sizereturn the same values since fa916ae (feat(libSceHmd): answer ten buffer and device queries the way the disconnected-headset path implies #8256). See L180 and L189.sceHmdReprojectionStartCapture,sceHmdInternalSeparateModeOpen,sceHmdInternalCrashReportCancelandsceHmdInternalMirroringModeSetAspectDebugstill callNotImplemented_nid_no_patch. The sentence now names only these four.sceHmdGetFieldOfViewandsceHmdGetInertialSensorDatarefuse without a headset since fe6aba8 (feat(libSceHmd): answer ten buffer and device queries the way the disconnected-headset path implies #8256).sceHmdGetAssyErrorreports the headset disconnected since a569d07 (feat(libSceHmd): answer ten buffer and device queries the way the disconnected-headset path implies #8256).sceHmdInternalGetDeviceInformation,sceHmdInternalGetDeviceInformationByHandle,sceHmdGetDistortionParams,sceHmdInternalGetStatusReportandsceHmdInternalDfuGetStatusstill throw. The sentence now names only those.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
mainccfb96757fplus this commit, withBUILD_TESTING=ON.ctest -R "debt_split|conventions_doc_links|^guest_hmd$|patched_libraries": 4/4 passed.guest_hmdalready checks the four work-memory values (GuestHmd.cppL53-56) and the field-of-view, sensor and assembly-error answers without a headset (L73-77, L159-160).NotImplemented_nid_no_patch(__func__)inExport.cpp(9 of 9).cmake --buildandcmake --build --target libsboth 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 changesdocs/dev/debt/libSceHmd.md.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)