refactor(agc): name HV4j+E0MBHE sceAgcCreateInterpolantMapping_0100 #2319

Merged
parl0v merged 1 commit from upstream-pr/2319 into main 2026-10-09 21:01:35 +00:00
parl0v commented 2026-10-09 15:25:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-09T15:25:58Z.


What

sceAgcCreateInterpolantMapping is exported through the alias APS5_EXPORT("HV4j+E0MBHE", sceAgcCreateInterpolantMapping), but that name doesn't hash to HV4j+E0MBHE: compute_nid("sceAgcCreateInterpolantMapping") is pdEV7bI6COI. The real name has the version suffix the other Agc exports carry:

compute_nid("sceAgcCreateInterpolantMapping_0100") == "HV4j+E0MBHE"

This renames the function to sceAgcCreateInterpolantMapping_0100 and drops the alias, as #1145 did for the libc and Json2 stubs. It follows sceAgcUpdateInterpolantMapping_0100. The callers in LinkShaders.cpp, the two tests and the TechnicalDebt line for dbOlWdppb4o are updated. Behaviour is unchanged.

Side effect on the export table: the function was also exported under its own name, which nid_patcher hashed into pdEV7bI6COI, a NID no Sony module has. That one is gone; HV4j+E0MBHE is still exported (libSceAgc.prx 510 to 509 exports, checked with objdump -p).

The name isn't in the pinned NID database. It was found by hashing the database's names with Agc version suffixes appended. HV4j+E0MBHE is imported by all eight titles in #265 to #272.

Tested

Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, BUILD_TESTING=ON, on d70b8998.

  • libSceAgc.prx export table before and after, as above.
  • ctest -R "agc|interpolant|shader": 259/259 passed (1 skipped by design).
  • 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; silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • 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:4802457104 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-09T15:25:58Z. --- ### What `sceAgcCreateInterpolantMapping` is exported through the alias `APS5_EXPORT("HV4j+E0MBHE", sceAgcCreateInterpolantMapping)`, but that name doesn't hash to `HV4j+E0MBHE`: `compute_nid("sceAgcCreateInterpolantMapping")` is `pdEV7bI6COI`. The real name has the version suffix the other Agc exports carry: ``` compute_nid("sceAgcCreateInterpolantMapping_0100") == "HV4j+E0MBHE" ``` This renames the function to `sceAgcCreateInterpolantMapping_0100` and drops the alias, as #1145 did for the libc and Json2 stubs. It follows `sceAgcUpdateInterpolantMapping_0100`. The callers in `LinkShaders.cpp`, the two tests and the TechnicalDebt line for `dbOlWdppb4o` are updated. Behaviour is unchanged. Side effect on the export table: the function was also exported under its own name, which `nid_patcher` hashed into `pdEV7bI6COI`, a NID no Sony module has. That one is gone; `HV4j+E0MBHE` is still exported (`libSceAgc.prx` 510 to 509 exports, checked with `objdump -p`). The name isn't in the pinned NID database. It was found by hashing the database's names with Agc version suffixes appended. `HV4j+E0MBHE` is imported by all eight titles in #265 to #272. ### Tested Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `BUILD_TESTING=ON`, on d70b8998. - `libSceAgc.prx` export table before and after, as above. - `ctest -R "agc|interpolant|shader"`: 259/259 passed (1 skipped by design). - `tools/check_conventions.py --base origin/main` passes. ### 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 - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [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
Kikoarl commented 2026-10-09 20:00:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-09T20:00:51Z.


Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at c90f8553:

  • 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 InterpolantMapping.cpp and ShaderHelpers.cpp test suites. Replaces hashed NID HV4j+E0MBHE with proper canonical export sceAgcCreateInterpolantMapping_0100 across all callers.

LGTM!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088304542 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319#issuecomment-6088304542). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-09T20:00:51Z. --- Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at `c90f8553`: - **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 `InterpolantMapping.cpp` and `ShaderHelpers.cpp` test suites. Replaces hashed NID `HV4j+E0MBHE` with proper canonical export `sceAgcCreateInterpolantMapping_0100` across all callers. LGTM!
parl0v commented 2026-10-09 20:09:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-09T20:09:38Z.


Thanks for testing it on Linux, @Kikoarl!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088436693 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319#issuecomment-6088436693). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-09T20:09:38Z. --- Thanks for testing it on Linux, @Kikoarl!
github-actions[bot] commented 2026-10-09 20:51:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T20:51:54Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#2071 core/libs/prx/libSceAgc/Shader/src/LinkShaders.cpp L29
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089053718 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319#issuecomment-6089053718). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T20:51:54Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2071 | `core/libs/prx/libSceAgc/Shader/src/LinkShaders.cpp` [L29](https://github.com/boykopovar/AnyPS5/blob/5694d3fd3e94d168b954796cced7312c5381a0be/core/libs/prx/libSceAgc/Shader/src/LinkShaders.cpp#L29) | | |
adriadam10 commented 2026-10-09 21:01:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:01:32Z.


Checked compute_nid("sceAgcCreateInterpolantMapping_0100") == "HV4j+E0MBHE" (the old name hashes to pdEV7bI6COI), no remaining references to the old name, build + agc_interpolant_mapping / agc_shader_helpers on top of current main, TechnicalDebt line placement; also confirmed on Linux by @Kikoarl. Behaviour unchanged; merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089189949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319#issuecomment-6089189949). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T21:01:32Z. --- Checked `compute_nid("sceAgcCreateInterpolantMapping_0100") == "HV4j+E0MBHE"` (the old name hashes to `pdEV7bI6COI`), no remaining references to the old name, build + `agc_interpolant_mapping` / `agc_shader_helpers` on top of current `main`, TechnicalDebt line placement; also confirmed on Linux by @Kikoarl. Behaviour unchanged; merging once CI is green.
github-actions[bot] commented 2026-10-09 21:09:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T21:09:37Z.


Progress report (d70b899 → c90f855)

➖ System libraries: 84.69% (+0.0%, +1 implemented, -1 removed functions)

✅ 1 implemented
Library Name
libSceAgc sceAgcCreateInterpolantMapping_0100
🗑️ 1 removed
Library Name
libSceAgc sceAgcCreateInterpolantMapping
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089305004 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2319#issuecomment-6089305004). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T21:09:37Z. --- <!-- progress-report --> ### Progress report (d70b899 → c90f855) ➖ **System libraries**: 84.69% (+0.0%, +1 implemented, -1 removed functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAgc | `sceAgcCreateInterpolantMapping_0100` | </details> <details> <summary>🗑️ 1 removed</summary> | Library | Name | | - | - | | libSceAgc | `sceAgcCreateInterpolantMapping` | </details>
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!2319
No description provided.