Skip to content

fix(libSceAgc): ignore the ACB event address as the console does - #19339

Merged
oneandonlydean merged 3 commits into
boykopovar:mainfrom
angrysandhill:fix/agc-acb-event-write-address
Nov 16, 2026
Merged

oneandonlydean merged 3 commits into
boykopovar:mainfrom
angrysandhill:fix/agc-acb-event-write-address

Conversation

@angrysandhill

Copy link
Copy Markdown
Contributor

What

sceAgcAcbEventWrite throws whenever its address argument is not null. In prosper's console measurements (agcbuild_AcbEventWrite_a/b/c), the console ignores the address and writes the usual two-dword EVENT_WRITE packet:

Event type Address Packet
0x11 0x22222222 0xc0004600, 0x11
1 2 0xc0004600, 0x1
0x22 0x3333333344444444 0xc0004600, 0x22

The address is now ignored, except for event types 0x38 and 0x39, the two that the DCB form writes an address for. No ACB case measures those, so an address with them is still refused. Calls without an address are unchanged. The three rows now match the console and are removed from known.tsv.

Sources: the rows above, from prosper's pinned console measurements, SHA-256 aa6cc7b818a1016c20732e4547cea8c12b0472aec681bcf11f8f9a3c897f7de3, checked by library_oracle.py.

testComputeEventWrite in tests/NopAndComputeEvent.cpp checks:

  • the three console cases;
  • that event types 0x38 and 0x39 with an address still throw.

Tested

Windows 10 22H2, AMD Radeon RX 6750 XT (gfx1031), Adrenalin 26.10.1 (driver 32.0.21045.16010), WinLibs GCC 15.2, Release. Main b00dc5a6b7, change 051b16224d.

  • Replay of the pinned agcbuild measurements, same replay executable throughout:
    • main: 92 compared, 156 known findings;
    • this change with main's known.tsv: 95 compared, 0 new, and exactly the three AcbEventWrite rows reported as now matching;
    • this change with the updated known.tsv: 153 known findings, 0 new, 0 now matching.
  • Tests: ctest -R '^(agc_nop_and_compute_event.*|agc_commands|agc_driver_job_manager_compute|agc_driver_queued_index_read_order|agc_driver_queued_indirect_read_order)$' passes 5/5.
    • The three GPU tests are a physical regression check. They pass under VK_LAYER_KHRONOS_validation 1.4.367, with 0 VUID- lines and no missing-layer warnings.
  • Negative control: with only the new test applied to main, agc_nop_and_compute_event fails with sceAgcAcbEventWrite: ACB event address is not supported.
  • Overlap: pr_overlap.py --branch finds no overlap with open pull requests. Merge previews with my open fix(libSceAgc): encode WaitRegMem arguments as the console does #19290, fix(libSceAgc): encode COND_EXEC and indirect register arguments as the console does #19309 and fix(libSceAgc): encode jumps as the console does #19320, which also edit known.tsv, are clean.
  • Linux was not tested.

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: AMD Radeon RX 6750 XT (gfx1031), Adrenalin 26.10.1, Windows 10 22H2. The GPU tests ran as a regression check under the validation layer; the packet tests are CPU-only.
  • AI-assisted: yes

🤖 Generated with Claude Code

The console writes the two-dword EVENT_WRITE packet and ignores the
address for the measured event types; an address with 0x38 or 0x39, the
types the DCB form writes one for, is still refused. Three oracle rows
now match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JJenkx

JJenkx commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 051b16224d, merged onto main 1965e614cb. Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release.

agc_nop_and_compute_event passed in 3 of 3 runs in both setups:

  • GPU, through the shared Windows GPU FIFO with ANYPS5_REQUIRE_VULKAN=1 (merge b541a5e8e5). The binary matched the hash recorded at preparation, and the receipt shows exit 0 and app_count=0.
  • CPU, Vulkan hidden (merge af38901f62).

AI-assisted: yes.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

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
PR 21326 tools/library-oracle/known.tsv L13-18

Resolve known.tsv by keeping the DMA_DATA rows boykopovar#20311 changed and removing
this change's AcbEventWrite rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 15, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 15, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@oneandonlydean
oneandonlydean merged commit bca2d36 into boykopovar:main Nov 16, 2026
16 checks passed
@angrysandhill
angrysandhill deleted the fix/agc-acb-event-write-address branch November 22, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants