feat(videoout): implement sceVideoOutGetOutputStatusWithVrr #3972

Merged
13hourstilliland merged 1 commit from upstream-pr/3972 into main 2026-10-14 03:44:43 +00:00
13hourstilliland commented 2026-10-11 20:16:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 13hourstilliland on 2026-10-11T20:16:53Z.


What

Implements sceVideoOutGetOutputStatusWithVrr(int handle, void* status). It writes the 80-byte status described in #2746 (the sceVideoOutGetOutputStatus fields in bytes 0-47, then zeros), returns 0x80290002 for a null status and 0x8029000B for an unknown handle, and leaves the buffer unchanged on both. The global-flag (0x8029001C) and object-field (0x8029001B) checks and the offset-52 refresh override test console state AnyPS5 does not model; they are recorded in TechnicalDebt.

Ghost of Yōtei (PPSA26344) stops on this export on main (#2746). PRAGMATA (PPSA02530) stops on it too.

This carries ThatsLeo's commit e893efad from ThatsLeo/AnyPS5:feat/videoout-output-status-vrr, with their authorship kept, rebased onto current main. The only changes are the resolutions of two conflicts, in the test includes and in TechnicalDebt.

Tested

Debian 13 x86-64, GCC Release, software Vulkan (lavapipe) with SDL on X11. guest_video_out_resolution_status, guest_video_out_wqhd_detection and guest_video_out_output_mode pass (3/3). The new rows in guest_video_out_resolution_status abort with sceVideoOutGetOutputStatusWithVrr not implemented against main's VideoOut code. Not tested with a title here; on the original commit rohankmr414 (PPSA26344, Fedora 44) and xXPBSXx (PPSA02530, Windows) report the title passing this call (#2746).

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822027731 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-10-11T20:16:53Z. --- ### What Implements `sceVideoOutGetOutputStatusWithVrr(int handle, void* status)`. It writes the 80-byte status described in #2746 (the `sceVideoOutGetOutputStatus` fields in bytes 0-47, then zeros), returns `0x80290002` for a null `status` and `0x8029000B` for an unknown handle, and leaves the buffer unchanged on both. The global-flag (`0x8029001C`) and object-field (`0x8029001B`) checks and the offset-52 refresh override test console state AnyPS5 does not model; they are recorded in TechnicalDebt. Ghost of Yōtei (PPSA26344) stops on this export on main (#2746). PRAGMATA (PPSA02530) stops on it too. This carries ThatsLeo's commit e893efad from `ThatsLeo/AnyPS5:feat/videoout-output-status-vrr`, with their authorship kept, rebased onto current main. The only changes are the resolutions of two conflicts, in the test includes and in TechnicalDebt. ### Tested Debian 13 x86-64, GCC Release, software Vulkan (lavapipe) with SDL on X11. `guest_video_out_resolution_status`, `guest_video_out_wqhd_detection` and `guest_video_out_output_mode` pass (3/3). The new rows in `guest_video_out_resolution_status` abort with `sceVideoOutGetOutputStatusWithVrr not implemented` against main's VideoOut code. Not tested with a title here; on the original commit rohankmr414 (PPSA26344, Fedora 44) and xXPBSXx (PPSA02530, Windows) report the title passing this call (#2746). ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-11 20:17:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T20:17:17Z.


Progress report (a14ae8e → 9828710)

📈 System libraries: 88.22% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceVideoOut sceVideoOutGetOutputStatusWithVrr
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113290621 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972#issuecomment-6113290621). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T20:17:17Z. --- <!-- progress-report --> ### Progress report (a14ae8e → 9828710) 📈 **System libraries**: 88.22% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutGetOutputStatusWithVrr` | </details>
oneandonlydean commented 2026-10-13 07:39:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T07:39:39Z.


Needs a rebase: it conflicts with main in core/libs/prx/libSceVideoOut/Unimplemented.cpp and src/Output.cpp, and docs/dev/TechnicalDebt.md has moved to docs/dev/debt/<library>.md (tools/debt_split.py resolve moves the entries).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140734770 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972#issuecomment-6140734770). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T07:39:39Z. --- Needs a rebase: it conflicts with main in `core/libs/prx/libSceVideoOut/Unimplemented.cpp` and `src/Output.cpp`, and `docs/dev/TechnicalDebt.md` has moved to `docs/dev/debt/<library>.md` (`tools/debt_split.py resolve` moves the entries).
xXPBSXx commented 2026-10-14 03:28:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T03:28:42Z.


Title evidence for this PR (Windows 10, MinGW-w64 GCC 15.2.0): PPSA02530 stops on this function.

PPSA02530 converted with relinker --windows --registry --trace-imports from main a5f493f90 plus #4237 (so that the guest heap initialises; on plain main the title first crashes earlier in malloc, see the #4237 comment) runs its threads, opens /app0/natives/PS5/runtime.args and then ends with:

[libc] unhandled exception 'St13runtime_error' thrown from 00007ffd77de73f6
terminate called after throwing an instance of 'std::runtime_error'
  what():  sceVideoOutGetOutputStatusWithVrr not implemented

(log run_051605.err, lines 109-111). This PR replaces that throw, so it is the next stop for this title. The same stop is reached on main with --windows-fixed-base 0x400000000 (run_050831.err).

Not tested: this PR itself (its head does not merge cleanly any more: git merge-tree of 79fda74d0 against main a5f493f90 conflicts in core/libs/prx/libSceVideoOut/Unimplemented.cpp, core/libs/prx/libSceVideoOut/src/Output.cpp and docs/dev/TechnicalDebt.md).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160222787 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972#issuecomment-6160222787). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-14T03:28:42Z. --- Title evidence for this PR (Windows 10, MinGW-w64 GCC 15.2.0): PPSA02530 stops on this function. PPSA02530 converted with `relinker --windows --registry --trace-imports` from `main` `a5f493f90` plus #4237 (so that the guest heap initialises; on plain `main` the title first crashes earlier in `malloc`, see the #4237 comment) runs its threads, opens `/app0/natives/PS5/runtime.args` and then ends with: [libc] unhandled exception 'St13runtime_error' thrown from 00007ffd77de73f6 terminate called after throwing an instance of 'std::runtime_error' what(): sceVideoOutGetOutputStatusWithVrr not implemented (log `run_051605.err`, lines 109-111). This PR replaces that throw, so it is the next stop for this title. The same stop is reached on `main` with `--windows-fixed-base 0x400000000` (`run_050831.err`). Not tested: this PR itself (its head does not merge cleanly any more: `git merge-tree` of `79fda74d0` against `main` `a5f493f90` conflicts in `core/libs/prx/libSceVideoOut/Unimplemented.cpp`, `core/libs/prx/libSceVideoOut/src/Output.cpp` and `docs/dev/TechnicalDebt.md`). AI-assisted (Claude Code).
oneandonlydean commented 2026-10-14 03:39:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T03:39:32Z.


Rebased onto main and moved the debt entry to docs/dev/debt/libSceVideoOut.md; thanks @xXPBSXx for the PPSA02530 run. No other change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160346503 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972#issuecomment-6160346503). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T03:39:32Z. --- Rebased onto main and moved the debt entry to `docs/dev/debt/libSceVideoOut.md`; thanks @xXPBSXx for the PPSA02530 run. No other change.
github-actions[bot] commented 2026-10-14 03:42:38 +00:00 (Migrated from github.com)

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


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5608 core/libs/prx/libSceVideoOut/Unimplemented.cpp L20-24
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160381316 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3972#issuecomment-6160381316). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T03:42:38Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5608 | `core/libs/prx/libSceVideoOut/Unimplemented.cpp` [L20-24](https://github.com/boykopovar/AnyPS5/blob/a1ca1e7badfd652cf080bf9900dc523a12d5d82d/core/libs/prx/libSceVideoOut/Unimplemented.cpp#L20-L24) | | |
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!3972
No description provided.