docs(libSceVideoOut): record what a PS5 payload process returned for Delete*Event and GetResolutionStatus #17696

Merged
xXPBSXx merged 1 commit from upstream-pr/17696 into main 2026-11-12 04:51:19 +00:00
xXPBSXx commented 2026-11-09 10:27:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-09T10:27:57Z.


What

docs/dev/debt/libSceVideoOut.md:18 (Delete*Event on a port that is not open) says:

what the console returns when sceVideoOutDeleteFlipEvent, sceVideoOutDeleteVblankEvent, sceVideoOutDeletePreVblankStartEvent, sceVideoOutDeleteOutputModeEvent or sceVideoOutDeleteVrrActiveStatusEvent gets a handle that was never opened or was closed is unmeasured, and no title is known to do it.

docs/dev/debt/libSceVideoOut.md:28 (sceVideoOutGetResolutionStatus) says:

... The 48-byte layout, from the declarations in ps5-opengl and EVO-PLAYER-PS5 (#1578), is confirmed there: full size and pane 3840 x 2160, refreshRate 3, flags 0 and the rest 0 on the title's handle, 0x8029000B for handles 0 to 8.

A PS5 now answers the first question: sceVideoOutDeleteFlipEvent, sceVideoOutDeleteVblankEvent, sceVideoOutDeletePreVblankStartEvent, sceVideoOutDeleteOutputModeEvent and sceVideoOutDeleteVrrActiveStatusEvent each returned 0x8029000B for the closed handle of the probe's own port, with a live event queue, which is what AnyPS5 returns (VIDEO_OUT_ERROR_INVALID_HANDLE, checked before the queue). A handle that was never opened is still unmeasured. For the second entry a payload process got the same values as the 13.40 title measurement from a freshly opened main bus: full size and pane 3840 x 2160, refreshRate 3, screenSizeInInch 60.0f and flags 0. Only the two entries change; no code.

Tested

Measured on a PS5 with firmware 11.60 (kernel_get_fw_version 0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-09 at 08:24 UTC (the console clock was about 1 h 41 min ahead), one run with 15 cases: sceVideoOutOpen(0xff, 0, 0, NULL), reads only, sceVideoOutClose on its own handle, then the five Delete calls with that closed handle and an equeue the probe created. A title process may differ. The probe source and its complete raw output are in the first comment. tools/check_conventions.py --base upstream/main passes.

Overlap: the 25 other pull requests that changed docs/dev/debt/libSceVideoOut.md (the earlier check of 05:05 UTC on 2026-11-07, plus all that changed it and were updated since) were checked on 2026-11-09 between 09:55 UTC and 10:07 UTC against main 5fd1c17032; four of them (#15247, #15452, #15653 and #15779) have been merged. Of the remaining 21, four already conflict with main without this change (#4040 and #14212 in that file, #12863 and #12315 in other files). #14106 (validate open parameters and resolution status outputs, a different author) conflicts in that file only with this change, because it rewrites the sceVideoOutGetResolutionStatus entry that this change also edits; whichever merges second needs a small rebase. The other sixteen merge cleanly with and without this change, among them #16584, the vblank status change of this account.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (docs change)
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5222400031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17696). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-09T10:27:57Z. --- ### What `docs/dev/debt/libSceVideoOut.md:18` (`Delete*Event on a port that is not open`) says: > what the console returns when `sceVideoOutDeleteFlipEvent`, `sceVideoOutDeleteVblankEvent`, `sceVideoOutDeletePreVblankStartEvent`, `sceVideoOutDeleteOutputModeEvent` or `sceVideoOutDeleteVrrActiveStatusEvent` gets a handle that was never opened or was closed is unmeasured, and no title is known to do it. `docs/dev/debt/libSceVideoOut.md:28` (`sceVideoOutGetResolutionStatus`) says: > ... The 48-byte layout, from the declarations in ps5-opengl and EVO-PLAYER-PS5 (#1578), is confirmed there: full size and pane 3840 x 2160, `refreshRate` 3, `flags` 0 and the rest 0 on the title's handle, 0x8029000B for handles 0 to 8. A PS5 now answers the first question: `sceVideoOutDeleteFlipEvent`, `sceVideoOutDeleteVblankEvent`, `sceVideoOutDeletePreVblankStartEvent`, `sceVideoOutDeleteOutputModeEvent` and `sceVideoOutDeleteVrrActiveStatusEvent` each returned `0x8029000B` for the closed handle of the probe's own port, with a live event queue, which is what AnyPS5 returns (`VIDEO_OUT_ERROR_INVALID_HANDLE`, checked before the queue). A handle that was never opened is still unmeasured. For the second entry a payload process got the same values as the 13.40 title measurement from a freshly opened main bus: full size and pane 3840 x 2160, `refreshRate` 3, `screenSizeInInch` 60.0f and `flags` 0. Only the two entries change; no code. ### Tested Measured on a PS5 with firmware 11.60 (`kernel_get_fw_version` 0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-09 at 08:24 UTC (the console clock was about 1 h 41 min ahead), one run with 15 cases: `sceVideoOutOpen(0xff, 0, 0, NULL)`, reads only, `sceVideoOutClose` on its own handle, then the five Delete calls with that closed handle and an equeue the probe created. A title process may differ. The probe source and its complete raw output are in the first comment. `tools/check_conventions.py --base upstream/main` passes. Overlap: the 25 other pull requests that changed `docs/dev/debt/libSceVideoOut.md` (the earlier check of 05:05 UTC on 2026-11-07, plus all that changed it and were updated since) were checked on 2026-11-09 between 09:55 UTC and 10:07 UTC against `main` `5fd1c17032`; four of them (#15247, #15452, #15653 and #15779) have been merged. Of the remaining 21, four already conflict with `main` without this change (#4040 and #14212 in that file, #12863 and #12315 in other files). #14106 (validate open parameters and resolution status outputs, a different author) conflicts in that file only with this change, because it rewrites the `sceVideoOutGetResolutionStatus` entry that this change also edits; whichever merges second needs a small rebase. The other sixteen merge cleanly with and without this change, among them #16584, the vblank status change of this account. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a (docs change) <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-10 17:49:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:23Z.

Review: COMMENTED


Read c19788592b against main.

Correctness. Both entries are unchanged on main (docs/dev/debt/libSceVideoOut.md:18 and :28). The code returns what the new text says the console returned: Event.cpp:deleteVideoOutEvent (line 90) checks HasConfig(handle) before the event queue and returns VIDEO_OUT_ERROR_INVALID_HANDLE, and VideoOutDriver.cpp:HasConfig returns false once close has set opened = false / closing = true, so a closed handle with a live queue gives 0x8029000B for all five Delete*Event calls. Output.cpp:sceVideoOutGetResolutionStatus (lines 283-288) sets full size and pane to the configured size and refreshRate to the 59.94 Hz code (3), with screenSizeInInch and flags left 0, which the entry already says differs only for screenSizeInInch. The never-opened-handle gap is correctly kept. The console results are not checkable here. No conflict with #16584 or #17615, which edit other lines of the same file.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846657753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17696#pullrequestreview-5846657753). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:49:23Z. **Review:** COMMENTED --- Read `c19788592b` against `main`. **Correctness.** Both entries are unchanged on `main` (docs/dev/debt/libSceVideoOut.md:18 and :28). The code returns what the new text says the console returned: `Event.cpp:deleteVideoOutEvent` (line 90) checks `HasConfig(handle)` before the event queue and returns `VIDEO_OUT_ERROR_INVALID_HANDLE`, and `VideoOutDriver.cpp:HasConfig` returns false once `close` has set `opened = false` / `closing = true`, so a closed handle with a live queue gives 0x8029000B for all five `Delete*Event` calls. `Output.cpp:sceVideoOutGetResolutionStatus` (lines 283-288) sets full size and pane to the configured size and `refreshRate` to the 59.94 Hz code (3), with `screenSizeInInch` and `flags` left 0, which the entry already says differs only for `screenSizeInInch`. The never-opened-handle gap is correctly kept. The console results are not checkable here. No conflict with #16584 or #17615, which edit other lines of the same file. Not run here; this is from reading the code. AI-assisted: yes.
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!17696
No description provided.