refactor(prx): name the VideoOut SysCursor stubs the NID database resolves #15779

Merged
ItsJustChrisE merged 1 commit from upstream-pr/15779 into main 2026-11-07 22:59:23 +00:00
ItsJustChrisE commented 2026-11-04 14:26:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-04T14:26:35Z.


What

Names 6 of the 7 videoOutLegacyUnknown_* exports in libSceVideoOut/InventoryExports.cpp that tools/nid_names.py resolves through its pinned aerolib database (status rename-ready): sceVideoOutSysCursorDisable, sceVideoOutSysCursorEnable, sceVideoOutSysCursorIsUpdatePending, sceVideoOutSysCursorObtain, sceVideoOutSysCursorRelease and sceVideoOutSysCursorSetPosition, as #14884 and #15678 did for other libraries. Like the other sceVideoOutSys* exports in this file they use the plain name, and they are declared once in include/InventoryExports.hpp. sceVideoOutSysCursorSetSize, already in LaterExports.hpp, is a separate export and unchanged.

Every body still throws through NotImplemented_nid_no_patch, and the library exports the same NIDs as on main. A title that reaches one now fails with the function's name instead of the placeholder's. The seventh placeholder, NID spvjek0G4es, resolves to no name and stays as it is. The Older callable NIDs debt entry is cut to that one unnamed NID and names the six.

Tested

Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, main b11c7bf84f. No title or homebrew run.

  • compute_nid(name) == nid for all 6.
  • nm -D on the patched libSceVideoOut.prx of main and this branch, ignoring the removed _nid_no_patch helper names: identical NID sets (1433); the placeholder helpers drop from 57 to 51.
  • ctest -R 'public_headers|patched_librar|video_out|videoout': all passed.
  • ctest --test-dir build -R video_out -V on main and on this branch, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11 (WSLg display; the default offscreen driver has no Vulkan, so the flip tests skip): 45 of 46 passed on both, guest_video_out_high_frame_rate skipped on both. Neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and neither contains a VUID- validation error.
  • tools/check_conventions.py --base origin/main: passed.
  • tools/pr_overlap.py --branch: 1853 open pull requests probed, no shared lines or exports. #4040, #6977, #9673, #9676, #13486, #13994 and #14212 already conflict with main, so the tool could not compare them. Test-merging each of them into main and into this branch gives the same conflicting files, so this branch adds no conflict for them.
  • Not run: Windows, the wider test suite.

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: Mesa llvmpipe (LLVM 21.1.8), Ubuntu 26.04 on WSL2 (kernel 6.18.33)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5155938259 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15779). Originally posted by [ItsJustChrisE](https://github.com/ItsJustChrisE) on 2026-11-04T14:26:35Z. --- ### What Names 6 of the 7 `videoOutLegacyUnknown_*` exports in `libSceVideoOut/InventoryExports.cpp` that `tools/nid_names.py` resolves through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) (status `rename-ready`): `sceVideoOutSysCursorDisable`, `sceVideoOutSysCursorEnable`, `sceVideoOutSysCursorIsUpdatePending`, `sceVideoOutSysCursorObtain`, `sceVideoOutSysCursorRelease` and `sceVideoOutSysCursorSetPosition`, as #14884 and #15678 did for other libraries. Like the other `sceVideoOutSys*` exports in this file they use the plain name, and they are declared once in `include/InventoryExports.hpp`. `sceVideoOutSysCursorSetSize`, already in `LaterExports.hpp`, is a separate export and unchanged. Every body still throws through `NotImplemented_nid_no_patch`, and the library exports the same NIDs as on `main`. A title that reaches one now fails with the function's name instead of the placeholder's. The seventh placeholder, NID `spvjek0G4es`, resolves to no name and stays as it is. The Older callable NIDs debt entry is cut to that one unnamed NID and names the six. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, `main` `b11c7bf84f`. No title or homebrew run. - `compute_nid(name) == nid` for all 6. - `nm -D` on the patched `libSceVideoOut.prx` of `main` and this branch, ignoring the removed `_nid_no_patch` helper names: identical NID sets (1433); the placeholder helpers drop from 57 to 51. - `ctest -R 'public_headers|patched_librar|video_out|videoout'`: all passed. - `ctest --test-dir build -R video_out -V` on `main` and on this branch, with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `-DANYPS5_VIDEO_OUT_TEST_DRIVER=x11` (WSLg display; the default `offscreen` driver has no Vulkan, so the flip tests skip): 45 of 46 passed on both, `guest_video_out_high_frame_rate` skipped on both. Neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`, and neither contains a `VUID-` validation error. - `tools/check_conventions.py --base origin/main`: passed. - `tools/pr_overlap.py --branch`: 1853 open pull requests probed, no shared lines or exports. #4040, #6977, #9673, #9676, #13486, #13994 and #14212 already conflict with `main`, so the tool could not compare them. Test-merging each of them into `main` and into this branch gives the same conflicting files, so this branch adds no conflict for them. - Not run: Windows, the wider test suite. ### 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: none - [x] GPUs tested: Mesa llvmpipe (LLVM 21.1.8), Ubuntu 26.04 on WSL2 (kernel 6.18.33) - [x] AI-assisted: yes 🤖 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!15779
No description provided.