feat(libSceVideoOut): implement sceVideoOutDeleteVrrActiveStatusEvent #4902

Merged
nicolasfalesy merged 1 commit from upstream-pr/4902 into main 2026-10-13 08:29:26 +00:00
nicolasfalesy commented 2026-10-13 03:05:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nicolasfalesy on 2026-10-13T03:05:22Z.


What

Names and implements the libSceVideoOut NID -q-vbO859Tw, declared as sceVideoOutUnknown_q_vbO859Tw for PPSA02530 (#3799). sceVideoOutDeleteVrrActiveStatusEvent hashes to it (listed in sce_symbols aerolib.csv at fe2cc2948e; the copy pinned in tools/nid_names.py predates it).

It is the counterpart of sceVideoOutAddVrrActiveStatusEvent: sceVideoOutDeleteVrrActiveStatusEvent(eq, handle) goes through the same deleteVideoOutEvent path as the other Delete*Event calls, removing the handle's VRR status registration and the queue's event; an unknown handle or queue throws as they do. The signature and behaviour are inferred from the Add call and the other Delete calls, not observed in a title, which is recorded in the libSceVideoOut debt file; PPSA02530's entry in the libSceAcm debt file no longer lists it.

Tested

Linux (Arch, kernel 7.2.5, GCC 16.2.1, Release, Intel Xe on Mesa 26.2.2), on main c13dc7e6b:

  • video_out_flip_tests controls with a display: passes 5/5 (it skips without a display or Vulkan device). The added checks unsubscribe, check the registration list is empty, unsubscribe again (returns 0, as for the output mode event) and expect a null queue and an invalid handle to throw. With the function body replaced by return 0 the test fails with VRR status unsubscription did not clear registration.
  • nm -D on the built libSceVideoOut.prx shows the export -q-vbO859Tw.
  • tools/check_conventions.py --base upstream/main passes; tools/pr_overlap.py reports no overlap.
  • Not tested on Windows or with a title.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4837755941 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4902). Originally posted by [nicolasfalesy](https://github.com/nicolasfalesy) on 2026-10-13T03:05:22Z. --- ### What Names and implements the libSceVideoOut NID `-q-vbO859Tw`, declared as `sceVideoOutUnknown_q_vbO859Tw` for PPSA02530 (#3799). `sceVideoOutDeleteVrrActiveStatusEvent` hashes to it (listed in [sce_symbols](https://github.com/zecoxao/sce_symbols) `aerolib.csv` at `fe2cc2948e`; the copy pinned in `tools/nid_names.py` predates it). It is the counterpart of `sceVideoOutAddVrrActiveStatusEvent`: `sceVideoOutDeleteVrrActiveStatusEvent(eq, handle)` goes through the same `deleteVideoOutEvent` path as the other `Delete*Event` calls, removing the handle's VRR status registration and the queue's event; an unknown handle or queue throws as they do. The signature and behaviour are inferred from the Add call and the other Delete calls, not observed in a title, which is recorded in the libSceVideoOut debt file; PPSA02530's entry in the libSceAcm debt file no longer lists it. ### Tested Linux (Arch, kernel 7.2.5, GCC 16.2.1, Release, Intel Xe on Mesa 26.2.2), on `main` c13dc7e6b: - `video_out_flip_tests controls` with a display: passes 5/5 (it skips without a display or Vulkan device). The added checks unsubscribe, check the registration list is empty, unsubscribe again (returns 0, as for the output mode event) and expect a null queue and an invalid handle to throw. With the function body replaced by `return 0` the test fails with `VRR status unsubscription did not clear registration`. - `nm -D` on the built `libSceVideoOut.prx` shows the export `-q-vbO859Tw`. - `tools/check_conventions.py --base upstream/main` passes; `tools/pr_overlap.py` reports no overlap. - Not tested on Windows or with a title. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-13 03:10:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T03:10:00Z.


Progress report (c13dc7e → 6f284b8)

📈 System libraries: 87.95% (+0.03%, +1 implemented, -1 removed functions)

✅ 1 implemented
Library Name
libSceVideoOut sceVideoOutDeleteVrrActiveStatusEvent
🗑️ 1 removed
Library Name
libSceVideoOut sceVideoOutUnknown_q_vbO859Tw
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137337182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4902#issuecomment-6137337182). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T03:10:00Z. --- <!-- progress-report --> ### Progress report (c13dc7e → 6f284b8) 📈 **System libraries**: 87.95% (+0.03%, +1 implemented, -1 removed functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutDeleteVrrActiveStatusEvent` | </details> <details> <summary>🗑️ 1 removed</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutUnknown_q_vbO859Tw` | </details>
xXPBSXx commented 2026-10-13 06:42:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T06:42:54Z.


Windows test: head 6f284b829 merged onto current main ea2bbefb2 (clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release, -j2: full build 0 errors; ctest with the filter video_out_flip: 6 tests, 0 failed, but 5 of them were skipped on this machine (video_out_flip_lifetime, _reopen, _controls, _overlay, _unopened), so only 1 actually ran; python tools/check_conventions.py --base upstream/main passed. I did not run the new tests against main without the change.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6139896809 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4902#issuecomment-6139896809). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-13T06:42:54Z. --- Windows test: head `6f284b829` merged onto current `main` `ea2bbefb2` (clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release, `-j2`: full build 0 errors; ctest with the filter `video_out_flip`: 6 tests, 0 failed, but 5 of them were skipped on this machine (video_out_flip_lifetime, _reopen, _controls, _overlay, _unopened), so only 1 actually ran; `python tools/check_conventions.py --base upstream/main` passed. I did not run the new tests against `main` without the change. AI-assisted (Claude Code).
adriadam10 commented 2026-10-13 08:29:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:29:22Z.


Checked on Linux with a display: video_out_flip_tests controls passes, the NID -q-vbO859Tw hashes from sceVideoOutDeleteVrrActiveStatusEvent and is exported by libSceVideoOut.prx, and the test no longer builds without the change. Debt entries are consistent and Windows build confirmed by @xXPBSXx; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141527025 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4902#issuecomment-6141527025). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T08:29:22Z. --- Checked on Linux with a display: `video_out_flip_tests controls` passes, the NID `-q-vbO859Tw` hashes from `sceVideoOutDeleteVrrActiveStatusEvent` and is exported by `libSceVideoOut.prx`, and the test no longer builds without the change. Debt entries are consistent and Windows build confirmed by @xXPBSXx; merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4902
No description provided.