feat(agc-driver): report submit validation as unavailable #2849

Closed
alfalfa-star wants to merge 2 commits from upstream-pr/2849 into main
alfalfa-star commented 2026-10-10 16:36:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T16:36:54Z.


What

Implements the five libSceAgcDriver submit validation exports that still called NotImplemented_nid_no_patch:

  • sceAgcDriverSetSubmitValidationMode, sceAgcDriverGetSubmitValidationMode
  • sceAgcDriverSetSubmitValidationConfig, sceAgcDriverGetSubmitValidationConfig
  • sceAgcDriverSetValidationErrorOutputFrequency

Each returns DEBUG_UNAVAILABLE (0x8A6C1000) without reading its arguments. This matches sceAgcDriverIsSubmitValidationEnabled, which already reports validation as off.

Source: OpenAGC describes each of these exports in a title's bundled libSceAgcDriver.sprx as mov eax, 0x8a6c1000; ret. That was not checked against a console's system module, and the parameter lists follow OpenAGC only, so both are recorded in TechnicalDebt.

Tested

Linux (Arch, GCC), Release build, on main 57f96fd2:

  • guest_agc_driver_resources: calls all five, checks the error code, and checks that the mode and config outputs are left untouched and validation still reports off. It aborts without this change (exit 134).
  • Full ctest: 698/698 passed (4 skipped for lack of a display).
  • tools/check_conventions.py --base upstream/main passed.

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. Adds the same DEBUG_UNAVAILABLE constant to Status.cpp and touches the same test as #2851, so whichever merges second needs a rebase
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812781498 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-10T16:36:54Z. --- ### What Implements the five libSceAgcDriver submit validation exports that still called `NotImplemented_nid_no_patch`: - `sceAgcDriverSetSubmitValidationMode`, `sceAgcDriverGetSubmitValidationMode` - `sceAgcDriverSetSubmitValidationConfig`, `sceAgcDriverGetSubmitValidationConfig` - `sceAgcDriverSetValidationErrorOutputFrequency` Each returns `DEBUG_UNAVAILABLE` (`0x8A6C1000`) without reading its arguments. This matches `sceAgcDriverIsSubmitValidationEnabled`, which already reports validation as off. Source: [OpenAGC](https://github.com/OpenAGC/OpenAGC/blob/main/src/game_compat.c) describes each of these exports in a title's bundled `libSceAgcDriver.sprx` as `mov eax, 0x8a6c1000; ret`. That was not checked against a console's system module, and the parameter lists follow OpenAGC only, so both are recorded in TechnicalDebt. ### Tested Linux (Arch, GCC), Release build, on `main` 57f96fd2: - `guest_agc_driver_resources`: calls all five, checks the error code, and checks that the mode and config outputs are left untouched and validation still reports off. It aborts without this change (exit 134). - Full `ctest`: 698/698 passed (4 skipped for lack of a display). - `tools/check_conventions.py --base upstream/main` passed. ### 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. Adds the same `DEBUG_UNAVAILABLE` constant to `Status.cpp` and touches the same test as #2851, so whichever merges second needs a rebase - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-10 16:38:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:18Z.


Progress report (57f96fd → e18b5ce)

📈 System libraries: 84.68% (+0.16%, +5 implemented functions)

✅ 5 implemented
Library Name
libSceAgcDriver sceAgcDriverGetSubmitValidationConfig
libSceAgcDriver sceAgcDriverGetSubmitValidationMode
libSceAgcDriver sceAgcDriverSetSubmitValidationConfig
libSceAgcDriver sceAgcDriverSetSubmitValidationMode
libSceAgcDriver sceAgcDriverSetValidationErrorOutputFrequency
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099783507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6099783507). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T16:38:18Z. --- <!-- progress-report --> ### Progress report (57f96fd → e18b5ce) 📈 **System libraries**: 84.68% (+0.16%, +5 implemented functions) <details> <summary>✅ 5 implemented</summary> | Library | Name | | - | - | | libSceAgcDriver | `sceAgcDriverGetSubmitValidationConfig` | | libSceAgcDriver | `sceAgcDriverGetSubmitValidationMode` | | libSceAgcDriver | `sceAgcDriverSetSubmitValidationConfig` | | libSceAgcDriver | `sceAgcDriverSetSubmitValidationMode` | | libSceAgcDriver | `sceAgcDriverSetValidationErrorOutputFrequency` | </details>
oneandonlydean commented 2026-10-10 19:18:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:02Z.


Which title calls these on main? With the title ID and the log line where it stops, this can go in; otherwise I'll close it until one does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101235972 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6101235972). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T19:18:02Z. --- Which title calls these on main? With the title ID and the log line where it stops, this can go in; otherwise I'll close it until one does.
screamm commented 2026-10-10 22:58:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:58:02Z.


Windows validation of the current head e18b5ce0 merged onto main 262c0316.

Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including the libs target.

  • ctest -j8 -E "^agc_driver_|^video_out_flip" passes 475/475, including guest_agc_driver_resources.
  • The GPU execution tests (agc_driver_*) were not run; two of them fail on unchanged main on this host for unrelated reasons.

Validation run with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103086482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6103086482). Originally posted by [screamm](https://github.com/screamm) on 2026-10-10T22:58:02Z. --- Windows validation of the current head `e18b5ce0` merged onto `main` `262c0316`. Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including the `libs` target. - `ctest -j8 -E "^agc_driver_|^video_out_flip"` passes 475/475, including `guest_agc_driver_resources`. - The GPU execution tests (`agc_driver_*`) were not run; two of them fail on unchanged `main` on this host for unrelated reasons. Validation run with Claude Code assistance.
Silverash-i8 commented 2026-10-11 01:57:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T01:57:33Z.


Windows run, since the PR has no Intel or Windows results yet: Windows 11, WinLibs GCC 15.2.0 r7, Release, merged onto main d31b57a4 in one build with #3217, #3202, #3167, #3137, #2863, #2849 and #2847, on an RTX 5060 Laptop and the Arrow Lake iGPU (ANYPS5_GPU=Intel).

  • guest_agc_driver_resources passes on both GPUs.

Full ctest of that build on both GPUs has no failure that isn't also on plain main here (guest_filesystem needs the symlink privilege, #3169; the Intel ones are listed on #2114 and #3207).

AI-assisted (Claude Code); I ran this on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104401826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6104401826). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T01:57:33Z. --- Windows run, since the PR has no Intel or Windows results yet: Windows 11, WinLibs GCC 15.2.0 r7, Release, merged onto `main` d31b57a4 in one build with #3217, #3202, #3167, #3137, #2863, #2849 and #2847, on an RTX 5060 Laptop and the Arrow Lake iGPU (`ANYPS5_GPU=Intel`). - `guest_agc_driver_resources` passes on both GPUs. Full `ctest` of that build on both GPUs has no failure that isn't also on plain `main` here (`guest_filesystem` needs the symlink privilege, #3169; the Intel ones are listed on #2114 and #3207). AI-assisted (Claude Code); I ran this on my machine.
adriadam10 commented 2026-10-11 07:06:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:06:17Z.

Review: CHANGES_REQUESTED


Code, test and TechnicalDebt line look right: the five exports return 0x8A6C1000 as OpenAGC's disassembly of a title's libSceAgcDriver.sprx shows, and guest_agc_driver_resources fails here without the change.

Open request from @oneandonlydean above, still unanswered: please add the not implemented line where a title stops on one of these five on main (title ID and log line). Without a title that reaches them this stays a stub nobody needs. Once that's posted this is ready to merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5482275777 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#pullrequestreview-5482275777). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:06:17Z. **Review:** CHANGES_REQUESTED --- Code, test and TechnicalDebt line look right: the five exports return `0x8A6C1000` as OpenAGC's disassembly of a title's `libSceAgcDriver.sprx` shows, and `guest_agc_driver_resources` fails here without the change. Open request from @oneandonlydean above, still unanswered: please add the `not implemented` line where a title stops on one of these five on main (title ID and log line). Without a title that reaches them this stays a stub nobody needs. Once that's posted this is ready to merge.
alfalfa-star commented 2026-10-11 09:45:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:13Z.


No title I can run reaches these five exports on current main (90c152e8):

  • LEGO Horizon Adventures (PPSA14632) aborts after about 35 s at color views of several array slices are unsupported (#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling these five exports.
  • Kena: Bridge of Spirits (PPSA01802) crashes in game code after about 60 s, with no not implemented line before it.

I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.

Tested: Linux, GCC, Release, RX 9070 XT (RADV): full ctest 813/813 (4 video_out_flip_* skipped) on main 90c152e8 merged with this branch, #2847, #2850 and #2852; tools/check_conventions.py passes.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107712971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6107712971). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-11T09:45:13Z. --- No title I can run reaches these five exports on current `main` (90c152e8): - LEGO Horizon Adventures (PPSA14632) aborts after about 35 s at `color views of several array slices are unsupported` (#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling these five exports. - Kena: Bridge of Spirits (PPSA01802) crashes in game code after about 60 s, with no `not implemented` line before it. I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready. **Tested:** Linux, GCC, Release, RX 9070 XT (RADV): full `ctest` 813/813 (4 `video_out_flip_*` skipped) on `main` 90c152e8 merged with this branch, #2847, #2850 and #2852; `tools/check_conventions.py` passes. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-11 23:58:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:58:02Z.


Closing until a title reaches these, since none does yet. Reopen with the title ID and the log line when one stops here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115344058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2849#issuecomment-6115344058). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:58:02Z. --- Closing until a title reaches these, since none does yet. Reopen with the title ID and the log line when one stops here.

Pull request closed

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!2849
No description provided.