feat(libSceVideoOut): implement sceVideoOutSetFlipMaster and sceVideoOutClearFlipMaster #4081
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4081"
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 screamm on 2026-10-11T22:53:15Z.
Summary
Implements
sceVideoOutSetFlipMaster(int slave, int master)(NIDWkYtyOg30do) andsceVideoOutClearFlipMaster(int slave)(NIDT0ynQY3mH-0), both absent until now. Offered first in #3762.src/graphics/presentation/videoOut.cpp:785-808(16a7fe68), theUNSUPPORTED_OPERATIONcode0x8029001Cfrom KytyPS5errno.h(fpPS4 agrees), the Clear signature from SharpProsperoVideoOut.cs(fact only, GPL-3.0).INVALID_HANDLE; the same handle twice, a slave that already has a master or slaves, or a master with its own masterUNSUPPORTED_OPERATION(new constant); a pending flip on either portRESOURCE_BUSY; otherwise Set records the tie (a master may have several slaves) and returns 0; Clear removes it; closing a slave drops its tie as Kyty does.Title evidence
Tomba! 2 (PPSA29866, #3646): "Eleven imports that no library exports: eight
sceHmd2Reprojection*,sceVrTracker2Finalize,sceVideoOutSetFlipMaster,sceVideoOutClearFlipMaster." Neither call ran in the 60 s run, so what the title needs back is unobserved; this makes the module load and records the tie exactly as the only public implementation does.Unverified on console (recorded in TechnicalDebt)
0x8029001Cis shared by Kyty and fpPS4.INVALID_FLIP_MODEfor modes 1 to 6.std::scoped_lock.Tests
New
video_out_flip_flipmastermode intests/Flip.cpp, registered in the existingforeach: invalid handles for all three arguments, Set(h, h), Clear without a master,RESOURCE_BUSYwhile a flip is pending, tying overlay to main, double and reverse ties, flips on a tied port and closing a tied master throwing, Clear followed by a completed flip, re-tie then closing the slave followed by a completed flip.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs: under ctest thevideo_out_flip_*tests skip on this host as they always do (the SDL offscreen driver has no Vulkan), sovideo_out_flip_flipmasterwas run against the real display (NVIDIA RTX 4070,ANYPS5_REQUIRE_DISPLAY=1,SDL_VIDEODRIVER=windows): passed 3/3, withoverlayandlifetimepassing once each;ctest -j8 -E "^agc_driver_|^video_out_flip"533/536 ona11c8f7f, the failures being the knownwindows_exceptions(#3411),guest_kernel_sys(#3510) andguest_filesystem(#3518), all since fixed onmain;tools/check_conventions.py --base mainandgit diff --checkpass; merges onto currentmainwithout conflicts. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated by me on Windows).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:02:09Z.
Progress report (
325e0a8→d33e2a4)📈 System libraries: 86.48% (+0.01%, +2 implemented functions)
✅ 2 implemented
sceVideoOutClearFlipMastersceVideoOutSetFlipMasterImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T20:53:34Z.
Review heads-up: I replayed the change locally to inspect its current-main conflicts (no push). At
c952c2b0e, the conflict resolution needed to keep bothunopenedandflipmastertest modes, preserve the newer high-frame-rate methods alongside the flip-master declarations, and move the debt entry intodocs/dev/debt/libSceVideoOut.mdafter the debt-file split. Conventions passed on that snapshot.mainhas advanced since to529f7bfd4, so please rebase against the current head; I did not run a real-display test.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:58:19Z.
Closing: #3819 exported
sceVideoOutSetFlipMasterandsceVideoOutClearFlipMasteron main as throwing stubs, so PPSA29866 loads past them, and no title is seen calling either (#3762); the tie rules here are KytyPS5's alone. Reopen with the log line when a title reaches the throw.Pull request closed