fix(libSceVideoOut): answer output mode 18 with 0x8029001E #17910
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17910"
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 xXPBSXx on 2026-11-09T21:51:36Z.
What
sceVideoOutIsOutputSupported(and sosceVideoOutConfigureOutput) threw for output mode 18 (0x12) because one console had answered 0x80290016 and two others 0x8029001E. A PS5 on firmware 11.60 now also returns 0x8029001E for mode 18, so the library returnsVIDEO_OUT_ERROR_UNKNOWN_OUTPUT_MODE(0x8029001E) for it, as it does for the other values that are not modes. The debt entry forsceVideoOutIsOutputSupported(docs/dev/debt/libSceVideoOut.md) said "Mode 18 throws, because one console answered 0x80290016 and two others 0x8029001E"; it now says that mode 18 returns 0x8029001E on the 13.40 title measurement and on the 11.60 payload measurement, and that one other console answered 0x80290016. No title is known to call it with mode 18.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on a handle fromsceVideoOutOpen(0xff, 0, 0, NULL)with NULL options, NULL reserved pointer and reserved 0, on 2026-11-09 at 12:54 UTC; the console's own clock read about 1 h 41 min more (see the first comment). A title process may differ. Modes 0 to 20 returned: mode 1 -> 1, mode 15 -> 0 (on the attached display), 0x80290016 for 4, 7, 8, 12, 13, 14, 16, 17 and 19, and 0x8029001E for 0, 2, 3, 5, 6, 9, 10, 11, 18 and 20.sceVideoOutIsOutputSupported(handle, 18, NULL, NULL, 0)0x8029001Emainbeforestd::runtime_error0x8029001EThe test
video_out_output_mode_policyexpects the 0x8029001E answer for mode 18. On Ubuntu 24.04 under WSL2 with GCC 13.3.0 and an AddressSanitizer build (ASAN_OPTIONS=detect_leaks=0), onmain364ceeba2fthe test commit alone aborts with the exception and with the fix commit on the samemainit passes.guest_video_out_output_modehas the same expectation: on Windows 10 Pro with MinGW GCC (WinLibs), a Release build,ANYPS5_REQUIRE_VULKAN=1and a shader cache off, it fails with the test commit alone and passes with the fix commit. The runs used no Vulkan validation layer, because the changed code returns an error code before any Vulkan call.tools/check_conventions.py --base upstream/mainreports no error; its length warning for this debt entry (over 1000 characters) already applies onmain.Overlap: the 26 other open pull requests that change
docs/dev/debt/libSceVideoOut.md,Output.cpp,OutputModePolicy.cpporGuestVideoOutOutputMode.cpp(listed by update time) were checked on 2026-11-09 between 18:30 UTC and 18:38 UTC againstmain930a0c8b76. Four already conflict withmainwithout this change (#4040 and #14212 in the debt file, #12315 and #5021 in other files). #14106 (validate open parameters and resolution status outputs, a different author) and #17696 (the Delete*Event entries of this account) conflict in the debt file only with this change, because both edit entries on the lines right next to thesceVideoOutIsOutputSupportedentry; neither edits that entry, and whichever merges second needs a small rebase. The other twenty merge cleanly with and without this change, among them #17812, #17763 and #16584.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code