Skip to content

feat(libSceVideoOut): declare 13 qualified later callable exports - #15653

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
B-Howell:feat/videoout-nosub-1360-exports
Nov 7, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
B-Howell:feat/videoout-nosub-1360-exports

Conversation

@B-Howell

@B-Howell B-Howell commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What

Declare 13 libSceVideoOut function exports as throwing placeholders. They appear only in the 13.60-labelled image, under logical libraries other than the primary one: 12 under libSceVideoOut_nosubmission and -7inAKRfvfE under libSceVideoOutHdrScopes_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 calls NotImplemented_nid_no_patch.

The relinker resolves a qualified import (NID#library#module) by its module ID only (DeclaredImportModule in core/relinker/domain/include/domain/ImportModule.hpp), so one export from libSceVideoOut.prx serves every logical library of the module. #15347 already relies on this for sceVideoOutDebugLatencyMeasureGetLatestLatency, which is also exported under the libSceVideoOut_nosubmission and libSceVideoOutLatency_nosubmission qualifiers. Both logical libraries belong to the libSceVideoOut module in the revision-pinned identity inventory that the debt file already cites. Qualified guest import resolution is unverified.

  • Three names are in the pinned public symbol database and hash to their NIDs with tools/nid_names.py --name: sceVideoOutSysAddFlipEvent gives NMhOpB9KTqA, sceVideoOutSysDeleteFlipEvent gives agXH3kcyi+A, and sceVideoOutSysSetBusTransfer gives UgFHQ3TjeXQ.
  • Two names are not in the pinned database. They were found by hashing candidates, and each hashes exactly to its NID with tools/nid_names.py --name: sceVideoOutLatencyMeasureSetStartPointAuto gives owjymCzlZSE, and sceVideoOutSetDrrMonitorCapability gives dcIKDMzAcUQ. The first is sceVideoOutLatencyMeasureSetStartPoint (MCJ8SkzsQxY, on main) with the Auto suffix of sceVideoOutLatencyMeasureSetFrameStartAuto (Hs+c89SeUYI, pinned database). The second is SetDrr from sceVideoOutDebugSetDrr under the sceVideoOut prefix, followed by the words Monitor and Capability.
  • These five are declared the way feat(libSceVideoOut): declare later callable exports #15347 declares its names: parameterless int functions whose names give the NIDs, each declared once in LaterExports.hpp.
  • The other eight have no known name, and tools/nid_names.py resolves none of them. About 53 million candidate names were hashed and none matched. The candidates were every sce symbol in the pinned database, the 13.60 inventory and its verified name map, the public 3.20 catalogue, the ps5rs NID list, and core/ and docs/ on main. They also included every sceVideoOut name from those sources under the sceVideoOut, Sys, Debug, Driver, SysDebug and sceDbgVideoOut prefixes, with Get/Set/Is/Add/Delete and other verb counterparts, 32 suffixes (_, Ex, 2, Native, Privilege, ByBus and 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 in InventoryExports.cpp, the declarations go at the top of LaterExports.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_) and pjkDsgxli6c (sceVideoOutModeSetAny_), the other two libSceVideoOut_nosubmission gaps, which feat(libSceVideoOut): add the PS4 device capability and ModeSetAny exports #9880 declares.
  • The two libSceVideoOutSecondary NIDs, which main already exports from that library's own module (core/libs/prx/libSceVideoOutSecondary).
  • The 13.60-only gaps of libSceVideoOutServer, libSceVideoOutSubEx, libSceVideoOutOverlay64bpp, libSceVideoOutSwitchBusFor64bpp and the two AspectRatio*Trial_nosubmission libraries. No source I have places these libraries in the libSceVideoOut module, and libSceVideoOutSecondary shows 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_nosubmission is either exported or declared by an open PR. The image label does not authenticate a retail firmware version. No game unblock is claimed.

Name NID Logical library
sceVideoOutLatencyMeasureSetStartPointAuto owjymCzlZSE libSceVideoOut_nosubmission
sceVideoOutSetDrrMonitorCapability dcIKDMzAcUQ libSceVideoOut_nosubmission
sceVideoOutSysAddFlipEvent NMhOpB9KTqA libSceVideoOut_nosubmission
sceVideoOutSysDeleteFlipEvent agXH3kcyi+A libSceVideoOut_nosubmission
sceVideoOutSysSetBusTransfer UgFHQ3TjeXQ libSceVideoOut_nosubmission
Unknown -7inAKRfvfE libSceVideoOutHdrScopes_nosubmission
Unknown 24GHCH4jyzU libSceVideoOut_nosubmission
Unknown 9jqDAT2tPAg libSceVideoOut_nosubmission
Unknown DFNafp+tWs8 libSceVideoOut_nosubmission
Unknown G0FPxnpizUc libSceVideoOut_nosubmission
Unknown JpVPYbAVxRQ libSceVideoOut_nosubmission
Unknown KEOpdUvfQHQ libSceVideoOut_nosubmission
Unknown koLWa3yaO-8 libSceVideoOut_nosubmission

Tested

Original submission

Current refreshed candidate — 6d70bb9 (baseline 36c80cf)

  • Windows 11 x86-64 paired CPU qualification on WinLibs GCC 15.2.0 r7: five focused test targets built for baseline 36c80cf5324fd777b35dbfb4bdb322abc3e215b9 and candidate 6d70bb97ede679e7b2fc693d66f117eb329aca3a. Across the pair, guest_pad passed 20/20 on each tree; guest_video_out_firmware_answers, video_out_flip_decode, guest_pad_trigger_effects, and dualsense_status passed 3/3 each on each tree (32 focused test executions per tree). ^public_headers($|_compile_) passed 65/65 on each tree.
  • Windows VideoOut validation on the same NVIDIA GeForce RTX 4080 SUPER, driver 621.01: baseline and candidate runs passed under the validation layer; neither log contained a VUID- diagnostic. Both logs confirm instance and device layer insertion and contain no missing-layer warning.
  • python tools/check_conventions.py --base origin/main passed on candidate 6d70bb97 with origin/main at 04ab293bc21d3d005125a9675f34cbb5c088fa12. The exact latest-main merge preview is clean at tree e12ee486e907bb136679115c9410f51d04d03a21; its main-relative delta remains the same three VideoOut declaration/debt paths, stable patch ID b47dbdc18f87cd3fae7ac4b482a1bb4e4308c976.
  • Ubuntu 22.04 (WSL2) x86-64, GCC 11.4: the same five targets built at exact candidate 6d70bb97. All five focused selectors passed 3/3 (15 runs total) and public headers passed 65/65.

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: NVIDIA GeForce RTX 4080 SUPER, driver 621.01, Windows 11; validation-layer runs reported no VUIDs
  • AI-assisted: yes

🤖 Generated with Claude Code

🤖 Generated with Codex

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Progress report (f53ddbc → 6d70bb9)

📉 System libraries: 27.89% (-0.01%, +13 declared functions)

🆕 13 declared as stubs
Library Name
libSceVideoOut libSceVideoOutUnknown_24GHCH4jyzU_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_9jqDAT2tPAg_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_DFNafp_plus_tWs8_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_G0FPxnpizUc_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_JpVPYbAVxRQ_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_KEOpdUvfQHQ_nid_no_patch
libSceVideoOut libSceVideoOutUnknown__minus_7inAKRfvfE_nid_no_patch
libSceVideoOut libSceVideoOutUnknown_koLWa3yaO_minus_8_nid_no_patch
libSceVideoOut sceVideoOutLatencyMeasureSetStartPointAuto
libSceVideoOut sceVideoOutSetDrrMonitorCapability
libSceVideoOut sceVideoOutSysAddFlipEvent
libSceVideoOut sceVideoOutSysDeleteFlipEvent
libSceVideoOut sceVideoOutSysSetBusTransfer

Changed libraries (implemented exports)

Library Before After Change
libSceVideoOut 69/268 (25.75%) 69/281 (24.56%) -1.19%

@XairRrR XairRrR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 libSceVideoOut module. 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_volume VUIDs against current main. I did not rerun that test, because the PR cannot affect it.

@B-Howell

B-Howell commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

The failed windows job on this PR is the guest_pad timing flake, not this change. guest_pad (#3137) aborted with 0xc0000409 after 1.33 s at guest_pad_tests.exe+0xbb7b, which is core/libs/tests/GuestPad.cpp:408, Require((data.buttons & cross) == 0) in CheckLatchedPressLifetime.

  • The latch lasts 1.5x the gap between the last two scePadReadState calls (clamped to 100-500 ms, LatchExpiry in PadState.cpp). The test reads twice and assumes the gap is tiny, so if the runner pauses the thread for 100 ms or more between those reads, Cross is still held after the 150 ms sleep. Adding a 110 ms pause between the two reads on main aborts at the same address after 1.35 s.
  • The test links only libScePad and libc; nothing it calls reaches libSceVideoOut, so none of the 13 placeholders here is involved.
  • The same abort appears in 10 other hosted windows runs since 2026-10-28, including main workflow_dispatch runs 41260412986 and 40735895035, and fix(agc): accept a colour alias over a native multisample depth plane when HTILE proves its clear #9742's run 41656851495 with the identical stack.
  • Locally (Windows, WinLibs GCC 15.2.0 r7, Release), guest_pad passes 20/20 both on this head and on main 1c8c0efc8c, and 32/32 with --parallel 4 alongside the neighbouring tests CI ran.

#12115 already fixes this test by retrying the read pair until it lands within 50 ms. A re-run of the windows job should pass.

AI-assisted: yes (Claude Code)

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 24e83bc merged onto main 1c8c0ef · tested 2026-11-04 01:09 UTC · 14 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,121 passed · 4 failed (0 new, 3 also fail on main, 1 unstable on main) · 8 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,133 of 3,842 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (546 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.7 s, ⚠️ public_headers 53.7 s, ⚠️ agc_driver_image_sample_unnormalized 46.7 s, ⚠️ agc_driver_lazy_resolved_abi 33.9 s, ⚠️ agc_driver_sample_multisample_target 32.2 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
Validation IDs already present on main (8 IDs in 467 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (467 tests): agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, agc_driver_bindless_images, and 459 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (8)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 24e83bcb941a86694bd8293e8c78899cf7895642 1c8c0efc8c41314402e6966da5bef6ea3d639d10
git checkout 1c8c0efc8c41314402e6966da5bef6ea3d639d10 && git merge --no-ff 24e83bcb941a86694bd8293e8c78899cf7895642
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated 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.

B-Howell and others added 3 commits November 5, 2026 20:56
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@B-Howell

B-Howell commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

The refreshed head 6d70bb97 has passing GitHub checks. The updated Tested section records the paired Windows Vulkan runs with zero VUIDs, plus the Windows and WSL focused results. The earlier XairRrR approval covers the original export patch, which is unchanged by the refresh. Could a maintainer take this through final review and merge?

AI-assisted: yes (Codex).

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4040 docs/dev/debt/libSceVideoOut.md
PR 14212 docs/dev/debt/libSceVideoOut.md

@oneandonlydean oneandonlydean self-assigned this Nov 7, 2026
@oneandonlydean
oneandonlydean merged commit fb3b2bc into boykopovar:main Nov 7, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants