feat(libSceVideoOut): register the VRR status event and accept the VRR status call #1339
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1339"
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 gjonn on 2026-10-07T23:51:50Z.
What
Both NIDs of
libSceVideoOutVrrStatuswere throwing stubs (#518). A title calls both while it sets up video output:kP2L8t3j-aMis called without arguments right aftersceVideoOutSetFlipRate, and the result is ignored. It now returns 0 and does nothing, since the host output has no VRR state to report; it is listed under silent stubs.LibwuIonIBwis called as(equeue, handle, udata)directly aftersceVideoOutAddVblankEvent,sceVideoOutAddFlipEventandsceVideoOutAddOutputModeEventwith the same arguments, and the result is ignored. The title's video out event loop handles event ids 0, 1, 8 and 16; the id 16 handler re-reads the VRR bits ofsceVideoOutGetVblankStatusandsceVideoOutGetOutputStatus. It now registers a video out event with id 16 (VIDEO_OUT_EVENT_VRR_STATUS) through the same path as the other add-event functions, removes it on close, andsceVideoOutGetEventIdaccepts it. The event is never triggered because the host VRR state does not change.The names are still unknown, so the exports keep their
sceVideoOutUnknown00/01names; the TechnicalDebt entries now record what is known about their signatures.Tested
video_out_flip_tests controlspasses with new checks that the id 16 subscription is recorded, that waiting for a vblank does not deliver it, and thatsceVideoOutGetEventIdaccepts it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-07T23:52:11Z.
Progress report (
870ac04→04dec3d)📈 System libraries: 85.3% (+0.07%, +2 implemented, -2 removed functions)
✅ 2 implemented
sceVideoOutAddVrrActiveStatusEventsceVideoOutAddVrrStatusFlagsPrivilege🗑️ 2 removed
sceVideoOutUnknown00sceVideoOutUnknown01Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T09:38:33Z.
#1340 just landed and changes
libSceVideoOut/tests/Flip.cpptoo, so this needs a rebase onto main.Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-09T10:37:43Z.
Title evidence: Ratchet & Clank: Rift Apart (PPSA01474) calls
kP2L8t3j-aM.On
main43972e69(with its missing imports satisfied locally), the title stops about 9 s in, during video output setup:With this PR merged on top, it gets past that call, creates its swapchain and starts registering shaders. It stops later at about 19 s, on an unrelated crash in title code.
The only conflict with current
mainis inlibSceVideoOut/tests/Flip.cpp.Measured on Linux, RX 9070 XT. Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by tv7 on 2026-10-09T11:34:52Z.
Title evidence: Marvel's Wolverine (PPSA03671, v01.001.005) imports
kP2L8t3j-aM(notLibwuIonIBw).Windows 11, MinGW, RTX 3070,
maind70b89989(with its three missing unnamed imports satisfied locally). The title starts its job threads, opens its archives and creates the Vulkan device and swapchain, then stops in video output setup:With this PR merged on top, it gets past that call and stops later, in an unrelated shader recompile (
v_readlane_b32of lane 63 on the 32-lane host, the known limit in TechnicalDebt.md).As reported above, the only conflict with current
mainis inlibSceVideoOut/tests/Flip.cpp; I keptmain's version of that file for this run.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-09T11:55:28Z.
For naming: the two NIDs hash to names that appear in assert messages of Uncharted: Legacy of Thieves Collection (PPSA05684):
kP2L8t3j-aM=sceVideoOutAddVrrStatusFlagsPrivilege(called without arguments during device init; the title requiresSCE_VIDEO_OUT_OK)LibwuIonIBw=sceVideoOutAddVrrActiveStatusEvent(called with the equeue, handle and udata it givessceVideoOutAddVblankEvent; requiresSCE_VIDEO_OUT_OK)The title also calls
sceVideoOutVrrPegToFixedRate(handle, 0, 0)andsceVideoOutVrrUnpegFromFixedRate(handle), ignoring the results.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:21:35Z.
Rebased onto main (conflicts in
tests/Flip.cppandTechnicalDebt.md, both sides kept) and added from our side:kP2L8t3j-aM=sceVideoOutAddVrrStatusFlagsPrivilege,LibwuIonIBw=sceVideoOutAddVrrActiveStatusEvent. Both NIDs hash to these names.Checked: build and ctest on the rebased tree (only
patched_librariesfails, it cannot openlibkernel.prxhere), andvideo_out_flip_tests controlsrun by hand (it is not in ctest) passes. Title runs by @EdouardSence (PPSA01474, Linux) and @tv7 (PPSA03671, Windows) get past both calls. Merging once CI is green.