feat(libSceVideoOut): declare 8 more later callable exports #15452

Merged
B-Howell merged 1 commit from upstream-pr/15452 into main 2026-11-07 13:17:01 +00:00
B-Howell commented 2026-11-03 11:10:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-03T11:10:58Z.


What

Declare the 8 libSceVideoOut function exports found only in the 13.60-labelled image that #15347 left out because the pinned NID database has no name for them. They are throwing placeholders, so imports of them resolve and stop with an explicit diagnostic instead of failing at load. Two are declared by name and six by literal NID alias. Signatures and behavior are unverified and no VideoOut functionality is implemented; every entry calls NotImplemented_nid_no_patch.

  • Two names hash exactly to their NIDs with tools/nid_names.py --name, although neither is in the pinned database: sceVideoOutSysLatencyMeasureGetLatestLatency gives 4SZjpc4U1es, and sceVideoOutGetFlipStatusNative gives 5vYEm0vWPxA. The first is the Sys counterpart of sceVideoOutDebugLatencyMeasureGetLatestLatency (BTawastvk7s, #15347). The second is sceVideoOutGetFlipStatus (SbU3dwp80lQ) with the Native suffix that sceVideoOutSysOpenVrNative and sceVideoOutSysModeIsVrNative use. They are declared like #15347's names: parameterless int functions whose names give the NIDs.
  • The other six have no known name. tools/nid_names.py resolves none of them. None matched when hashing these candidates: every symbol of the pinned database, of the public 3.20 catalogue and of the 13.60 inventory's verified name map; every identifier in core/ and docs/ on main and in #6584, #9880, #11948, #13008, #13123, #13629, #13994, #14106, #14941, #14954, #15247 and #15347; and every sceVideoOut name from those sources with Sys/Debug prefixes swapped, Get/Set/Is/Reset and other verb counterparts, _, Ex, 2 to 9 and _1 to _9 suffixes, one CamelCase word added, removed or replaced, and two words appended (about 83 million names in all). They use literal NID aliases (libSceVideoOutUnknown_<NID>_nid_no_patch, - as _minus_ and + as _plus_) as in #13123.

The declarations follow #15347: they are in LaterExports.hpp and in a separate extern "C" block in InventoryExports.cpp, and a debt entry lists every name and NID. All eight use the primary logical library qualifier, and with them every function export that the inventory lists only in the 13.60-labelled image for the primary library is exported. Other logical libraries of the module still have 13.60-only gaps (for example, 14 of the 51 libSceVideoOut_nosubmission function exports listed only in that image have no export in the tree); they are not part of this pull request. The image label does not authenticate a retail firmware version. No game unblock is claimed.

Name NID
sceVideoOutGetFlipStatusNative 5vYEm0vWPxA
sceVideoOutSysLatencyMeasureGetLatestLatency 4SZjpc4U1es
Unknown +ZuoGRI+U-g
Unknown 96hq3WwT3DE
Unknown B8siTU85n8M
Unknown IkyDS23qu4g
Unknown gQwfLPPIZQ8
Unknown rJmjlPlreu4

Tested

  • Windows 11 x86-64, WinLibs GCC 15.2.0 r7: built libs and the libSceVideoOut test executables at this commit (on top of main 4f41f4c375). I ran the 56 tests registered by libSceVideoOut's CMake (video_out_*, guest_video_out_*, guest_buffer_reuse and the pad_* tests there) and public_headers three times. On every run 50 of these 57 passed and 7 were skipped (pad_sdl, pad_port0, the four pad_identify_* and guest_video_out_wqhd_detection_no_vulkan); none failed. The Vulkan tests ran on the host GPU, an NVIDIA GeForce RTX 4080 SUPER (driver 621.01), without validation layers; the change adds no GPU path.
  • Ubuntu 22.04 (WSL2) x86-64, GCC 11.4: I ran the same set three times (58 tests registered there, and public_headers). On every run 22 of these 59 passed and 37 were skipped (the Vulkan tests; WSL has no Vulkan device); none failed.
  • The 4 checker self-tests (conventions_unknown_nids, conventions_debt_length, conventions_doc_links and debt_split) ran in the same ctest invocations and passed on every run on both systems, none skipped, so each run had 61 tests on Windows and 63 on Linux. They test the convention checker itself, not these declarations.
  • objdump -p on Windows and nm -D on Linux show that the patched libSceVideoOut.prx exports all 8 NIDs.
  • python3 tools/check_conventions.py --base origin/main with this title and description passed, and git diff --check is clean.
  • tools/pr_overlap.py --branch found no open pull request that changes the same exports. It failed closed on 12 older PRs that share a file with this branch and do not merge cleanly with main: #4040, #6977, #9432, #9673, #9880, #9898, #10112, #12863, #12930, #13486, #13994 and #14212. I checked their diffs by hand, and none adds any of these NIDs, names or aliases. A search of the commits of all 1,674 open PR heads finds none of them either.
  • Not tested: console behavior, titles and homebrew. No guest calls these exports in the tests above.

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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5136198040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15452). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-03T11:10:58Z. --- ### What Declare the 8 `libSceVideoOut` function exports found only in the 13.60-labelled image that #15347 left out because the pinned NID database has no name for them. They are throwing placeholders, so imports of them resolve and stop with an explicit diagnostic instead of failing at load. Two are declared by name and six by literal NID alias. Signatures and behavior are unverified and no VideoOut functionality is implemented; every entry calls `NotImplemented_nid_no_patch`. - Two names hash exactly to their NIDs with `tools/nid_names.py --name`, although neither is in the pinned database: `sceVideoOutSysLatencyMeasureGetLatestLatency` gives `4SZjpc4U1es`, and `sceVideoOutGetFlipStatusNative` gives `5vYEm0vWPxA`. The first is the `Sys` counterpart of `sceVideoOutDebugLatencyMeasureGetLatestLatency` (`BTawastvk7s`, #15347). The second is `sceVideoOutGetFlipStatus` (`SbU3dwp80lQ`) with the `Native` suffix that `sceVideoOutSysOpenVrNative` and `sceVideoOutSysModeIsVrNative` use. They are declared like #15347's names: parameterless `int` functions whose names give the NIDs. - The other six have no known name. `tools/nid_names.py` resolves none of them. None matched when hashing these candidates: every symbol of the pinned database, of the public 3.20 catalogue and of the 13.60 inventory's verified name map; every identifier in `core/` and `docs/` on `main` and in #6584, #9880, #11948, #13008, #13123, #13629, #13994, #14106, #14941, #14954, #15247 and #15347; and every `sceVideoOut` name from those sources with `Sys`/`Debug` prefixes swapped, `Get`/`Set`/`Is`/`Reset` and other verb counterparts, `_`, `Ex`, `2` to `9` and `_1` to `_9` suffixes, one CamelCase word added, removed or replaced, and two words appended (about 83 million names in all). They use literal NID aliases (`libSceVideoOutUnknown_<NID>_nid_no_patch`, `-` as `_minus_` and `+` as `_plus_`) as in #13123. The declarations follow #15347: they are in `LaterExports.hpp` and in a separate `extern "C"` block in `InventoryExports.cpp`, and a debt entry lists every name and NID. All eight use the primary logical library qualifier, and with them every function export that the inventory lists only in the 13.60-labelled image for the primary library is exported. Other logical libraries of the module still have 13.60-only gaps (for example, 14 of the 51 `libSceVideoOut_nosubmission` function exports listed only in that image have no export in the tree); they are not part of this pull request. The image label does not authenticate a retail firmware version. No game unblock is claimed. | Name | NID | | --- | --- | | `sceVideoOutGetFlipStatusNative` | `5vYEm0vWPxA` | | `sceVideoOutSysLatencyMeasureGetLatestLatency` | `4SZjpc4U1es` | | `Unknown` | `+ZuoGRI+U-g` | | `Unknown` | `96hq3WwT3DE` | | `Unknown` | `B8siTU85n8M` | | `Unknown` | `IkyDS23qu4g` | | `Unknown` | `gQwfLPPIZQ8` | | `Unknown` | `rJmjlPlreu4` | ### 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. --> - Windows 11 x86-64, WinLibs GCC 15.2.0 r7: built `libs` and the `libSceVideoOut` test executables at this commit (on top of `main` 4f41f4c375). I ran the 56 tests registered by `libSceVideoOut`'s CMake (`video_out_*`, `guest_video_out_*`, `guest_buffer_reuse` and the `pad_*` tests there) and `public_headers` three times. On every run 50 of these 57 passed and 7 were skipped (`pad_sdl`, `pad_port0`, the four `pad_identify_*` and `guest_video_out_wqhd_detection_no_vulkan`); none failed. The Vulkan tests ran on the host GPU, an NVIDIA GeForce RTX 4080 SUPER (driver 621.01), without validation layers; the change adds no GPU path. - Ubuntu 22.04 (WSL2) x86-64, GCC 11.4: I ran the same set three times (58 tests registered there, and `public_headers`). On every run 22 of these 59 passed and 37 were skipped (the Vulkan tests; WSL has no Vulkan device); none failed. - The 4 checker self-tests (`conventions_unknown_nids`, `conventions_debt_length`, `conventions_doc_links` and `debt_split`) ran in the same ctest invocations and passed on every run on both systems, none skipped, so each run had 61 tests on Windows and 63 on Linux. They test the convention checker itself, not these declarations. - `objdump -p` on Windows and `nm -D` on Linux show that the patched `libSceVideoOut.prx` exports all 8 NIDs. - `python3 tools/check_conventions.py --base origin/main` with this title and description passed, and `git diff --check` is clean. - `tools/pr_overlap.py --branch` found no open pull request that changes the same exports. It failed closed on 12 older PRs that share a file with this branch and do not merge cleanly with `main`: #4040, #6977, #9432, #9673, #9880, #9898, #10112, #12863, #12930, #13486, #13994 and #14212. I checked their diffs by hand, and none adds any of these NIDs, names or aliases. A search of the commits of all 1,674 open PR heads finds none of them either. - Not tested: console behavior, titles and homebrew. No guest calls these exports in the tests above. ### 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: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-11-03 11:26:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T11:26:35Z.

Review: APPROVED


Reviewed — approved

This PR adds 8 throwing placeholder exports for the unnamed 13.60-only libSceVideoOut NIDs and a debt entry that lists them. The checks pass, the patched library exports all 8 NIDs, and the focused tests pass. The one new VUID that the validation comparison reported comes from main, not from this change.

What I ran

Head 8c4ab2354f282cf3d87f8bd672fad099305f63ad, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 893e78f3ca3571762e95758068442be2c8ca5c67 (Debian 13 VM, GCC 14.2.0, lavapipe / Mesa 26.1.6, no GPU).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...8c4ab2354f282cf3d87f8bd672fad099305f63ad
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
python3 tools/nid_names.py --name sceVideoOutGetFlipStatusNative
python3 tools/nid_names.py --name sceVideoOutSysLatencyMeasureGetLatestLatency
git grep / grep for each of the 8 NIDs in core/ and docs/
nm -D --defined-only build/core/libs/libs/libSceVideoOut.prx
ninja -C build -j32 -l32 libs
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(public_headers|video_out_.*|guest_video_out_.*|guest_buffer_reuse|conventions_unknown_nids|conventions_debt_length|conventions_doc_links|debt_split)$'
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R '^agc_driver_native_depth_uniform_planes$'   # merged tree, then with the 3 PR files restored from main
ctest --test-dir build -R '^public_headers$'   # merged tree, then with the PR files restored from main

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Name hashes sceVideoOutGetFlipStatusNative → 5vYEm0vWPxA, sceVideoOutSysLatencyMeasureGetLatestLatency → 4SZjpc4U1es. Both match the description
Duplicate NIDs/names Each NID appears only in the new code, the header and the debt table. No other export in the tree has these NIDs
Patched libSceVideoOut.prx exports All 8 NIDs are defined T symbols
Build (script + my libs rebuilds) OK
Script test run 884 ran, no new failures or timeouts. The one known failure (unwrap_self_..._destination_directory_group) also fails on main
Focused ctest (52 tests) 100% passed. Skips are device or display limitations, and check_skips.py accepted all of them in the script run
Validation comparison 7 tests ran, and the layer loaded in all 7. The new VUID in agc_driver_native_depth_uniform_planes is not from this PR (see below)
VUID attribution

The script's baseline (d1ae628bc2) does not contain agc_driver_native_depth_uniform_planes. The test was added on main later, in agc_driver_native_multisample_depth_tests.cmake, so the comparison marked it "test not run on main". On the merged tree it reports 8 lines with VUID-vkCmdDispatch-groupCountX-00386. I restored the 3 PR files from main, rebuilt libs and ran it again. It still reports the same 8 VUID-vkCmdDispatch-groupCountX-00386 lines, and no log has was not found but was requested. The VUID comes from main, not from this PR.

Exported symbols (patched prx)
000000000004c1a0 T +ZuoGRI+U-g
000000000004c210 T 4SZjpc4U1es
000000000004c200 T 5vYEm0vWPxA
000000000004c1b0 T 96hq3WwT3DE
000000000004c1c0 T B8siTU85n8M
000000000004c1d0 T IkyDS23qu4g
000000000004c1e0 T gQwfLPPIZQ8
000000000004c1f0 T rJmjlPlreu4

Negative control

None. The PR adds and changes no tests, and the project rules forbid tests that only check that a symbol is exported. For attribution only, I reverted the 3 PR files to main to show that the VUID above and the public_headers running time do not depend on this PR. Then I restored the merged files, and git status --porcelain was empty.

Findings

Blocking

None.

Non-blocking

None. The code follows the earlier patterns in the tree:

  • Named placeholders are declared as in #15347.
  • The libSceVideoOutUnknown_<NID>_nid_no_patch aliases with _plus_/_minus_ work like the existing libCss aliases.
  • Each export has exactly one declaration, in LaterExports.hpp:21-29, and public_headers passes.
  • Every body throws through NotImplemented_nid_no_patch(__func__) (core/libs/prx/libSceVideoOut/InventoryExports.cpp:888-928).
  • The debt entry (docs/dev/debt/libSceVideoOut.md:273-284) states first that signatures and behaviour are unverified, as the rules require.
  • The checklist lines are present.

public_headers takes about 57–67 s on this machine, over the 30 s limit. It takes about 57 s with main's files too, so the slowness was already there and this PR does not cause it.

Not verified

  • That these 8 NIDs belong to the primary logical library and are the complete set of 13.60-only primary function exports. I do not have the inventory or the 13.60-labelled image here.
  • The "no name found" search the description reports for the six unknown NIDs (about 83 million candidates). nid_names.py --nid needs the network, which the sandbox does not have.
  • The author's Windows and WSL test runs, console behaviour, and any guest call to these exports. No test calls them.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5751326316 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15452#pullrequestreview-5751326316). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T11:26:35Z. **Review:** APPROVED --- # Reviewed — approved This PR adds 8 throwing placeholder exports for the unnamed 13.60-only `libSceVideoOut` NIDs and a debt entry that lists them. The checks pass, the patched library exports all 8 NIDs, and the focused tests pass. The one new VUID that the validation comparison reported comes from `main`, not from this change. ## What I ran Head `8c4ab2354f282cf3d87f8bd672fad099305f63ad`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `893e78f3ca3571762e95758068442be2c8ca5c67` (Debian 13 VM, GCC 14.2.0, lavapipe / Mesa 26.1.6, no GPU). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...8c4ab2354f282cf3d87f8bd672fad099305f63ad python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 python3 tools/nid_names.py --name sceVideoOutGetFlipStatusNative python3 tools/nid_names.py --name sceVideoOutSysLatencyMeasureGetLatestLatency git grep / grep for each of the 8 NIDs in core/ and docs/ nm -D --defined-only build/core/libs/libs/libSceVideoOut.prx ninja -C build -j32 -l32 libs ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(public_headers|video_out_.*|guest_video_out_.*|guest_buffer_reuse|conventions_unknown_nids|conventions_debt_length|conventions_doc_links|debt_split)$' VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R '^agc_driver_native_depth_uniform_planes$' # merged tree, then with the 3 PR files restored from main ctest --test-dir build -R '^public_headers$' # merged tree, then with the PR files restored from main ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Name hashes | `sceVideoOutGetFlipStatusNative` → `5vYEm0vWPxA`, `sceVideoOutSysLatencyMeasureGetLatestLatency` → `4SZjpc4U1es`. Both match the description | | Duplicate NIDs/names | Each NID appears only in the new code, the header and the debt table. No other export in the tree has these NIDs | | Patched `libSceVideoOut.prx` exports | All 8 NIDs are defined `T` symbols | | Build (script + my `libs` rebuilds) | OK | | Script test run | 884 ran, no new failures or timeouts. The one known failure (`unwrap_self_..._destination_directory_group`) also fails on `main` | | Focused ctest (52 tests) | 100% passed. Skips are device or display limitations, and `check_skips.py` accepted all of them in the script run | | Validation comparison | 7 tests ran, and the layer loaded in all 7. The new VUID in `agc_driver_native_depth_uniform_planes` is not from this PR (see below) | <details><summary>VUID attribution</summary> The script's baseline (`d1ae628bc2`) does not contain `agc_driver_native_depth_uniform_planes`. The test was added on `main` later, in `agc_driver_native_multisample_depth_tests.cmake`, so the comparison marked it "test not run on main". On the merged tree it reports 8 lines with `VUID-vkCmdDispatch-groupCountX-00386`. I restored the 3 PR files from `main`, rebuilt `libs` and ran it again. It still reports the same 8 `VUID-vkCmdDispatch-groupCountX-00386` lines, and no log has `was not found but was requested`. The VUID comes from `main`, not from this PR. </details> <details><summary>Exported symbols (patched prx)</summary> ``` 000000000004c1a0 T +ZuoGRI+U-g 000000000004c210 T 4SZjpc4U1es 000000000004c200 T 5vYEm0vWPxA 000000000004c1b0 T 96hq3WwT3DE 000000000004c1c0 T B8siTU85n8M 000000000004c1d0 T IkyDS23qu4g 000000000004c1e0 T gQwfLPPIZQ8 000000000004c1f0 T rJmjlPlreu4 ``` </details> ## Negative control None. The PR adds and changes no tests, and the project rules forbid tests that only check that a symbol is exported. For attribution only, I reverted the 3 PR files to `main` to show that the VUID above and the `public_headers` running time do not depend on this PR. Then I restored the merged files, and `git status --porcelain` was empty. ## Findings ### Blocking None. ### Non-blocking None. The code follows the earlier patterns in the tree: - Named placeholders are declared as in #15347. - The `libSceVideoOutUnknown_<NID>_nid_no_patch` aliases with `_plus_`/`_minus_` work like the existing `libCss` aliases. - Each export has exactly one declaration, in `LaterExports.hpp:21-29`, and `public_headers` passes. - Every body throws through `NotImplemented_nid_no_patch(__func__)` (`core/libs/prx/libSceVideoOut/InventoryExports.cpp:888-928`). - The debt entry (`docs/dev/debt/libSceVideoOut.md:273-284`) states first that signatures and behaviour are unverified, as the rules require. - The checklist lines are present. `public_headers` takes about 57–67 s on this machine, over the 30 s limit. It takes about 57 s with `main`'s files too, so the slowness was already there and this PR does not cause it. ## Not verified - That these 8 NIDs belong to the primary logical library and are the complete set of 13.60-only primary function exports. I do not have the inventory or the 13.60-labelled image here. - The "no name found" search the description reports for the six unknown NIDs (about 83 million candidates). `nid_names.py --nid` needs the network, which the sandbox does not have. - The author's Windows and WSL test runs, console behaviour, and any guest call to these exports. No test calls them. <!-- anyps5-bots job=3306 head=8c4ab2354f282cf3d87f8bd672fad099305f63ad -->
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!15452
No description provided.