feat(libSceHmd2): export missing firmware functions from database #6844
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6844"
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 al3w0f205 on 2026-10-16T14:08:41Z.
What
Adds missing
libSceHmd2functions identified from firmware export databases (aerolib.csv) as explicit throwing stubs (NotImplemented_nid_no_patch(__func__)). Also documents the unverified guest signatures under### Unknown function infoindocs/dev/debt/libSceHmd2.mdand verifies throwing behavior in guest tests.Exported functions:
sceHmd2GazeGetCalibrationDatasceHmd2GazeGetCalibrationDataMaxSizesceHmd2ReprojectionClearUserEventEndsceHmd2ReprojectionClearUserEventStartsceHmd2ReprojectionGetCurrentOutputsceHmd2ReprojectionGetStatussceHmd2ReprojectionSetUserEventEndsceHmd2ReprojectionSetUserEventStartsceHmd2GazeActivateGazeTrackingsceHmd2GazeGetDeviceStatussceHmd2GazeGetUserCalibrationStatussceHmd2GazeInsertRawDataWithHandlesceHmd2GazeSetEnabledEyesceHmd2GazeSetUserCalibrationDatasceHmd2GazeSetUserCalibrationPointsceHmd2GazeStartUserCalibrationsceHmd2GazeStopUserCalibrationsceHmd2ReprojectionSeeThroughDrawsceHmd2ReprojectionSeeThroughICsceHmd2ReprojectionVideoOutEqsceHmd2ReprojectionWaitShadersceHmd2SeeThroughCallbackGetPoseDataFuncsceHmd2GazeObjectSelectionGetSelectedObjectsceHmd2GazeObjectSelectionInitializesceHmd2GazeObjectSelectionQueryMemorysceHmd2GazeObjectSelectionTerminatesceHmd2ReprojectionClearsceHmd2ReprojectionSetsceHmd2ReprojectionSetEventGpuEndsceHmd2ReprojectionSetEventGpuStartsceHmd2RpeorjectionSetParamsceHmd2SetFieldOfViewsceHmd2SetIpdOffsetTested
tools/check_conventions.py --base origin/mainpassed with 0 errorsChecklist
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 github-actions[bot] on 2026-10-16T14:09:30Z.
Progress report (
c74aeb2→05bdd6a)📉 System libraries: 82.18% (-0.56%, +32 declared functions)
🆕 32 declared as stubs
sceHmd2GazeActivateGazeTrackingsceHmd2GazeGetCalibrationDatasceHmd2GazeGetCalibrationDataMaxSizesceHmd2GazeGetDeviceStatussceHmd2GazeGetUserCalibrationStatussceHmd2GazeInsertRawDataWithHandlesceHmd2GazeObjectSelectionGetSelectedObjectsceHmd2GazeObjectSelectionInitializesceHmd2GazeObjectSelectionQueryMemorysceHmd2GazeObjectSelectionTerminatesceHmd2GazeSetEnabledEyesceHmd2GazeSetUserCalibrationDatasceHmd2GazeSetUserCalibrationPointsceHmd2GazeStartUserCalibrationsceHmd2GazeStopUserCalibrationsceHmd2ReprojectionClearsceHmd2ReprojectionClearUserEventEndsceHmd2ReprojectionClearUserEventStartsceHmd2ReprojectionGetCurrentOutputsceHmd2ReprojectionSeeThroughDrawsceHmd2ReprojectionSeeThroughICsceHmd2ReprojectionSetsceHmd2ReprojectionSetEventGpuEndsceHmd2ReprojectionSetEventGpuStartsceHmd2ReprojectionSetUserEventEndsceHmd2ReprojectionSetUserEventStartsceHmd2ReprojectionVideoOutEqsceHmd2ReprojectionWaitShadersceHmd2RpeorjectionSetParamsceHmd2SeeThroughCallbackGetPoseDataFuncsceHmd2SetFieldOfViewsceHmd2SetIpdOffsetImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:39:55Z.
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.
main)core/libs/tests/GuestHmd2.cppL10-11, L63docs/dev/debt/libSceHmd2.mdL14core/libs/prx/libSceHmd2/Export.cppL223core/libs/tests/GuestHmd2.cppL10-11core/libs/prx/libSceHmd2/Export.cppL223core/libs/tests/GuestHmd2.cppL10-11core/libs/prx/libSceHmd2/Export.cppL223core/libs/tests/GuestHmd2.cppL10-11Some 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.
core/libs/tests/GuestHmd2.cppdocs/dev/debt/libSceHmd2.mdcore/libs/prx/libSceHmd2/Export.cppcore/libs/tests/GuestHmd2.cppdocs/dev/debt/libSceHmd2.mdImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T00:40:45Z.
Manual overlap check from #7323 found one concrete issue:
upstream/mainalready definessceHmd2ReprojectionGetStatus()atcore/libs/prx/libSceHmd2/Export.cpp:14-17, while this PR adds a second definition of the same function near the end of that file. If merged as-is, the translation unit will contain duplicate definitions. Please drop this entry from the added stubs (the existing main definition already exports it); the other new exports can remain.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T00:57:21Z.
Heads up: this needs a rebase onto current main. #5960 has since added
sceHmd2ReprojectionGetStatusto main, so this branch merges without a text conflict but then has a duplicate definition of it. #7323 (which reorderslibSceHmd2/Export.cpp) is also going in first; after it,Export.cppmerges automatically and onlyGuestHmd2.cppconflicts. Could you rebase onto main once #7323 lands and drop the duplicate? We'll review the new head then.Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-18T01:19:49Z.
Rebased onto current main following #7323, resolved the GuestHmd2.cpp test conflict, and dropped the duplicate sceHmd2ReprojectionGetStatus definition from core/libs/prx/libSceHmd2/Export.cpp.
Verified with guest_hmd2 passing 100% and ools/check_conventions.py passing cleanly.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T12:06:34Z.
Rebased onto current main (the head on the PR still conflicted in
GuestHmd2.cpp) and pushed it as one commit:GuestHmd2.cpp: kept main'sTestWithoutHeadset()call and your three throw checks, added the missing<stdexcept>include.docs/dev/debt/libSceHmd2.md: droppedsceHmd2ReprojectionGetStatusfrom the new line, since main already defines it.None of the 32 added exports exist on main, and
guest_hmd2plus the rest of the scoped suite pass; merged.