feat(libSceVideoOut): declare 8 more later callable exports #15452
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15452"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-03T11:10:58Z.
What
Declare the 8
libSceVideoOutfunction 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 callsNotImplemented_nid_no_patch.tools/nid_names.py --name, although neither is in the pinned database:sceVideoOutSysLatencyMeasureGetLatestLatencygives4SZjpc4U1es, andsceVideoOutGetFlipStatusNativegives5vYEm0vWPxA. The first is theSyscounterpart ofsceVideoOutDebugLatencyMeasureGetLatestLatency(BTawastvk7s, #15347). The second issceVideoOutGetFlipStatus(SbU3dwp80lQ) with theNativesuffix thatsceVideoOutSysOpenVrNativeandsceVideoOutSysModeIsVrNativeuse. They are declared like #15347's names: parameterlessintfunctions whose names give the NIDs.tools/nid_names.pyresolves 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 incore/anddocs/onmainand in #6584, #9880, #11948, #13008, #13123, #13629, #13994, #14106, #14941, #14954, #15247 and #15347; and everysceVideoOutname from those sources withSys/Debugprefixes swapped,Get/Set/Is/Resetand other verb counterparts,_,Ex,2to9and_1to_9suffixes, 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.hppand in a separateextern "C"block inInventoryExports.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 51libSceVideoOut_nosubmissionfunction 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.sceVideoOutGetFlipStatusNative5vYEm0vWPxAsceVideoOutSysLatencyMeasureGetLatestLatency4SZjpc4U1esUnknown+ZuoGRI+U-gUnknown96hq3WwT3DEUnknownB8siTU85n8MUnknownIkyDS23qu4gUnknowngQwfLPPIZQ8UnknownrJmjlPlreu4Tested
libsand thelibSceVideoOuttest executables at this commit (on top ofmain4f41f4c375). I ran the 56 tests registered bylibSceVideoOut's CMake (video_out_*,guest_video_out_*,guest_buffer_reuseand thepad_*tests there) andpublic_headersthree times. On every run 50 of these 57 passed and 7 were skipped (pad_sdl,pad_port0, the fourpad_identify_*andguest_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.public_headers). On every run 22 of these 59 passed and 37 were skipped (the Vulkan tests; WSL has no Vulkan device); none failed.conventions_unknown_nids,conventions_debt_length,conventions_doc_linksanddebt_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 -pon Windows andnm -Don Linux show that the patchedlibSceVideoOut.prxexports all 8 NIDs.python3 tools/check_conventions.py --base origin/mainwith this title and description passed, andgit diff --checkis clean.tools/pr_overlap.py --branchfound 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 withmain: #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.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
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
libSceVideoOutNIDs 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 frommain, not from this change.What I ran
Head
8c4ab2354f282cf3d87f8bd672fad099305f63ad,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree893e78f3ca3571762e95758068442be2c8ca5c67(Debian 13 VM, GCC 14.2.0, lavapipe / Mesa 26.1.6, no GPU).Results
git diff --checkcheck_conventions.pysceVideoOutGetFlipStatusNative→5vYEm0vWPxA,sceVideoOutSysLatencyMeasureGetLatestLatency→4SZjpc4U1es. Both match the descriptionlibSceVideoOut.prxexportsTsymbolslibsrebuilds)unwrap_self_..._destination_directory_group) also fails onmaincheck_skips.pyaccepted all of them in the script runagc_driver_native_depth_uniform_planesis not from this PR (see below)VUID attribution
The script's baseline (
d1ae628bc2) does not containagc_driver_native_depth_uniform_planes. The test was added onmainlater, inagc_driver_native_multisample_depth_tests.cmake, so the comparison marked it "test not run on main". On the merged tree it reports 8 lines withVUID-vkCmdDispatch-groupCountX-00386. I restored the 3 PR files frommain, rebuiltlibsand ran it again. It still reports the same 8VUID-vkCmdDispatch-groupCountX-00386lines, and no log haswas not found but was requested. The VUID comes frommain, not from this PR.Exported symbols (patched prx)
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
mainto show that the VUID above and thepublic_headersrunning time do not depend on this PR. Then I restored the merged files, andgit status --porcelainwas empty.Findings
Blocking
None.
Non-blocking
None. The code follows the earlier patterns in the tree:
libSceVideoOutUnknown_<NID>_nid_no_patchaliases with_plus_/_minus_work like the existinglibCssaliases.LaterExports.hpp:21-29, andpublic_headerspasses.NotImplemented_nid_no_patch(__func__)(core/libs/prx/libSceVideoOut/InventoryExports.cpp:888-928).docs/dev/debt/libSceVideoOut.md:273-284) states first that signatures and behaviour are unverified, as the rules require.public_headerstakes about 57–67 s on this machine, over the 30 s limit. It takes about 57 s withmain's files too, so the slowness was already there and this PR does not cause it.Not verified
nid_names.py --nidneeds the network, which the sandbox does not have.