feat(libSceVideoOut): export sceVideoOutCursorSet2xMagnify #13008

Merged
relativespace2K merged 1 commit from upstream-pr/13008 into main 2026-10-30 09:42:01 +00:00
relativespace2K commented 2026-10-29 21:07:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by relativespace2K on 2026-10-29T21:07:01Z.


What

libSceVideoOut did not export sceVideoOutCursorSet2xMagnify (Se-Zs6koGzk). PC5 (PPSA11018) imports it, so its converted executable stopped before any window appeared with GetLastError: 127.

The export validates the handle and the cursor index like sceVideoOutCursorDisable and sceVideoOutCursorSetPosition, then returns 0. No cursor image is drawn (CursorEnable and CursorSetImageAddress report not implemented for a real address), so a magnified cursor cannot be observed. The unmeasured behaviour is recorded under Silent stubs in docs/dev/debt/libSceVideoOut.md; the signature (handle, index, enable) is unverified.

Tested

  • Windows 11 IoT Enterprise LTSC 26100; WinLibs GCC 15.2.0 (ucrt/posix-seh) with CMake and Ninja.
  • video_out_flip_tests on main and on this branch, both with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer from Vulkan SDK 1.4.363.0): both pass, neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and neither contains a VUID- line.
  • The patched libSceVideoOut.prx exports sceVideoOutCursorSet2xMagnify as Se-Zs6koGzk.
  • PC5 (PPSA11018), converted with this build: before the change it exited before any window with error 127; now the launcher opens, the About screen renders, and screen changes follow pad input. Its launcher is event-driven: it presents one frame per screen change and shows FPS: 0.00 while idle.
  • GPU: AMD Radeon RX 6800 XT, driver 32.0.21045.16010, Windows 11 IoT Enterprise LTSC 26100.

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: PPSA11018
  • GPUs tested: AMD Radeon RX 6800 XT, driver 32.0.21045.16010, Windows 11 IoT Enterprise LTSC 26100
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5075539043 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13008). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-10-29T21:07:01Z. --- ### What `libSceVideoOut` did not export `sceVideoOutCursorSet2xMagnify` (`Se-Zs6koGzk`). PC5 (PPSA11018) imports it, so its converted executable stopped before any window appeared with `GetLastError: 127`. The export validates the handle and the cursor index like `sceVideoOutCursorDisable` and `sceVideoOutCursorSetPosition`, then returns 0. No cursor image is drawn (`CursorEnable` and `CursorSetImageAddress` report not implemented for a real address), so a magnified cursor cannot be observed. The unmeasured behaviour is recorded under Silent stubs in `docs/dev/debt/libSceVideoOut.md`; the signature `(handle, index, enable)` is unverified. ### Tested - Windows 11 IoT Enterprise LTSC 26100; WinLibs GCC 15.2.0 (ucrt/posix-seh) with CMake and Ninja. - `video_out_flip_tests` on `main` and on this branch, both with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (layer from Vulkan SDK 1.4.363.0): both pass, neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`, and neither contains a `VUID-` line. - The patched `libSceVideoOut.prx` exports `sceVideoOutCursorSet2xMagnify` as `Se-Zs6koGzk`. - PC5 (PPSA11018), converted with this build: before the change it exited before any window with error 127; now the launcher opens, the About screen renders, and screen changes follow pad input. Its launcher is event-driven: it presents one frame per screen change and shows `FPS: 0.00` while idle. - GPU: AMD Radeon RX 6800 XT, driver 32.0.21045.16010, Windows 11 IoT Enterprise LTSC 26100. ### 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 - [x] Fixes: none - [x] Unblocks: PPSA11018 - [x] GPUs tested: AMD Radeon RX 6800 XT, driver 32.0.21045.16010, Windows 11 IoT Enterprise LTSC 26100 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-29 21:42:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T21:42:37Z.

Review: APPROVED


Reviewed — looks good

The export is narrow, reuses the existing cursor handle/index guard, and the author reports that the importing title now launches and renders its launcher.

What I ran

Reviewed head 6a2c3e7d9981bf72f95fbda145e80808cc1822a2 against current upstream main 52f212ec053f917455f2f87674ddb708dcc545d8; the merge preview is clean. I inspected the export, its tests and the updated debt entry. No local build or GPU tests were run.

git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-13008-head
git diff --check refs/remotes/upstream/main...refs/review/pr-13008-head
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-13008-head

Results

Check Result
Merge preview Clean
Diff check Passed (no output)
Repository conventions Passed
Hosted Windows workflow Passed
video_out_flip_tests and PC5 behavior Author reports both main/change test runs passed with no Vulkan validation errors; launcher and About screen render on the stated Windows/Radeon setup

Sources

Not verified

I did not independently run the GPU tests or launch PC5. The cursor magnification flag's console behavior and exact signature remain explicitly unverified; the report confirms launcher rendering, not cursor magnification.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705373309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13008#pullrequestreview-5705373309). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T21:42:37Z. **Review:** APPROVED --- # Reviewed — looks good The export is narrow, reuses the existing cursor handle/index guard, and the author reports that the importing title now launches and renders its launcher. ## What I ran Reviewed head `6a2c3e7d9981bf72f95fbda145e80808cc1822a2` against current upstream `main` `52f212ec053f917455f2f87674ddb708dcc545d8`; the merge preview is clean. I inspected the export, its tests and the updated debt entry. No local build or GPU tests were run. ```sh git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-13008-head git diff --check refs/remotes/upstream/main...refs/review/pr-13008-head python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-13008-head ``` ## Results | Check | Result | |---|---| | Merge preview | Clean | | Diff check | Passed (no output) | | Repository conventions | Passed | | Hosted Windows workflow | Passed | | `video_out_flip_tests` and PC5 behavior | Author reports both main/change test runs passed with no Vulkan validation errors; launcher and About screen render on the stated Windows/Radeon setup | ## Sources - [Export and cursor validation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6a2c3e7d9981bf72f95fbda145e80808cc1822a2/core/libs/prx/libSceVideoOut/src/Output.cpp) - [Focused test additions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6a2c3e7d9981bf72f95fbda145e80808cc1822a2/core/libs/prx/libSceVideoOut/tests/Flip.cpp) - [Recorded unverified signature/effect at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6a2c3e7d9981bf72f95fbda145e80808cc1822a2/docs/dev/debt/libSceVideoOut.md) ## Not verified I did not independently run the GPU tests or launch PC5. The cursor magnification flag's console behavior and exact signature remain explicitly unverified; the report confirms launcher rendering, not cursor magnification.
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!13008
No description provided.