feat(agc): DMA_DATA prefetches to DST_SEL nowhere #1709
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1709"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MathiasDevelopes on 2026-10-08T17:16:50Z.
What
DMA_DATAwithDST_SEL2 (V_411_NOWHEREin Mesa'ssrc/amd/common/sid.h) reads its source into L2 and stores nothing. libSceAgc emits it as an L2 prefetch, with the source address repeated as the destination (c0055000 60200000 8038e000 1d 8038e000 1d 8000caf0). The validator rejected it with "DMA_DATA register or prefetch destination is not implemented", so a title that prefetches aborts.A prefetch of a memory source (
SRC_SEL0 or 3) is now accepted and writes nothing:ResolveStorereturns it as an empty store, so the packet stays ordered without a drain.DecodeMemoryCopystill rejects it, so no buffer copy is recorded.Executereturns before reading the source.A prefetch of a register, GDS or immediate source still throws ("DMA_DATA prefetch of a register, GDS or immediate source is not implemented"), and so does a register destination (
DAS).Source of the semantics: Mesa
src/amd/common/sid.h(S_411_DST_SEL,V_411_NOWHERE). Not measured on hardware: a prefetch has no visible memory effect to measure.Tested
Windows 11, RTX 3060.
agc_driver_pm4covers the new path: a prefetch resolves as an empty store, does not decode as a copy, leaves memory unchanged, and the immediate-source and register-destination forms throw. All 183agc_drivertests pass, andtools/check_conventions.py --base origin/mainpasses. PPSA07906 (Unreal Engine 5) issues these packets at startup and aborted on them; with the change it gets past them and renders its intros.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-08T17:16:56Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-09T04:52:34Z.
Linux results, since this was tested on Windows only. Everything passes here.
Nobara 44 (Linux 7.2), GCC 16.2.1, Release,
BUILD_TESTING=ON. This PR merged ontomainf1451396cleanly.mainf1451396main+ this PRctest -R agc_driver -j1-E agc_driver)The CPU failure is
guest_dynamic_loader, which fails the same way onmain.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-09T11:55:19Z.
Uncharted: Legacy of Thieves Collection (PPSA05684) stops at this on
main:I fixed it independently the same way (DST_SEL 2 from a memory source writes nothing and is not ordered as a store) while bringing the title up to its main menu, so I'm not opening a competing PR. I have not run this branch itself with the title.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:05:24Z.
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.
main)core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cppL573