feat(libSceAgc): declare PS5 pending exports #8944

Merged
xdCloudy merged 2 commits from upstream-pr/8944 into main 2026-10-24 12:32:25 +00:00
xdCloudy commented 2026-10-21 07:03:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-21T07:03:14Z.


What

Adds one pending libSceAgc export from the research source list. The declaration calls NotImplemented_nid_no_patch; signatures and behavior are unverified, and the declaration is for import resolution only. The library technical-debt file records the unknown signatures and behavior.

Tested

Not tested at runtime. python tools/check_conventions.py --base upstream/main passed; git diff --check upstream/main...HEAD passed. Full build and CI have not run.

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: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4947726346 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8944). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-21T07:03:14Z. --- ### What Adds one pending libSceAgc export from the research source list. The declaration calls `NotImplemented_nid_no_patch`; signatures and behavior are unverified, and the declaration is for import resolution only. The library technical-debt file records the unknown signatures and behavior. ### Tested Not tested at runtime. `python tools/check_conventions.py --base upstream/main` passed; `git diff --check upstream/main...HEAD` passed. Full build and CI have not run. ### 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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
oneandonlydean commented 2026-10-21 07:14:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T07:14:33Z.


@xdCloudy thanks. Four of the five names here already exist, so please drop them:

  • sceAgcCbNop and sceAgcFuseShaderHalves are implemented on main as sceAgcCbNop_nid_postfix (libSceAgc/Cb/src/Sync.cpp:13) and sceAgcFuseShaderHalves_nid_postfix (libSceAgc/Misc/src/ShaderFusion.cpp:347). A throwing stub under the plain name exports the same NID a second time, so a title could bind to the stub instead of the implementation.
  • sceAgcCreateInterpolantMapping and sceAgcUpdateInterpolantMapping are implemented by the open #8402, so a stub here would collide with it.

sceAgcAcbInitializeDefaultHardwareState is new and can stay (with its debt line).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310316856 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8944#issuecomment-6310316856). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T07:14:33Z. --- @xdCloudy thanks. Four of the five names here already exist, so please drop them: - `sceAgcCbNop` and `sceAgcFuseShaderHalves` are implemented on `main` as `sceAgcCbNop_nid_postfix` (`libSceAgc/Cb/src/Sync.cpp:13`) and `sceAgcFuseShaderHalves_nid_postfix` (`libSceAgc/Misc/src/ShaderFusion.cpp:347`). A throwing stub under the plain name exports the same NID a second time, so a title could bind to the stub instead of the implementation. - `sceAgcCreateInterpolantMapping` and `sceAgcUpdateInterpolantMapping` are implemented by the open #8402, so a stub here would collide with it. `sceAgcAcbInitializeDefaultHardwareState` is new and can stay (with its debt line).
xdCloudy commented 2026-10-21 07:18:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-21T07:18:28Z.


Removed sceAgcCbNop, sceAgcFuseShaderHalves, sceAgcCreateInterpolantMapping, and sceAgcUpdateInterpolantMapping plus their debt references. The PR now contains only sceAgcAcbInitializeDefaultHardwareState. Local conventions and diff checks pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310379361 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8944#issuecomment-6310379361). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-21T07:18:28Z. --- Removed sceAgcCbNop, sceAgcFuseShaderHalves, sceAgcCreateInterpolantMapping, and sceAgcUpdateInterpolantMapping plus their debt references. The PR now contains only sceAgcAcbInitializeDefaultHardwareState. Local conventions and diff checks pass.
xdCloudy commented 2026-10-21 07:30:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-21T07:30:42Z.


I found a gap in my overlap checker: it compared export names literally and did not normalize _nid_postfix / _nid_disambigN aliases, which can resolve to the same NID as a plain name. I updated the checker to compare normalized names and checked this PR against current main and the available open PR diffs; no remaining normalized-name overlap turned up for this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310578092 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8944#issuecomment-6310578092). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-21T07:30:42Z. --- I found a gap in my overlap checker: it compared export names literally and did not normalize `_nid_postfix` / `_nid_disambigN` aliases, which can resolve to the same NID as a plain name. I updated the checker to compare normalized names and checked this PR against current `main` and the available open PR diffs; no remaining normalized-name overlap turned up for this PR.
xdCloudy commented 2026-10-21 07:41:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-21T07:41:59Z.


I manually compared the shared AGC Unimplemented.cpp changes with #8296. This PR adds sceAgcAcbInitializeDefaultHardwareState; #8296 changes other AGC entries. No duplicate export was found. The shared-file hunk may need a rebase/manual combine if #8296 lands first.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310762053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8944#issuecomment-6310762053). Originally posted by [xdCloudy](https://github.com/xdCloudy) on 2026-10-21T07:41:59Z. --- I manually compared the shared AGC `Unimplemented.cpp` changes with #8296. This PR adds `sceAgcAcbInitializeDefaultHardwareState`; #8296 changes other AGC entries. No duplicate export was found. The shared-file hunk may need a rebase/manual combine if #8296 lands first.
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!8944
No description provided.