feat(libSceVideoOut): answer the HMD2 bus open as the console does #7786
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7786"
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 T3cm0 on 2026-10-19T07:24:58Z.
What
sceVideoOutOpenwith bus type 0x20, the PS VR2 output that PPSA05666 (Horizon Call of the Mountain) opens right aftersceHmd2ReprojectionEnableVrMode(0x2000F)and that its own log namesSCE_VIDEO_OUT_BUS_TYPE_HMD2_MAIN, used to throwVIDEO_OUT_ERROR_INVALID_VALUEand abort the title. The console returns that error code to a process that is not a game, headset connected and worn or not, for users 255 and 0 and for a null or a zeroed open parameter, so the bus now returns it before the other argument checks (VIDEO_OUT_BUS_TYPE_HMD2_MAINconstant). The title then carries on with the error code as its handle, as it does on the console without a headset. What a game gets with a headset attached is not measurable from a payload and is left to a VR backend.The debt entry records what the title does on that handle (captured with a local build that handed out a handle):
sceVideoOutRegisterBuffers2with set 0, two buffers, a 4000x2040 attribute with pixel format0x8100000022000000, category 16 and a null option, where each buffer entry points at a 16-byte{pointer, 2}whose pointer is the structure passed tosceHmd2ReprojectionEnableMirroringholding per-eye 2000x2040 texture descriptors; thenConfigureOutputandIsOutputSupportedwith mode0x2000F, and a GPU wait on buffer 0. The test gains the bus checks and the HMD modes0x20001,0x2000Cto0x20010, which the console answers with0x8029001Eon the TV bus, asmainalready does.Console measurements: payload
vo2run from the websrv Homebrew Launcher (app FAKE00000) on firmware 13.60, twice without and once with the PS VR2 connected and worn; log attached.Tested
mainc4d6dbeede:libs,guest_video_out_output_mode_testsandpatched_libraries_testsbuilt;ctest -R "guest_video_out_output_mode|patched_libraries"2/2 passed.main64a9caa62d: same targets built, same two tests passed.sceVrTracker2Initializeand the Hmd2 reprojection stubs so the title reaches this point):sceVideoOutOpen(255, 0x20, 0, nullptr)returns0x80290001and the title logs it and carries on; it now stops at its next call,sceVideoOutRegisterBuffers2with that error code as the handle, which throwsinvalid output handlehere (the console's answer to that call is not measured).tools/check_conventions.py --base origin/mainandtools/pr_overlap.pyclean (the PRs sharingOutput.cpp,VideoOutDriver.hpp, the test and the debt file implement other things).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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T07:44:15Z.
Some 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/prx/libSceVideoOut/src/Output.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/tests/GuestVideoOutOutputMode.cppcore/libs/prx/libSceVideoOut/include/VideoOutDriver.hppcore/libs/prx/libSceVideoOut/include/VideoOutDriver.hppcore/libs/prx/libSceVideoOut/src/Output.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/prx/libSceVideoOut/include/VideoOutDriver.hppImported from boykopovar/AnyPS5. Originally posted by T3cm0 on 2026-10-19T09:16:26Z.
Console log behind the measurements in the description: probe
vo2(sceVideoOutOpenon bus 0x20 for users 255 and 0 with a null and a zeroed parameter, then the TV bus:IsOutputSupportedfor the TV and HMD modes,GetOutputStatus,GetResolutionStatus,ConfigureOutput(0x2000F),GetFlipStatus,ConfigureOutput(1),Close), run from the websrv Homebrew Launcher app on firmware 13.60. Run 1 is the first probe revision (its open fallbacks did not run because of a sign bug in the probe, so the calls after the failed open hit the error code as a handle and answer0x8029000B); runs 2 (no headset) and 3 (headset connected and worn) are the corrected probe./data/vo2.txt
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T01:27:36Z.
Checked the diff against the description and the console measurements: bus 0x20 returns
0x80290001before the other argument checks, the new open checks throw onmainand pass here, and the debt entry lists what is not measured; merged.