feat(videoout): implement sceVideoOutGetCurrentOutputMode_ and sceVideoOutGetHdmiRawEdid_ #7259
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7259"
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 adhimiw on 2026-10-17T20:05:35Z.
What
Implement
sceVideoOutGetCurrentOutputMode_(NIDW0iQAbGaTBg) andsceVideoOutGetHdmiRawEdid_(NID+sXvR1JH9Aw) inlibSceVideoOut.sceVideoOutGetCurrentOutputMode_: takes the AvSetting bus ID (0x7000) or 0, queries the active display configuration, and writes the 32-byteOutputModestructure with the resolution and refresh rate. Non-bus handles return0x80290018.sceVideoOutGetHdmiRawEdid_: validates destination pointer and buffer size, clearing the buffer and reporting 0 EDID blocks when raw HDMI sink descriptors are not exposed.Tested
python3 tools/check_conventions.py --base origin/mainpasses with zero errors.python3 tools/pr_overlap.py --branch feat/videoout-output-mode-and-edidcompletes with no conflicting export implementations.+sXvR1JH9AwandW0iQAbGaTBg; after this change, all 430 unique imports resolve (0 absent), eboot relinks cleanly, launches and presents live at 1920x1080@60Hz via Wayland with working input, audio, and React UI.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T20:34:29Z.
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/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.hppdocs/dev/debt/libSceVideoOut.mdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T21:39:55Z.
Full CI on
90959a23f(merged into main) fails only the newvideo_out_output_mode_policytest, on both lanes:The cause is the two success queries the PR adds to
tests/OutputModePolicy.cpp:sceVideoOutGetCurrentOutputMode_(0x7000, &testMode)and(0, &testMode). Both reachVideoOutDriver::Get(), and its constructor initialises SDL video and reads the title's metadata (VideoOutDriver.cpp:271-280). Until now this test only calledValidateVideoOutOutputMode_nid_no_patch, which needs neither. That's why it's registered as a plain unit test, withoutSKIP_RETURN_CODE 77,RESOURCE_LOCK videoout_app0or an app0 environment. On a headless runner the constructor throws (Linux), and on Windows it finds noparam.json.Suggested fix (tests only):
OutputModePolicy.cpp. They return beforeVideoOutDriver::Get(), so they stay plain unit checks.core/libs/tests/GuestVideoOutOutputMode.cpp, aftersceVideoOutOpen(SYSTEM_USER, MAIN_BUS, 0, nullptr). That test already sets upVideoOutTestEnvironment, skips with 77 when there is no display (unlessANYPS5_REQUIRE_DISPLAYis set), and is registered withSKIP_RETURN_CODE 77 RESOURCE_LOCK videoout_app0. There you can also check the result against the opened handle's configured resolution instead of accepting either0x0bor0x0c.Optional, while you're there:
0x80290018(invalid bus) and the resolution codes0x09/0x0b/0x0c/0x0fcome from? A named constant or a reference would help the next reader. They're a different set from the1/2thatoutputStatuswrites in the same file.GetConfig(VIDEO_OUT_BUS_TYPE_MAIN + 1)assumes the main bus is handle 1. Handles are given out from 1 in open order (VideoOutDriver.cpp:334), so a title that opens another bus first would get that bus's config. Looking up the open main-bus handle would avoid that.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T13:20:55Z.
Progress report (
922dc89→90959a2)➖ System libraries: 89.65% (+0.0%, +2 implemented functions)
✅ 2 implemented
sceVideoOutGetCurrentOutputMode_sceVideoOutGetHdmiRawEdid_Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T13:21:24Z.
Review: CHANGES_REQUESTED
Thanks. Open points:
OutputModePolicy.cpp(sceVideoOutGetCurrentOutputMode_(0x7000/0, &testMode)) fail the full CI on both lanes because they reachVideoOutDriver::Get(). Move them toGuestVideoOutOutputMode.cpp(display skip,RESOURCE_LOCK videoout_app0) and check against the opened handle's resolution.0x09/0x0b/0x0c/0x0f), the refresh values,0x80290018and the "success with zeroed EDID" behaviour come from (disassembly of the title's call site, a measurement), and name them as constants. Whatever is not backed by evidence should throw instead of returning a plausible value, with the TechnicalDebt line under the matching section.GetConfig(VIDEO_OUT_BUS_TYPE_MAIN + 1)assumes the main bus is handle 1 (see Dean's note); look up the open main-bus handle.Imported from boykopovar/AnyPS5. Originally posted by adhimiw on 2026-10-20T02:08:42Z.
Temporarily closed so a second pull request could be opened: this account has no pull request merged into
mainyet, and the intake bot allows only one open pull request per such author. The branch and the review history are untouched, so this pull request can be reopened as soon as the other one is merged or closed.Imported from boykopovar/AnyPS5. Originally posted by adhimiw on 2026-10-20T02:08:44Z.
Closed to free the account's single open pull request slot for #8107. See the comment above; reopening is a single click once the other pull request is merged or closed.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T02:13:10Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed