fix(videoout): remove duplicate VRR exports #2473
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2473"
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 Celegans12 on 2026-10-09T22:32:06Z.
What
The Windows build stops while patching
libSceVideoOut.prx:sceVideoOutAddVrrActiveStatusEventhashes toLibwuIonIBwandsceVideoOutAddVrrStatusFlagsPrivilegehashes tokP2L8t3j-aM. Their explicitAPS5_EXPORTaliases add both NIDs a second time.Remove the two redundant aliases and keep the named function exports. Their behavior and the NID patcher's duplicate-export check are unchanged. Both NIDs are confirmed by
tools/nid_names.py.Tested
a3ca03e057, based onmain3e3290dc: the two-line patch is byte-identical to13d860488a.-DBUILD_TESTING=ON: VideoOut build, registration and strict NID patching pass. The patched PE has exactly oneLibwuIonIBw, onekP2L8t3j-aM, and no redundant aliases.guest_video_out_resolution_statusandguest_video_out_wqhd_detectionpassed; the deliberate no-Vulkan variant skipped: 2 passed, 1 skipped.13d860488a: Windows 536 passed, 1 deliberate skip; Linux 524 passed, 27 skipped after merging with main64fe7439; zero failures. Full suites were not rerun for this rebase.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T22:35:13Z.
I reviewed the complete two-file diff. It removes the redundant explicit aliases while leaving the named functions and their NID hashes intact.
Independent Linux validation on GCC 12.2 Release:
libSceVideoOut,nid_patcher, andvideo_out_flip_testsbuilt.nid_patcherprocessed the PRX successfully;nm -DshowedLibwuIonIBwandkP2L8t3j-aMonce each.video_out_flip_tests controlscould not run in this environment because SDL selected theoffscreenbackend, which lacks Vulkan support. The Windows failure and full-suite result are documented on issue #2462.This confirms the export fix independently on Linux; it does not replace the reported Windows validation. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T22:46:44Z.
Confirmed on another Windows setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
13d86048, merged ontomain09a3462etogether with 4 other PRs.libSceVideoOut.prxpatches, and the full ctest passes (546 of 546). Without this PR, currentmainstops atduplicate patched export name: LibwuIonIBw(#2462).🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-09T22:49:52Z.
Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at
13d86048:/tmp/anyps5_build) with zero warnings/errors.python3 tools/check_conventions.py --base origin/main --head HEAD-> PASS (0 errors).libSceVideoOutbuild. DroppingAPS5_EXPORTforsceVideoOutAddVrrActiveStatusEventandsceVideoOutAddVrrStatusFlagsPrivilegecorrectly avoids duplicate symbol/NID export generation under Windows PE / ELF NID patcher.LGTM!
Imported from boykopovar/AnyPS5. Originally posted by PYTHONRETARDE on 2026-10-09T22:51:58Z.
Confirmed on Windows, built the way the Build workflow does: this PR (
13d86048) merged into currentmain3e3290dc.Windows 11 Pro 10.0.26200, RX 7800 XT (
0x747e), AMD driver 32.0.31041.1004, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON.mainalone stops atlibSceVideoOut.prx: duplicate patched export name: LibwuIonIBw(#2462). With this PR the full build and thelibstarget pass, and the patcher printsOK: .../libSceVideoOut.prx.patched_libraries,guest_video_out_wqhd_detectionandguest_video_out_resolution_statuspass.agc_driver_vopc_compare_tableis #825. The other six (agc_driver_float16_misc,float16_modifiers,packed_alu,sdwa_float_selectors,sdwa_ldexp_f16,vop2_modifier_forms) come frommain: they pass with8685c14d(#1252) reverted locally, so they're a separate regression on AMD's Windows driver, not this PR.No title tested.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T00:10:56Z.
Fixes main's Windows build (run 38004935672:
duplicate patched export name: LibwuIonIBwin libSceVideoOut). Both names hash to their NIDs, so the aliases exported each NID twice. Checked on Linux: the patchedlibSceVideoOut.prxexportsLibwuIonIBwandkP2L8t3j-aMonce each, and no other alias on main repeats its own NID. Merging.