fix(libSceVideoOut): answer output mode 18 with 0x8029001E #17910

Merged
xXPBSXx merged 5 commits from upstream-pr/17910 into main 2026-11-15 20:16:02 +00:00
xXPBSXx commented 2026-11-09 21:51:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-09T21:51:36Z.


What

sceVideoOutIsOutputSupported (and so sceVideoOutConfigureOutput) threw for output mode 18 (0x12) because one console had answered 0x80290016 and two others 0x8029001E. A PS5 on firmware 11.60 now also returns 0x8029001E for mode 18, so the library returns VIDEO_OUT_ERROR_UNKNOWN_OUTPUT_MODE (0x8029001E) for it, as it does for the other values that are not modes. The debt entry for sceVideoOutIsOutputSupported (docs/dev/debt/libSceVideoOut.md) said "Mode 18 throws, because one console answered 0x80290016 and two others 0x8029001E"; it now says that mode 18 returns 0x8029001E on the 13.40 title measurement and on the 11.60 payload measurement, and that one other console answered 0x80290016. No title is known to call it with mode 18.

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 a handle from sceVideoOutOpen(0xff, 0, 0, NULL) with NULL options, NULL reserved pointer and reserved 0, on 2026-11-09 at 12:54 UTC; the console's own clock read about 1 h 41 min more (see the first comment). A title process may differ. Modes 0 to 20 returned: mode 1 -> 1, mode 15 -> 0 (on the attached display), 0x80290016 for 4, 7, 8, 12, 13, 14, 16, 17 and 19, and 0x8029001E for 0, 2, 3, 5, 6, 9, 10, 11, 18 and 20.

sceVideoOutIsOutputSupported(handle, 18, NULL, NULL, 0) result
PS5, payload process, firmware 11.60 0x8029001E
main before throws std::runtime_error
here now 0x8029001E

The test video_out_output_mode_policy expects the 0x8029001E answer for mode 18. On Ubuntu 24.04 under WSL2 with GCC 13.3.0 and an AddressSanitizer build (ASAN_OPTIONS=detect_leaks=0), on main 364ceeba2f the test commit alone aborts with the exception and with the fix commit on the same main it passes. guest_video_out_output_mode has the same expectation: on Windows 10 Pro with MinGW GCC (WinLibs), a Release build, ANYPS5_REQUIRE_VULKAN=1 and a shader cache off, it fails with the test commit alone and passes with the fix commit. The runs used no Vulkan validation layer, because the changed code returns an error code before any Vulkan call. tools/check_conventions.py --base upstream/main reports no error; its length warning for this debt entry (over 1000 characters) already applies on main.

Overlap: the 26 other open pull requests that change docs/dev/debt/libSceVideoOut.md, Output.cpp, OutputModePolicy.cpp or GuestVideoOutOutputMode.cpp (listed by update time) were checked on 2026-11-09 between 18:30 UTC and 18:38 UTC against main 930a0c8b76. Four already conflict with main without this change (#4040 and #14212 in the debt file, #12315 and #5021 in other files). #14106 (validate open parameters and resolution status outputs, a different author) and #17696 (the Delete*Event entries of this account) conflict in the debt file only with this change, because both edit entries on the lines right next to the sceVideoOutIsOutputSupported entry; neither edits that entry, and whichever merges second needs a small rebase. The other twenty merge cleanly with and without this change, among them #17812, #17763 and #16584.

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: NVIDIA GeForce RTX 4080 SUPER, Windows driver version 32.0.16.1074, Windows 10 Pro
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5231785585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17910). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-09T21:51:36Z. --- ### What `sceVideoOutIsOutputSupported` (and so `sceVideoOutConfigureOutput`) threw for output mode 18 (0x12) because one console had answered 0x80290016 and two others 0x8029001E. A PS5 on firmware 11.60 now also returns 0x8029001E for mode 18, so the library returns `VIDEO_OUT_ERROR_UNKNOWN_OUTPUT_MODE` (0x8029001E) for it, as it does for the other values that are not modes. The debt entry for `sceVideoOutIsOutputSupported` (docs/dev/debt/libSceVideoOut.md) said "Mode 18 throws, because one console answered 0x80290016 and two others 0x8029001E"; it now says that mode 18 returns 0x8029001E on the 13.40 title measurement and on the 11.60 payload measurement, and that one other console answered 0x80290016. No title is known to call it with mode 18. ### 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 a handle from `sceVideoOutOpen(0xff, 0, 0, NULL)` with NULL options, NULL reserved pointer and reserved 0, on 2026-11-09 at 12:54 UTC; the console's own clock read about 1 h 41 min more (see the first comment). A title process may differ. Modes 0 to 20 returned: mode 1 -> 1, mode 15 -> 0 (on the attached display), 0x80290016 for 4, 7, 8, 12, 13, 14, 16, 17 and 19, and 0x8029001E for 0, 2, 3, 5, 6, 9, 10, 11, 18 and 20. | `sceVideoOutIsOutputSupported(handle, 18, NULL, NULL, 0)` | result | |---|---| | PS5, payload process, firmware 11.60 | `0x8029001E` | | `main` before | throws `std::runtime_error` | | here now | `0x8029001E` | The test `video_out_output_mode_policy` expects the 0x8029001E answer for mode 18. On Ubuntu 24.04 under WSL2 with GCC 13.3.0 and an AddressSanitizer build (`ASAN_OPTIONS=detect_leaks=0`), on `main` `364ceeba2f` the test commit alone aborts with the exception and with the fix commit on the same `main` it passes. `guest_video_out_output_mode` has the same expectation: on Windows 10 Pro with MinGW GCC (WinLibs), a Release build, `ANYPS5_REQUIRE_VULKAN=1` and a shader cache off, it fails with the test commit alone and passes with the fix commit. The runs used no Vulkan validation layer, because the changed code returns an error code before any Vulkan call. `tools/check_conventions.py --base upstream/main` reports no error; its length warning for this debt entry (over 1000 characters) already applies on `main`. Overlap: the 26 other open pull requests that change `docs/dev/debt/libSceVideoOut.md`, `Output.cpp`, `OutputModePolicy.cpp` or `GuestVideoOutOutputMode.cpp` (listed by update time) were checked on 2026-11-09 between 18:30 UTC and 18:38 UTC against `main` `930a0c8b76`. Four already conflict with `main` without this change (#4040 and #14212 in the debt file, #12315 and #5021 in other files). #14106 (validate open parameters and resolution status outputs, a different author) and #17696 (the Delete*Event entries of this account) conflict in the debt file only with this change, because both edit entries on the lines right next to the `sceVideoOutIsOutputSupported` entry; neither edits that entry, and whichever merges second needs a small rebase. The other twenty merge cleanly with and without this change, among them #17812, #17763 and #16584. ### 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: NVIDIA GeForce RTX 4080 SUPER, Windows driver version 32.0.16.1074, Windows 10 Pro <!-- 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)
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!17910
No description provided.