fix(libSceHmd2): report unavailable predicted display time #25677
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25677"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mcarkade on 2026-11-22T14:32:30Z.
What
sceHmd2ReprojectionGetPredictedDisplayTimethrows for a non-null output in an active reprojection session. A retail PS5 running Gran Turismo 7 (PPSA01317) on firmware 13.40 without a headset returned0x8a720019for frame IDs0,1and0x123456789. The call left the output untouched. Console measurementReturn the measured error without writing the output. The guest test also checks the
0x8a720008response for a null output in the session. The debt entry records the remaining headset timing gap.Tested
Windows 11, MinGW-w64 GCC 15.2.0, CMake/CTest 4.3.1 and Python 3.13.5. With the test change alone on main
c9bf4612bc6,guest_hmd2aborted atsceHmd2ReprojectionGetPredictedDisplayTime not implemented. With the fix,guest_hmd2,guest_hmd2_gaze,guest_hmd2_gaze_argsandpublic_headerspassed.python tools/check_conventions.py --base origin/mainpassed. Linux, macOS and games were outside the local run.9869eede8437. Configured and builtguest_hmd2_testswith CMake 4.3.1, WinLibs GCC 15.2.0 and Ninja Release.ctest -R ^guest_hmd2$ --no-tests=error --output-on-failurepassed (1/1, 1.68 s).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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-22T14:34:12Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
9869eede84:tools/check_conventions.pypassed.guest_hmd2_testsbuilt cleanly.guest_hmd2):core/libs/prx/libSceHmd2/Export.cpp,core/libs/prx/libSceHmd2/Hmd2.hppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by throny on 2026-11-22T14:35:32Z.
Review: APPROVED
Review: ✅ correct
Basis: code read · head
9869eede84; console measurement in #7658 (comment)Checked
main,sceHmd2ReprojectionGetPredictedDisplayTimewith a session and a non-null output reachesNotImplemented_nid_no_patch, so a guest in a reprojection session (GT7 sets one up) crashes.0x8a720019for frame ids 0, 1 and0x123456789, and0x8a720008for a null output. The PR returns exactly that without writing, keeps the no-session and null-output answers in order, and matches the siblings' no-headset answers (GetDeviceInformationreportsNotDetected).main.Findings
0x8a720019is not returned because the answer with a headset is unknown. AnyPS5 never presents a headset, so no guest can see the difference, and the new entry states the no-headset scope; flagging it only because it reverses a recorded decision.Suggested action: merge.
AI-assisted review (Claude Code) · head
9869eede84· basemain337a948bf1Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T14:56:49Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
9869eede84378b3949df6aeb48bbbf261796cdd4matches its stated behavior: an active reprojection session returns the unavailable-time error without writing the output, while null output is checked first.What I ran
No commands or tests were run. I inspected the prepared diff and the changed files through
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and test results were not independently verified. The description reports Windows 11 test passes; Linux, macOS, and game behavior were outside the author's reported local run. Read
core/libs/prx/libSceHmd2/Export.cpp,core/libs/prx/libSceHmd2/Hmd2.hpp,core/libs/tests/GuestHmd2.cpp, anddocs/dev/debt/changes/hmd2-predicted-display-time.md; all four changed files listed in the manifest were read. No changed files were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T14:31:06Z.
Review: COMMENTED
Actionable comments posted: 1
727ca3a1-0e2e-4cc8-a8e8-e124c9cf06f5Reviewing files that changed from the base of the PR and between
0837c5581eand739f090201.core/libs/prx/libSceHmd2/Export.cppcore/libs/tests/GuestHmd2.cppdocs/dev/debt/changes/hmd2-predicted-display-time.mdLimit details: You’ve used all 10 included reviews currently available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T14:36:21Z.
Review: APPROVED
Reviewed — looks good
The changed implementation and its regression test match the reported unavailable-time behavior at head
739f0902016d3f906c53b96fd4e8e4c544ee8f6b; no blocking defect was verified.What I ran
Reviewed the prepared diff and targeted changed code at the exact head. No build, tests, or prechecks were run during this review.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No commands or tests were run. The console measurements, broader platform behavior, and claims in the PR description were not independently verified. The prepared bundle’s
files.jsonwas unavailable; the review folder listing showed all three changed files as included. Read the changed lines incore/libs/prx/libSceHmd2/Export.cpp,core/libs/tests/GuestHmd2.cpp, anddocs/dev/debt/changes/hmd2-predicted-display-time.md, plus the supplied description, commits, manifest, diff, and review README. No changed files were excluded in the manifest.To get this to a good state
Nothing is required.