fix(videoout): remove duplicate VRR exports #2473

Merged
Celegans12 merged 1 commit from upstream-pr/2473 into main 2026-10-10 00:10:59 +00:00
Celegans12 commented 2026-10-09 22:32:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-09T22:32:06Z.


What

The Windows build stops while patching libSceVideoOut.prx: sceVideoOutAddVrrActiveStatusEvent hashes to LibwuIonIBw and sceVideoOutAddVrrStatusFlagsPrivilege hashes to kP2L8t3j-aM. Their explicit APS5_EXPORT aliases 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

  • Rebase a3ca03e057, based on main 3e3290dc: the two-line patch is byte-identical to 13d860488a.
  • Windows 11, MinGW-w64 GCC 15.2.0, -DBUILD_TESTING=ON: VideoOut build, registration and strict NID patching pass. The patched PE has exactly one LibwuIonIBw, one kP2L8t3j-aM, and no redundant aliases.
  • guest_video_out_resolution_status and guest_video_out_wqhd_detection passed; the deliberate no-Vulkan variant skipped: 2 passed, 1 skipped.
  • Historical full CI at 13d860488a: Windows 536 passed, 1 deliberate skip; Linux 524 passed, 27 skipped after merging with main 64fe7439; zero failures. Full suites were not rerun for this rebase.
  • Not tested: console behavior.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4806558574 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-09T22:32:06Z. --- ### What The Windows build stops while patching `libSceVideoOut.prx`: `sceVideoOutAddVrrActiveStatusEvent` hashes to `LibwuIonIBw` and `sceVideoOutAddVrrStatusFlagsPrivilege` hashes to `kP2L8t3j-aM`. Their explicit `APS5_EXPORT` aliases 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 - Rebase `a3ca03e057`, based on `main` 3e3290dc: the two-line patch is byte-identical to `13d860488a`. - Windows 11, MinGW-w64 GCC 15.2.0, `-DBUILD_TESTING=ON`: VideoOut build, registration and strict NID patching pass. The patched PE has exactly one `LibwuIonIBw`, one `kP2L8t3j-aM`, and no redundant aliases. - `guest_video_out_resolution_status` and `guest_video_out_wqhd_detection` passed; the deliberate no-Vulkan variant skipped: 2 passed, 1 skipped. - Historical full CI at `13d860488a`: Windows 536 passed, 1 deliberate skip; Linux 524 passed, 27 skipped after merging with main `64fe7439`; zero failures. Full suites were not rerun for this rebase. - Not tested: console behavior. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
MarcZX10 commented 2026-10-09 22:35:13 +00:00 (Migrated from github.com)

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, and video_out_flip_tests built.
  • nid_patcher processed the PRX successfully; nm -D showed LibwuIonIBw and kP2L8t3j-aM once each.
  • video_out_flip_tests controls could not run in this environment because SDL selected the offscreen backend, 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090395485 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473#issuecomment-6090395485). Originally posted by [MarcZX10](https://github.com/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`, and `video_out_flip_tests` built. - `nid_patcher` processed the PRX successfully; `nm -D` showed `LibwuIonIBw` and `kP2L8t3j-aM` once each. - `video_out_flip_tests controls` could not run in this environment because SDL selected the `offscreen` backend, which lacks Vulkan support. The Windows failure and full-suite result are documented on [issue #2462](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6090062809). This confirms the export fix independently on Linux; it does not replace the reported Windows validation. AI-assisted: yes.
popcoder565 commented 2026-10-09 22:46:44 +00:00 (Migrated from github.com)

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 onto main 09a3462e together with 4 other PRs. libSceVideoOut.prx patches, and the full ctest passes (546 of 546). Without this PR, current main stops at duplicate patched export name: LibwuIonIBw (#2462).

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090557078 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473#issuecomment-6090557078). Originally posted by [popcoder565](https://github.com/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 onto `main` 09a3462e together with 4 other PRs. `libSceVideoOut.prx` patches, and the full ctest passes (546 of 546). Without this PR, current `main` stops at `duplicate patched export name: LibwuIonIBw` (#2462). _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
Kikoarl commented 2026-10-09 22:49:52 +00:00 (Migrated from github.com)

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:

  • Build: Built cleanly in RAM (/tmp/anyps5_build) with zero warnings/errors.
  • Conventions: python3 tools/check_conventions.py --base origin/main --head HEAD -> PASS (0 errors).
  • Verification: Verified libSceVideoOut build. Dropping APS5_EXPORT for sceVideoOutAddVrrActiveStatusEvent and sceVideoOutAddVrrStatusFlagsPrivilege correctly avoids duplicate symbol/NID export generation under Windows PE / ELF NID patcher.

LGTM!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090590628 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473#issuecomment-6090590628). Originally posted by [Kikoarl](https://github.com/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`: - **Build**: Built cleanly in RAM (`/tmp/anyps5_build`) with zero warnings/errors. - **Conventions**: `python3 tools/check_conventions.py --base origin/main --head HEAD` -> **PASS (0 errors)**. - **Verification**: Verified `libSceVideoOut` build. Dropping `APS5_EXPORT` for `sceVideoOutAddVrrActiveStatusEvent` and `sceVideoOutAddVrrStatusFlagsPrivilege` correctly avoids duplicate symbol/NID export generation under Windows PE / ELF NID patcher. LGTM!
PYTHONRETARDE commented 2026-10-09 22:51:58 +00:00 (Migrated from github.com)

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 current main 3e3290dc.

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.

  • main alone stops at libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw (#2462). With this PR the full build and the libs target pass, and the patcher prints OK: .../libSceVideoOut.prx.
  • patched_libraries, guest_video_out_wqhd_detection and guest_video_out_resolution_status pass.
  • Full CTest: 539 passed, 7 failed, 1 skipped (546). None involve VideoOut. agc_driver_vopc_compare_table is #825. The other six (agc_driver_float16_misc, float16_modifiers, packed_alu, sdwa_float_selectors, sdwa_ldexp_f16, vop2_modifier_forms) come from main: they pass with 8685c14d (#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).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090616083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473#issuecomment-6090616083). Originally posted by [PYTHONRETARDE](https://github.com/PYTHONRETARDE) on 2026-10-09T22:51:58Z. --- Confirmed on Windows, built the way the Build workflow does: this PR (`13d86048`) merged into current `main` `3e3290dc`. 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. - `main` alone stops at `libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw` (#2462). With this PR the full build and the `libs` target pass, and the patcher prints `OK: .../libSceVideoOut.prx`. - `patched_libraries`, `guest_video_out_wqhd_detection` and `guest_video_out_resolution_status` pass. - Full CTest: 539 passed, 7 failed, 1 skipped (546). None involve VideoOut. `agc_driver_vopc_compare_table` is #825. The other six (`agc_driver_float16_misc`, `float16_modifiers`, `packed_alu`, `sdwa_float_selectors`, `sdwa_ldexp_f16`, `vop2_modifier_forms`) come from `main`: they pass with 8685c14d (#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).
adriadam10 commented 2026-10-10 00:10:56 +00:00 (Migrated from github.com)

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: LibwuIonIBw in libSceVideoOut). Both names hash to their NIDs, so the aliases exported each NID twice. Checked on Linux: the patched libSceVideoOut.prx exports LibwuIonIBw and kP2L8t3j-aM once each, and no other alias on main repeats its own NID. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091441101 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2473#issuecomment-6091441101). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T00:10:56Z. --- Fixes main's Windows build (run 38004935672: `duplicate patched export name: LibwuIonIBw` in libSceVideoOut). Both names hash to their NIDs, so the aliases exported each NID twice. Checked on Linux: the patched `libSceVideoOut.prx` exports `LibwuIonIBw` and `kP2L8t3j-aM` once each, and no other alias on main repeats its own NID. Merging.
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!2473
No description provided.