fix(libSceVideoOut): sceVideoOutVrrPegToFixedRate and sceVideoOutVrrUnpegFromFixedRate return VIDEO_OUT_ERROR_INVALID_HANDLE for handle -1 #18806
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18806"
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-12T10:57:46Z.
What
sceVideoOutVrrPegToFixedRateandsceVideoOutVrrUnpegFromFixedRatethrew for the handle -1. On a PS5 (firmware 11.60, payload process) both return 0x8029000b for it, the peg with 0 and 0 as the other two arguments (cases 1.1 and 1.2, lines 4 and 5 of the raw output). This returnsVIDEO_OUT_ERROR_INVALID_HANDLEfor -1 from both, without looking at the other arguments. A handle that is not -1 and not open, and non-zero peg arguments, were not measured and still throw, as before.For an open handle (the process opened the main bus itself) the console returned 0x8029001c in all seven cases tried: unpeg without a peg, peg, unpeg after it, peg twice, unpeg after two pegs and unpeg again (cases 3.1 to 3.7, lines 7, 9, 10, 12, 14, 15 and 16). The process printed
System processes should use sceVideoOutSysSetDrrPeg() insteadthree times (lines 8, 11 and 13); the order of the output does not show which call printed it. That is the result of a payload process, which is not a title process, so it is not modelled and the calls still return 0 for an open handle. The entry for the two functions indocs/dev/debt/libSceVideoOut.mdstates both results. The test now checks both calls with -1. No title is shown to pass -1: PPSA05684 passes the handle to both calls and ignores the results, and what value it passes was not read here.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 2026-11-12 at 07:55 UTC. A title process may differ. The cases are 1.1, 1.2 and 3.1 to 3.7, lines 4, 5, 7, 9, 10, 12, 14, 15 and 16 of the raw output in the first comment.mainbeforesceVideoOutVrrPegToFixedRate(-1, 0, 0)sceVideoOutVrrUnpegFromFixedRate(-1)The test commit comes first and fails on its own, the fix commit second. The two new checks are in
video_out_flip_controlsofvideo_out_flip_tests. On Windows (WinLibs GCC, Release), each commit was built onmain3b7f31fa70and the 28video_out_flip*tests run once, with thelibSceVideoOut.prxof that build: with only the test commit 27 of 28 pass andvideo_out_flip_controlsfails, with the fix 28 of 28 pass. Both logs showSelected GPU name=NVIDIA GeForce RTX 4080 SUPER.tools/check_conventions.py --base upstream/mainreports no error on the fix commit and onedebt-lengthwarning for the changed entry (1160 characters, up from 643). The probe source and its raw output are in the first comment. Not tested: Linux, macOS, the CI runner, a title process, any other firmware, and the cases listed above as not measured.Overlap: the 22 other open pull requests that change
Output.cpp,Flip.cpp(libSceVideoOut tests) ordocs/dev/debt/libSceVideoOut.md(found by reading the changed files of all 1757 open pull requests) were checked on 2026-11-12 at about 10:00 UTC againstmain3b7f31fa70; the branch merges into it without a conflict. 12 of them already conflict withmainwithout this change and still conflict with it (#4040, #12315, #14106, #14212, #17259, #17347, #17596, #17597, #17625, #17910, #17914, #18308); the other 10 merge cleanly with and without it. None conflicts only with this change.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)Selected GPUline of the test log), Windows 10 Pro; the driver version is not in that logAI-assisted (Claude Code).
🤖 Generated with Claude Code