refactor(agc): name dbOlWdppb4o and vieBRwlh1Lw the _10000 interpolant mappings #5848

Merged
wachi35676 merged 1 commit from upstream-pr/5848 into main 2026-10-15 21:00:46 +00:00
wachi35676 commented 2026-10-14 13:45:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-14T13:45:13Z.


What

Names the two libSceAgc stubs that were exported only by NID. The names hash to those NIDs with tools/nid_names.py:

sceAgcCreateInterpolantMapping_10000 dbOlWdppb4o
sceAgcUpdateInterpolantMapping_10000 vieBRwlh1Lw

They are the next versions of the existing sceAgcCreateInterpolantMapping_0100 / sceAgcUpdateInterpolantMapping_0100 pair (HV4j+E0MBHE, k0E7vkgqAuE), with a five-digit version suffix; neither name is in the aerolib NID list. As in #2319, the functions in Shader/src/InterpolantMapping.cpp are renamed and their APS5_EXPORT aliases dropped, so the NID patcher derives the same NIDs from the names. The behaviour is unchanged; tests/InterpolantMapping.cpp and the three docs/dev/debt/libSceAgc.md entries use the new names.

Partly addresses #2355: dbOlWdppb4o is called from nine sites in PPSA26344 (call-site evidence there); vieBRwlh1Lw is imported by PPSA12544 (#699, #3829).

Tested

Windows 11 26200, WinLibs GCC 15.2.0 UCRT, full build with BUILD_TESTING=ON on main 5a6ad0ed3 (rebased since onto caee23fd9; the touched files did not change).

  • Export table of the patched libSceAgc.prx before and after: dbOlWdppb4o and vieBRwlh1Lw are exported in both; the unpatched library now names them sceAgcCreateInterpolantMapping_10000 / sceAgcUpdateInterpolantMapping_10000, and the stray name-hash exports of the old placeholder names (JmwlWB9ikTs, iN76DQZU8TE) are gone.
  • agc_interpolant_mapping (CPU-only register test) and patched_libraries pass.
  • python tools/check_conventions.py --base origin/main passes.

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
  • Unblocks: none (names only; PPSA26344 #2355 and PPSA12544 already load with the NID exports)
  • GPUs tested: n/a (no GPU code path changes; only the register test ran)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4858851786 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5848). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-14T13:45:13Z. --- ### What Names the two libSceAgc stubs that were exported only by NID. The names hash to those NIDs with `tools/nid_names.py`: ``` sceAgcCreateInterpolantMapping_10000 dbOlWdppb4o sceAgcUpdateInterpolantMapping_10000 vieBRwlh1Lw ``` They are the next versions of the existing `sceAgcCreateInterpolantMapping_0100` / `sceAgcUpdateInterpolantMapping_0100` pair (`HV4j+E0MBHE`, `k0E7vkgqAuE`), with a five-digit version suffix; neither name is in the aerolib NID list. As in #2319, the functions in `Shader/src/InterpolantMapping.cpp` are renamed and their `APS5_EXPORT` aliases dropped, so the NID patcher derives the same NIDs from the names. The behaviour is unchanged; `tests/InterpolantMapping.cpp` and the three `docs/dev/debt/libSceAgc.md` entries use the new names. Partly addresses #2355: `dbOlWdppb4o` is called from nine sites in PPSA26344 (call-site evidence there); `vieBRwlh1Lw` is imported by PPSA12544 (#699, #3829). ### Tested Windows 11 26200, WinLibs GCC 15.2.0 UCRT, full build with `BUILD_TESTING=ON` on `main` `5a6ad0ed3` (rebased since onto `caee23fd9`; the touched files did not change). - Export table of the patched `libSceAgc.prx` before and after: `dbOlWdppb4o` and `vieBRwlh1Lw` are exported in both; the unpatched library now names them `sceAgcCreateInterpolantMapping_10000` / `sceAgcUpdateInterpolantMapping_10000`, and the stray name-hash exports of the old placeholder names (`JmwlWB9ikTs`, `iN76DQZU8TE`) are gone. - `agc_interpolant_mapping` (CPU-only register test) and `patched_libraries` pass. - `python tools/check_conventions.py --base origin/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: none (names only; PPSA26344 #2355 and PPSA12544 already load with the NID exports) - [x] GPUs tested: n/a (no GPU code path changes; only the register test ran) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-14 13:45:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T13:45:55Z.


Progress report (caee23f → a0fc988)

➖ System libraries: 88.34% (+0.0%, +2 implemented, -2 removed functions)

✅ 2 implemented
Library Name
libSceAgc sceAgcCreateInterpolantMapping_10000
libSceAgc sceAgcUpdateInterpolantMapping_10000
🗑️ 2 removed
Library Name
libSceAgc sceAgcUnknownCreateInterpolantMapping
libSceAgc sceAgcUnknown_vieBRwlh1Lw
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6169838365 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5848#issuecomment-6169838365). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T13:45:55Z. --- <!-- progress-report --> ### Progress report (caee23f → a0fc988) ➖ **System libraries**: 88.34% (+0.0%, +2 implemented, -2 removed functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceAgc | `sceAgcCreateInterpolantMapping_10000` | | libSceAgc | `sceAgcUpdateInterpolantMapping_10000` | </details> <details> <summary>🗑️ 2 removed</summary> | Library | Name | | - | - | | libSceAgc | `sceAgcUnknownCreateInterpolantMapping` | | libSceAgc | `sceAgcUnknown_vieBRwlh1Lw` | </details>
github-actions[bot] commented 2026-10-15 12:10:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:10:25Z.


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 5889 docs/dev/debt/libSceAgc.md
PR 6447 core/libs/prx/libSceAgc/Shader/src/InterpolantMapping.cpp
core/libs/prx/libSceAgc/tests/InterpolantMapping.cpp
docs/dev/debt/libSceAgc.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191718011 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5848#issuecomment-6191718011). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:10:25Z. --- <!-- pr-overlap --> 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 5889](https://www.github.com/boykopovar/AnyPS5/pull/5889) | `docs/dev/debt/libSceAgc.md` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceAgc/Shader/src/InterpolantMapping.cpp`<br>`core/libs/prx/libSceAgc/tests/InterpolantMapping.cpp`<br>`docs/dev/debt/libSceAgc.md` |
adriadam10 commented 2026-10-15 13:41:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T13:41:47Z.


Checked that compute_nid of sceAgcCreateInterpolantMapping_10000 / sceAgcUpdateInterpolantMapping_10000 gives dbOlWdppb4o / vieBRwlh1Lw, no references to the old names remain, the dropped aliases no longer double-export, and the libSceAgc ctest subset (incl. agc_interpolant_mapping) passes on the merged tree; merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193501801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5848#issuecomment-6193501801). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T13:41:47Z. --- Checked that `compute_nid` of `sceAgcCreateInterpolantMapping_10000` / `sceAgcUpdateInterpolantMapping_10000` gives `dbOlWdppb4o` / `vieBRwlh1Lw`, no references to the old names remain, the dropped aliases no longer double-export, and the libSceAgc ctest subset (incl. `agc_interpolant_mapping`) passes on the merged tree; merging once the full Build is green.
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!5848
No description provided.