fix(libSceHmd2): copy reprojection status, gaze results, and output buffers via GuestCopyIn/Out #19525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19525"
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 PrivacyOnion on 2026-11-13T13:26:06Z.
What
Copies reprojection status buffers, gaze result parameters/outputs, and pre-init output buffers in
libSceHmd2viaGuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchwhile preservingerrno, replacing direct guest pointer dereferences insceHmd2ReprojectionGetStatus,Hmd2GazeHandle,sceHmd2GazeGetResult,sceHmd2GazeGetResultForFoveatedRendering,Hmd2WriteStateTwo,Hmd2WriteSize0x2000Align0x100,Hmd2WriteFourConstants,Hmd2WriteSixHalvesThenInvalidHandle, andHmd2WriteTwelveHalvesThenInvalidHandle.Tested
cmake --build build --target guest_hmd2_tests guest_hmd2_gaze_tests guest_hmd2_gaze_args_tests -j 16ctest --test-dir build -R "^guest_hmd2" --output-on-failure(3/3 Passed:guest_hmd2,guest_hmd2_gaze,guest_hmd2_gaze_args)python tools/check_conventions.py --base upstream/main(Passed)python tools/pr_overlap.py --branch fix/hmd2-guest-copy --jobs 1Checklist
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T02:28:08Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed code routes the targeted gaze and reprojection buffers through checked guest copies and preserves
errno.What I ran
Reviewed head
1d8172e5301d5be589508cc3528ae0bce528c29bagainst basemainusing the prepared diff and pinned reader. No build or tests were run. The PR description reports a build, three passingguest_hmd2tests, a conventions check, and an overlap check; these were not run during this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No commands, build, or tests were run. Console behavior for unmapped or unwritable pointers is documented as unmeasured. Read:
core/libs/prx/libSceHmd2/Export.cpp(changed regions and affected buffer writers),core/libs/tests/GuestHmd2Gaze.cpp(changed lines and surrounding test functions), anddocs/dev/debt/libSceHmd2.md(changed line). No changed files were excluded;review/files.jsonwas not available as a review-folder file.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:20:26Z.
Review: COMMENTED
The reprojection status hunk conflicts with main, which now builds the result in local storage and uses
GuestCopyOutwhile preserving errno. Please keep that existing path and rebase the remaining gaze or output changes around it.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.