feat(videoout): implement sceVideoOutDeleteOutputModeEvent #3305
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3305"
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 CouchRiv on 2026-10-11T06:45:48Z.
What
Titles that import
sceVideoOutDeleteOutputModeEvent(vwtVpHQKelI) stop at load onmainbecauselibSceVideoOutdoes not export it. #1794 lists the NID, without a name, among the unresolved imports. The name comes from the NID formula (tools/nid_names.py) and is also in the free ps5-payload-dev SDK.sceVideoOutAddOutputModeEventalready registers an output mode event on an event queue. This adds the matching removal, written likesceVideoOutDeleteFlipEventand the vblank deletes: it drops the registration for that queue and the kernel event filter. Deleting a registration that does not exist returns 0, and a null queue or an invalid handle throws.This does not get such a title past the loader on its own: the same report lists other unresolved imports, among them one in
libSceVideoOutwhose name is not known yet.Tested
Linux (CachyOS), GCC; RTX 4070 Ti (NVIDIA), Radeon 610M (RADV) and lavapipe (Mesa 26.2.4).
video_out_flip_controlsnow also checks that the unsubscription clears the registration, that a second delete returns 0, and that a null queue and an invalid handle throw. It needs a window: withSDL_VIDEODRIVER=offscreenctest skips it, so I ranvideo_out_flip_testsin all five modes withSDL_VIDEODRIVER=x11on a desktop session with NVIDIA: all pass. On RADV the swapchain cannot be created on that desktop (vkCreateSwapchainKHRfails in every mode, also for tests this PR does not touch), so RADV is not covered for this test.guest_video_out_output_mode,guest_video_out_wqhd_detectionandguest_video_out_resolution_status: pass on NVIDIA and lavapipe.nm -Don the built libSceVideoOut shows the exportvwtVpHQKelI.python3 tools/check_conventions.py --base origin/mainpasses.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-11T06:46:07Z.
Progress report (
1690db9→b6cc4fe)➖ System libraries: 85.96% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceVideoOutDeleteOutputModeEventImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:28:06Z.
Checked the diff against the sibling
sceVideoOutDelete*Eventexports (samedeleteVideoOutEventpath, SET_MODE list), the NID/name pair (vwtVpHQKelI) and overlap with open PRs (none). The new asserts invideo_out_flip_controlsneed a window, so they could not be run here; relying on the NVIDIA runs in the description. Merging once CI is green.Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:31:36Z.
Additional platform validation of standalone PR head
b6cc4fe7f9e3521dc4653fbc6f2a83ec4454d886(2026-10-11):Windows: partial: controls not run — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release,
BUILD_TESTING=ON.3 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.
Checks:
guest_video_out_wqhd_detection,guest_video_out_resolution_status,guest_video_out_output_mode.Command after building:
ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^(video_out_flip_controls|guest_video_out_(output_mode|wqhd_detection|resolution_status))$".Vulkan: native AMD Radeon RX 6900 XT, driver 32.0.21045.5002.
The three existing video-output checks ran and passed. video_out_flip_controls was Not Run because my validation runner omitted the shared video_out_flip_tests target. The PR merged before the corrected rerun, so I left it alone; the new deletion assertions have no Windows execution result from this run.
No title/gameplay validation. These results cover the standalone head, not a merge with current main.