Repository navigation
feat(libSceVideoOut): declare 13 qualified later callable exports - #15653
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Progress report (f53ddbc → 6d70bb9)📉 System libraries: 27.89% (-0.01%, +13 declared functions) 🆕 13 declared as stubs
Changed libraries (implemented exports)
|
XairRrR
left a comment
There was a problem hiding this comment.
Reviewed — approved
The PR adds 13 throwing placeholder exports for the libSceVideoOut_nosubmission and libSceVideoOutHdrScopes_nosubmission libraries, plus a matching debt entry. The checks pass and the built .prx exports all 13 NIDs.
What I ran
Head 24e83bcb941a86694bd8293e8c78899cf7895642 merged into main 1c8c0efc8c41314402e6966da5bef6ea3d639d10 (merged tree be01985faaeb517d1e61673c5fc7ada0bbf5e3a4). Debian 13 VM, GCC 14.2.0, Release, Ninja, lavapipe.
git diff --check 1c8c0efc8c41314402e6966da5bef6ea3d639d10...24e83bcb941a86694bd8293e8c78899cf7895642
python3 tools/check_conventions.py --base 1c8c0efc8c41314402e6966da5bef6ea3d639d10
python3 tools/nid_names.py --name <each of the 5 named exports>
nm -D --defined-only build/core/libs/libs/libSceVideoOut.prx | grep <13 NIDs>
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(public_headers|conventions_unknown_nids|debt_split|video_out_.*)$"
ninja -C build -j32 -l32 video_out_port0_presence_tests
ctest --test-dir build --output-on-failure -R "^video_out_port0_presence$"
Results
| Check | Result |
|---|---|
git diff --check |
clean |
check_conventions.py |
All conventions checks passed |
Build and libs (script) |
ok |
| Script test run (870 tests, selected) | no new failures and no timeouts. The one known failure (unwrap_self_..._destination_directory_group) also fails on main |
nid_names.py --name for the 5 names |
owjymCzlZSE, dcIKDMzAcUQ, NMhOpB9KTqA, agXH3kcyi+A, UgFHQ3TjeXQ, all as the PR claims |
nm -D on libSceVideoOut.prx |
all 13 NIDs defined (T) |
| Duplicate check | none of the 13 NIDs, names or aliases appear anywhere else in the merged tree outside the 3 changed files |
public_headers, debt_split, conventions_unknown_nids, video_out_* |
41 of 42 passed or were skipped as expected. video_out_port0_presence was Not Run because its executable was not part of the selected build. After building it, it passes |
| Validation layer (script) | the layer loaded in 16 of 16 tests. The only new VUID- lines are in agc_driver_image_gather_volume, marked "test not run on main" against the older baseline 1e658521a0. This PR does not touch the AGC driver, samplers or shaders, so they do not come from this change |
nm excerpt
000000000004c0f0 T -7inAKRfvfE
000000000004c100 T 24GHCH4jyzU
000000000004c110 T 9jqDAT2tPAg
000000000004c120 T DFNafp+tWs8
000000000004c130 T G0FPxnpizUc
000000000004c140 T JpVPYbAVxRQ
000000000004c150 T KEOpdUvfQHQ
000000000004c160 T koLWa3yaO-8
000000000004c170 T owjymCzlZSE
000000000004c180 T dcIKDMzAcUQ
000000000004c190 T NMhOpB9KTqA
000000000004c1a0 T agXH3kcyi+A
000000000004c1b0 T UgFHQ3TjeXQ
Negative control
None. The PR adds no tests, and the rules forbid tests that only check that a symbol is exported.
Findings
Blocking
None.
Non-blocking
None.
Not verified
- Whether the console really resolves qualified imports (
NID#libSceVideoOut_nosubmission#...,NID#libSceVideoOutHdrScopes_nosubmission#...) against this module. No guest import exercises it. The debt entry already records this. - That both logical libraries belong to the
libSceVideoOutmodule. I have no network, so I could not open the pinned inventory gist the PR cites. - The 8 unnamed NIDs, and the search of about 53 million candidate names that found no match.
- Windows / MinGW build.
- The
agc_driver_image_gather_volumeVUIDs against currentmain. I did not rerun that test, because the PR cannot affect it.
|
The failed
#12115 already fixes this test by retrying the read pair until it lands within 50 ms. A re-run of the AI-assisted: yes (Claude Code) |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (8 IDs in 467 tests)Skipped (8)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
|
The refreshed head AI-assisted: yes (Codex). |
What
Declare 13
libSceVideoOutfunction exports as throwing placeholders. They appear only in the 13.60-labelled image, under logical libraries other than the primary one: 12 underlibSceVideoOut_nosubmissionand-7inAKRfvfEunderlibSceVideoOutHdrScopes_nosubmission. With them declared, imports resolve and stop with an explicit diagnostic instead of failing at load. Signatures and behavior are unverified and no VideoOut functionality is implemented; every entry callsNotImplemented_nid_no_patch.The relinker resolves a qualified import (
NID#library#module) by its module ID only (DeclaredImportModuleincore/relinker/domain/include/domain/ImportModule.hpp), so one export fromlibSceVideoOut.prxserves every logical library of the module. #15347 already relies on this forsceVideoOutDebugLatencyMeasureGetLatestLatency, which is also exported under thelibSceVideoOut_nosubmissionandlibSceVideoOutLatency_nosubmissionqualifiers. Both logical libraries belong to thelibSceVideoOutmodule in the revision-pinned identity inventory that the debt file already cites. Qualified guest import resolution is unverified.tools/nid_names.py --name:sceVideoOutSysAddFlipEventgivesNMhOpB9KTqA,sceVideoOutSysDeleteFlipEventgivesagXH3kcyi+A, andsceVideoOutSysSetBusTransfergivesUgFHQ3TjeXQ.tools/nid_names.py --name:sceVideoOutLatencyMeasureSetStartPointAutogivesowjymCzlZSE, andsceVideoOutSetDrrMonitorCapabilitygivesdcIKDMzAcUQ. The first issceVideoOutLatencyMeasureSetStartPoint(MCJ8SkzsQxY, onmain) with theAutosuffix ofsceVideoOutLatencyMeasureSetFrameStartAuto(Hs+c89SeUYI, pinned database). The second isSetDrrfromsceVideoOutDebugSetDrrunder thesceVideoOutprefix, followed by the wordsMonitorandCapability.intfunctions whose names give the NIDs, each declared once inLaterExports.hpp.tools/nid_names.pyresolves none of them. About 53 million candidate names were hashed and none matched. The candidates were everyscesymbol in the pinned database, the 13.60 inventory and its verified name map, the public 3.20 catalogue, the ps5rs NID list, andcore/anddocs/onmain. They also included everysceVideoOutname from those sources under thesceVideoOut,Sys,Debug,Driver,SysDebugandsceDbgVideoOutprefixes, withGet/Set/Is/Add/Deleteand other verb counterparts, 32 suffixes (_,Ex,2,Native,Privilege,ByBusand others), and one or two CamelCase words from those names added. They use literal NID aliases (libSceVideoOutUnknown_<NID>_nid_no_patch,-as_minus_and+as_plus_) as in feat(libSceVideoOut): declare 182 callable exports #13123 and feat(libSceVideoOut): declare 8 more later callable exports #15452.The new
extern "C"block goes before #15347's block inInventoryExports.cpp, the declarations go at the top ofLaterExports.hpp, and the debt entry goes before #15347's entry. #15452 appends to the end of all three files, so this branch and #15452 merge cleanly.Not included:
kGVLc3htQE8(sceVideoOutGetDeviceCapabilityInfo_) andpjkDsgxli6c(sceVideoOutModeSetAny_), the other twolibSceVideoOut_nosubmissiongaps, which feat(libSceVideoOut): add the PS4 device capability and ModeSetAny exports #9880 declares.libSceVideoOutSecondaryNIDs, whichmainalready exports from that library's own module (core/libs/prx/libSceVideoOutSecondary).libSceVideoOutServer,libSceVideoOutSubEx,libSceVideoOutOverlay64bpp,libSceVideoOutSwitchBusFor64bppand the twoAspectRatio*Trial_nosubmissionlibraries. No source I have places these libraries in thelibSceVideoOutmodule, andlibSceVideoOutSecondaryshows that a library with this kind of name can be a module of its own.With this change, every function export that the inventory lists for
libSceVideoOut_nosubmissionis either exported or declared by an open PR. The image label does not authenticate a retail firmware version. No game unblock is claimed.sceVideoOutLatencyMeasureSetStartPointAutoowjymCzlZSElibSceVideoOut_nosubmissionsceVideoOutSetDrrMonitorCapabilitydcIKDMzAcUQlibSceVideoOut_nosubmissionsceVideoOutSysAddFlipEventNMhOpB9KTqAlibSceVideoOut_nosubmissionsceVideoOutSysDeleteFlipEventagXH3kcyi+AlibSceVideoOut_nosubmissionsceVideoOutSysSetBusTransferUgFHQ3TjeXQlibSceVideoOut_nosubmissionUnknown-7inAKRfvfElibSceVideoOutHdrScopes_nosubmissionUnknown24GHCH4jyzUlibSceVideoOut_nosubmissionUnknown9jqDAT2tPAglibSceVideoOut_nosubmissionUnknownDFNafp+tWs8libSceVideoOut_nosubmissionUnknownG0FPxnpizUclibSceVideoOut_nosubmissionUnknownJpVPYbAVxRQlibSceVideoOut_nosubmissionUnknownKEOpdUvfQHQlibSceVideoOut_nosubmissionUnknownkoLWa3yaO-8libSceVideoOut_nosubmissionTested
Original submission
libsand thelibSceVideoOuttest executables at this commit, on top ofmain1c8c0ef. I then ranpublic_headersand the 56 tests registered bylibSceVideoOut's CMake (video_out_*,guest_video_out_*,guest_buffer_reuseand thepad_*tests there) three times. On every run, 16 of these 57 tests passed, 41 were skipped and none failed. Another job was using the host GPU, so I pointed the Vulkan driver list at a missing file and the Vulkan tests skipped, as they do on Linux. The other skipped tests arepad_sdl,pad_port0, the fourpad_identify_*tests andguest_video_out_wqhd_detection_no_vulkan. The change adds no GPU path.public_headersthat makes 59. On every run, 22 of these 59 passed, 37 were skipped (the Vulkan tests; WSL has no Vulkan device) and none failed.conventions_unknown_nids,conventions_debt_length,conventions_doc_linksanddebt_split) ran in the same ctest invocations. They passed on every run on both systems and none were 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 13 NIDs.python3 tools/check_conventions.py --base origin/mainpassed with this title and description, andgit diff --checkis clean.tools/pr_overlap.py --branchfound no open pull request that changes the same exports. It failed closed on 10 older PRs that share a file with this branch and do not merge cleanly withmain: feat(videoout): apply the output gamma from sceVideoOutAdjustColor #4040, feat: run PS4 games on the AGC driver — Limbo (CUSA01664) in game (integration branch) #6977, fix(libSceAgcDriver): decode PS4 tiled scanouts in their own layout on the CPU path #9673, fix(libSceGnmDriver): report type-0 packets and optionally wait at each submission #9676, feat(pad): complete DualSense adaptive trigger support #10112, feat(libSceVideoOut): opt-in host pause with a key or on focus loss #12863, feat(libSceVideoOut): validate ANYPS5_FULLSCREEN, restore the windowed size and hide the cursor in fullscreen #12930, fix(relinker): match AppContent utility import to provider #13486, feat(prx): declare the missing Sdma and VideoOut exports #13994 and docs(debt): separate entries with blank lines and drop derived export totals #14212. I checked the lines each of them adds to these files by hand, and none adds any of these NIDs, names or aliases. A search of all 1,810 open PR heads finds none of them either.Current refreshed candidate — 6d70bb9 (baseline 36c80cf)
36c80cf5324fd777b35dbfb4bdb322abc3e215b9and candidate6d70bb97ede679e7b2fc693d66f117eb329aca3a. Across the pair,guest_padpassed 20/20 on each tree;guest_video_out_firmware_answers,video_out_flip_decode,guest_pad_trigger_effects, anddualsense_statuspassed 3/3 each on each tree (32 focused test executions per tree).^public_headers($|_compile_)passed 65/65 on each tree.VUID-diagnostic. Both logs confirm instance and device layer insertion and contain no missing-layer warning.python tools/check_conventions.py --base origin/mainpassed on candidate6d70bb97withorigin/mainat04ab293bc21d3d005125a9675f34cbb5c088fa12. The exact latest-main merge preview is clean at treee12ee486e907bb136679115c9410f51d04d03a21; its main-relative delta remains the same three VideoOut declaration/debt paths, stable patch IDb47dbdc18f87cd3fae7ac4b482a1bb4e4308c976.6d70bb97. All five focused selectors passed 3/3 (15 runs total) and public headers passed 65/65.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
🤖 Generated with Codex