fix(agc): ignore the unused legacy initialization argument #20434

Merged
JJenkx merged 2 commits from upstream-pr/20434 into main 2026-11-15 06:39:57 +00:00
JJenkx commented 2026-11-15 05:58:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-15T05:58:25Z.


What

sceAgcInit_0090 checks its unused first argument as a state pointer and throws for null or unaligned values. The bundled PPSA06652 wrapper ignores that argument. Remove the check and continue forwarding the version to the existing sceAgcInit implementation.

The wrapper contract comes from static library-side inspection of the user-owned bundled compatibility module, not authenticated retail firmware or a new console measurement. The debt fragment preserves the existing canonical initialization compatibility gap, including the previously reported firmware 13.60 scalar-call differences.

Tested

Arch Linux; base c1dd2b5b502e, identical-fixture control f7c37b818dab, executed change 9f89a03ebabc. Final head 4425abd40e00 only condenses the debt fragment; C++ and test sources remain unchanged.

  • Both full SDK/relinker builds pass. Each frozen bank contains 834 files, unchanged throughout qualification.
  • Identical fixture checks 49 first-argument/version combinations, preserves the valid state sentinel, and compares results with the canonical initializer. Main stops on the first null argument; the change completes the matrix in both initialization and full-command registrations. These checks establish delegation, not console accuracy of the existing canonical initializer.
  • Focused CTest: main 2 pass / 2 expected failures; change 4 pass. Patterns ^(agc_initialization|agc_commands|agc_driver_pm4)$ and ^agc_driver_alpha_to_coverage$, using ctest -V.
  • Both real RX 6650 XT GPU gates use required Vulkan, no shader cache, validation 1.4.363 and loader layer diagnostics. Logs confirm device selection and validation-layer insertion; zero skips, missing layers or VUID errors. The GPU gate is an unchanged regression test; no title bring-up, FPS or Windows claim.
  • Final conventions pass. Official branch preflight checks 1511 open PRs. Manual live-head review of its two fail-closed comparisons (#19355/#19708) finds separate draw/indirect-dispatch changes in Commands.cpp, with no initialization fixture changes. Clean source-only merge against later main 6ad1fe8a7196; that later tree was not executed.

Paired build/test logs, source patches, reference provenance and manual overlap review, SHA-256 6f387eedac64a0a72bbb441e7733d749ea5def4d685d6275f4127bdd8154dca2. Downloaded archive and all 38 members verified. No private reference binary or disassembly is attached.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: AMD Radeon RX 6650 XT, RADV/Mesa 26.2.7, Arch Linux; validation 1.4.363
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5319999265 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20434). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-15T05:58:25Z. --- ### What `sceAgcInit_0090` checks its unused first argument as a state pointer and throws for null or unaligned values. The bundled PPSA06652 wrapper ignores that argument. Remove the check and continue forwarding the version to the existing `sceAgcInit` implementation. The wrapper contract comes from static library-side inspection of the user-owned bundled compatibility module, not authenticated retail firmware or a new console measurement. The debt fragment preserves the existing canonical initialization compatibility gap, including the previously reported firmware 13.60 scalar-call differences. ### Tested Arch Linux; base `c1dd2b5b502e`, identical-fixture control `f7c37b818dab`, executed change `9f89a03ebabc`. Final head `4425abd40e00` only condenses the debt fragment; C++ and test sources remain unchanged. - Both full SDK/relinker builds pass. Each frozen bank contains **834 files**, unchanged throughout qualification. - Identical fixture checks **49 first-argument/version combinations**, preserves the valid state sentinel, and compares results with the canonical initializer. Main stops on the first null argument; the change completes the matrix in both initialization and full-command registrations. These checks establish delegation, not console accuracy of the existing canonical initializer. - Focused CTest: **main 2 pass / 2 expected failures; change 4 pass**. Patterns `^(agc_initialization|agc_commands|agc_driver_pm4)$` and `^agc_driver_alpha_to_coverage$`, using `ctest -V`. - Both real RX 6650 XT GPU gates use required Vulkan, no shader cache, validation 1.4.363 and loader layer diagnostics. Logs confirm device selection and validation-layer insertion; **zero skips, missing layers or VUID errors**. The GPU gate is an unchanged regression test; no title bring-up, FPS or Windows claim. - Final conventions pass. Official branch preflight checks **1511 open PRs**. Manual live-head review of its two fail-closed comparisons (#19355/#19708) finds separate draw/indirect-dispatch changes in `Commands.cpp`, with no initialization fixture changes. Clean source-only merge against later main `6ad1fe8a7196`; that later tree was not executed. [Paired build/test logs, source patches, reference provenance and manual overlap review](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/agc-init-0090-linux-20261115.tar.gz), SHA-256 `6f387eedac64a0a72bbb441e7733d749ea5def4d685d6275f4127bdd8154dca2`. Downloaded archive and all 38 members verified. No private reference binary or disassembly is attached. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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) and the licence notice of code adapted from upstream (see AGENTS.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: AMD Radeon RX 6650 XT, RADV/Mesa 26.2.7, Arch Linux; validation 1.4.363 - [x] AI-assisted: yes
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!20434
No description provided.