fix(agc): reread an invalid indirect register list where its packet executes #7683

Merged
Longziip merged 2 commits from upstream-pr/7683 into main 2026-10-20 13:18:57 +00:00
Longziip commented 2026-10-18 22:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Longziip on 2026-10-18T22:43:41Z.


What

SET_*_REG_INDIRECT lists are read when the command buffer is submitted (de651c628, for PPSA21402). When that copy holds an offset dword that is no register offset (bits 16-27 set, or the 0xffffffff sentinel), the queue worker now reads the list again where the packet executes, as the console PFP does, and uses that copy if it is valid. A list that is valid at submission is used exactly as before.

EA SPORTS UFC 6 (PPSA23566) intermittently submits a SET_CONTEXT_REG_INDIRECT of 181 pairs whose first entry is 0x038f038f (value 0xc8e9037e), or 0x03900390 in another run; the other 180 pairs are valid context registers (0x11, 0x12, ...). The entry is the same at submission and at execution, so the title stopped with extended register semantics are not implemented (offset dword 0x038f038f) during the intro, in roughly one launch out of three. What the PFP does with such an entry is unknown, so the packet still throws by default; APS5_SKIP_INVALID_INDIRECT_REGISTERS=1 skips the invalid entries and writes the others. The behaviour is recorded in docs/dev/debt/libSceAgcDriver.md.

Tests in agc_driver_pm4_tests: testInvalidRegisterListEntries (the UFC 6 entry throws without the switch, and with skipping the valid pairs are written and nothing else) and testRegisterListReadAgainAtExecution (a list invalid at submission and valid when its packet runs is read again).

Tested

Windows 11 Pro (build 26300), AMD Ryzen 7 5700X, NVIDIA GeForce RTX 4060 8 GB (driver 32.0.16.1664), 32 GB RAM, WinLibs GCC 15.2.0, Release.

  • agc_driver_pm4 passes with the two new tests; python tools/check_conventions.py --base origin/main passes.
  • PPSA23566 (01.004.000) on the UFC 6 testing build from #5996 with this change: the invalid list was hit again (register list entry with offset dword 0x03900390 read again where the packet executes; invalid entries are skipped), the title went on to the title screen and later the tutorial fight with no visible difference; before the change the same entry stopped it.

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: PPSA23566 #5996
  • GPUs tested: NVIDIA GeForce RTX 4060 8 GB, driver 32.0.16.1664, Windows 11 Pro
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4913475811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683). Originally posted by [Longziip](https://github.com/Longziip) on 2026-10-18T22:43:41Z. --- ### What `SET_*_REG_INDIRECT` lists are read when the command buffer is submitted (`de651c628`, for PPSA21402). When that copy holds an offset dword that is no register offset (bits 16-27 set, or the `0xffffffff` sentinel), the queue worker now reads the list again where the packet executes, as the console PFP does, and uses that copy if it is valid. A list that is valid at submission is used exactly as before. EA SPORTS UFC 6 (PPSA23566) intermittently submits a `SET_CONTEXT_REG_INDIRECT` of 181 pairs whose first entry is `0x038f038f` (value `0xc8e9037e`), or `0x03900390` in another run; the other 180 pairs are valid context registers (`0x11`, `0x12`, ...). The entry is the same at submission and at execution, so the title stopped with `extended register semantics are not implemented (offset dword 0x038f038f)` during the intro, in roughly one launch out of three. What the PFP does with such an entry is unknown, so the packet still throws by default; `APS5_SKIP_INVALID_INDIRECT_REGISTERS=1` skips the invalid entries and writes the others. The behaviour is recorded in `docs/dev/debt/libSceAgcDriver.md`. Tests in `agc_driver_pm4_tests`: `testInvalidRegisterListEntries` (the UFC 6 entry throws without the switch, and with skipping the valid pairs are written and nothing else) and `testRegisterListReadAgainAtExecution` (a list invalid at submission and valid when its packet runs is read again). ### Tested Windows 11 Pro (build 26300), AMD Ryzen 7 5700X, NVIDIA GeForce RTX 4060 8 GB (driver 32.0.16.1664), 32 GB RAM, WinLibs GCC 15.2.0, Release. - `agc_driver_pm4` passes with the two new tests; `python tools/check_conventions.py --base origin/main` passes. - PPSA23566 (01.004.000) on the UFC 6 testing build from #5996 with this change: the invalid list was hit again (`register list entry with offset dword 0x03900390 read again where the packet executes; invalid entries are skipped`), the title went on to the title screen and later the tutorial fight with no visible difference; before the change the same entry stopped it. ### 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: PPSA23566 #5996 - [x] GPUs tested: NVIDIA GeForce RTX 4060 8 GB, driver 32.0.16.1664, Windows 11 Pro - [x] AI-assisted: yes
MarcZX10 commented 2026-10-18 22:46:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:46:11Z.


One edge case in the opt-in skip path: PacketExecution.cpp chooses the execution-time list only when the whole list is valid; otherwise it passes the submission-time copy to ExecuteIndirectRegisters(..., skipInvalid=true). If the execution-time list has changed to a mix of valid and invalid entries, the valid entries from that current list are discarded and stale submission values are written instead. Could the skip path pass the current list even when it is partly invalid, then skip only its invalid entries? A regression with a partly updated list would pin down the intended behavior.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256111493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6256111493). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T22:46:11Z. --- One edge case in the opt-in skip path: `PacketExecution.cpp` chooses the execution-time list only when the *whole* list is valid; otherwise it passes the submission-time copy to `ExecuteIndirectRegisters(..., skipInvalid=true)`. If the execution-time list has changed to a mix of valid and invalid entries, the valid entries from that current list are discarded and stale submission values are written instead. Could the skip path pass the current list even when it is partly invalid, then skip only its invalid entries? A regression with a partly updated list would pin down the intended behavior.
Longziip commented 2026-10-18 22:52:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Longziip on 2026-10-18T22:52:34Z.


Thanks, good catch. Fixed in bd4a73501: when the list read at submission is invalid, the worker now always writes the copy read again where the packet executes, and with APS5_SKIP_INVALID_INDIRECT_REGISTERS=1 only that copy's invalid entries are skipped, so the valid entries of a partly updated list win over the stale submission values.

Added testPartlyUpdatedRegisterListSkipsOnlyItsInvalidEntries: the list is invalid at submission (0x038f038f, then register 0x11), is changed to 0x10 = 77 plus an invalid entry before its packet runs, and COPY_DATA reads register 0x10 back. It fails on the previous commit (the stale list was written, 0x10 stayed 74) and passes now. The debt note and the ENVIRONMENT.md row are updated to match.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256170962 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6256170962). Originally posted by [Longziip](https://github.com/Longziip) on 2026-10-18T22:52:34Z. --- Thanks, good catch. Fixed in bd4a73501: when the list read at submission is invalid, the worker now always writes the copy read again where the packet executes, and with `APS5_SKIP_INVALID_INDIRECT_REGISTERS=1` only that copy's invalid entries are skipped, so the valid entries of a partly updated list win over the stale submission values. Added `testPartlyUpdatedRegisterListSkipsOnlyItsInvalidEntries`: the list is invalid at submission (`0x038f038f`, then register `0x11`), is changed to `0x10 = 77` plus an invalid entry before its packet runs, and `COPY_DATA` reads register `0x10` back. It fails on the previous commit (the stale list was written, `0x10` stayed 74) and passes now. The debt note and the `ENVIRONMENT.md` row are updated to match.
github-actions[bot] commented 2026-10-18 22:54:50 +00:00 (Migrated from github.com)

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


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 7965 docs/dev/debt/libSceAgcDriver.md L117-118
PR 8206 docs/dev/ENVIRONMENT.md L354
PR 8281 docs/dev/debt/libSceAgcDriver.md L118-119

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5431 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
PR 5499 docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6185 core/libs/prx/libSceAgcDriver/tests/Pm4.cpp
PR 6186 core/libs/prx/libSceAgcDriver/tests/Pm4.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/Pm4.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6498 docs/dev/debt/libSceAgcDriver.md
PR 6501 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 core/libs/prx/libSceAgcDriver/Execution/include/Pm4.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp
core/libs/prx/libSceAgcDriver/tests/Pm4.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6636 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 6658 docs/dev/ENVIRONMENT.md
PR 6683 docs/dev/debt/libSceAgcDriver.md
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6946 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 6951 docs/dev/ENVIRONMENT.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7085 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7332 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7446 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7457 docs/dev/ENVIRONMENT.md
PR 7464 docs/dev/ENVIRONMENT.md
PR 7484 docs/dev/ENVIRONMENT.md
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7668 docs/dev/debt/libSceAgcDriver.md
PR 7800 docs/dev/debt/libSceAgcDriver.md
PR 7922 docs/dev/ENVIRONMENT.md
PR 7927 docs/dev/debt/libSceAgcDriver.md
PR 7948 docs/dev/debt/libSceAgcDriver.md
PR 7963 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 8004 docs/dev/ENVIRONMENT.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8099 docs/dev/debt/libSceAgcDriver.md
PR 8160 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
PR 8161 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
docs/dev/ENVIRONMENT.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256191615 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6256191615). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T22:54:50Z. --- <!-- pr-overlap --> 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 7965](https://www.github.com/boykopovar/AnyPS5/pull/7965) | `docs/dev/debt/libSceAgcDriver.md` [L117-118](https://github.com/boykopovar/AnyPS5/blob/88942aa99ddd917c8629e6ed3827835f3b2fadb4/docs/dev/debt/libSceAgcDriver.md#L117-L118) | | | | [PR 8206](https://www.github.com/boykopovar/AnyPS5/pull/8206) | `docs/dev/ENVIRONMENT.md` [L354](https://github.com/boykopovar/AnyPS5/blob/88942aa99ddd917c8629e6ed3827835f3b2fadb4/docs/dev/ENVIRONMENT.md#L354) | | | | [PR 8281](https://www.github.com/boykopovar/AnyPS5/pull/8281) | `docs/dev/debt/libSceAgcDriver.md` [L118-119](https://github.com/boykopovar/AnyPS5/blob/88942aa99ddd917c8629e6ed3827835f3b2fadb4/docs/dev/debt/libSceAgcDriver.md#L118-L119) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5115](https://www.github.com/boykopovar/AnyPS5/pull/5115) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/tests/Pm4.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/tests/Pm4.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/include/Pm4.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6498](https://www.github.com/boykopovar/AnyPS5/pull/6498) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `core/libs/prx/libSceAgcDriver/Execution/include/Pm4.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Pm4.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6658](https://www.github.com/boykopovar/AnyPS5/pull/6658) | `docs/dev/ENVIRONMENT.md` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6804](https://www.github.com/boykopovar/AnyPS5/pull/6804) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6926](https://www.github.com/boykopovar/AnyPS5/pull/6926) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6951](https://www.github.com/boykopovar/AnyPS5/pull/6951) | `docs/dev/ENVIRONMENT.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `docs/dev/ENVIRONMENT.md` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `docs/dev/ENVIRONMENT.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `docs/dev/ENVIRONMENT.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7668](https://www.github.com/boykopovar/AnyPS5/pull/7668) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `docs/dev/ENVIRONMENT.md` | | [PR 7927](https://www.github.com/boykopovar/AnyPS5/pull/7927) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7948](https://www.github.com/boykopovar/AnyPS5/pull/7948) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7963](https://www.github.com/boykopovar/AnyPS5/pull/7963) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `docs/dev/ENVIRONMENT.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8099](https://www.github.com/boykopovar/AnyPS5/pull/8099) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8160](https://www.github.com/boykopovar/AnyPS5/pull/8160) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 8161](https://www.github.com/boykopovar/AnyPS5/pull/8161) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`docs/dev/ENVIRONMENT.md` |
MarcZX10 commented 2026-10-18 22:59:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:59:51Z.


Thanks for the targeted fix and regression. The new test exercises a mixed list at execution time and confirms that current valid entries are applied while invalid entries are skipped; that addresses the stale-submission-value case I raised.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256237147 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6256237147). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T22:59:51Z. --- Thanks for the targeted fix and regression. The new test exercises a mixed list at execution time and confirms that current valid entries are applied while invalid entries are skipped; that addresses the stale-submission-value case I raised.
Longziip commented 2026-10-18 23:01:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Longziip on 2026-10-18T23:01:46Z.


Thanks for the review!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256255532 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6256255532). Originally posted by [Longziip](https://github.com/Longziip) on 2026-10-18T23:01:46Z. --- Thanks for the review!
xXPBSXx commented 2026-10-19 03:02:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-19T03:02:21Z.


Data point from a second title: Puyo Puyo Tetris 2 (PPSA01530) reaches the same packet type with this PR's head bd4a73501 merged onto main fc623324a, 3 of 3 runs: SET_CONTEXT_REG_INDIRECT at DWORD 2: register list entry with offset dword 0xffffffff read again where the packet executes, followed by indirect register sentinel semantics are not implemented. The entry is invalid at the execution point as well, so the re-read does not change the outcome for this title. With APS5_SKIP_INVALID_INDIRECT_REGISTERS=1 the next stop is DB_RENDER_CONTROL ... (register 0x0 = 0xa001e001).

Windows 10, GCC 15.2.0 Release, no input; 300 s requested, the title stopped by itself after 10-30 s. I have no source for the console's behaviour on such an entry.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258720800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6258720800). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-19T03:02:21Z. --- Data point from a second title: Puyo Puyo Tetris 2 (PPSA01530) reaches the same packet type with this PR's head `bd4a73501` merged onto `main` `fc623324a`, 3 of 3 runs: `SET_CONTEXT_REG_INDIRECT at DWORD 2: register list entry with offset dword 0xffffffff read again where the packet executes`, followed by `indirect register sentinel semantics are not implemented`. The entry is invalid at the execution point as well, so the re-read does not change the outcome for this title. With `APS5_SKIP_INVALID_INDIRECT_REGISTERS=1` the next stop is `DB_RENDER_CONTROL ... (register 0x0 = 0xa001e001)`. Windows 10, GCC 15.2.0 Release, no input; 300 s requested, the title stopped by itself after 10-30 s. I have no source for the console's behaviour on such an entry. AI-assisted (Claude Code).
savvaniss commented 2026-10-19 07:49:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T07:49:44Z.


Intel and AMD Windows data: with this PR, the 13 tests built from tests/Pm4.cpp pass on an Intel UHD 770 and an AMD RX 9070 XT.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. This head bd4a73501 merged into main 6b8228b2b.

Tests, ×3 UHD 770 RX 9070 XT
This head: agc_driver_pm4, agc_driver_pm4_failure, _failure_inline, the agc_driver_pm4_ring* tests and the stall-watchdog tests (13) 13 of 13 pass 13 of 13 pass

The updated tests/Pm4.cpp doesn't build on main without the rest of the PR, so there is no before-run.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6262355355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6262355355). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-19T07:49:44Z. --- Intel and AMD Windows data: with this PR, the 13 tests built from `tests/Pm4.cpp` pass on an Intel UHD 770 and an AMD RX 9070 XT. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. This head `bd4a73501` merged into `main` `6b8228b2b`. | Tests, ×3 | UHD 770 | RX 9070 XT | |---|---|---| | This head: `agc_driver_pm4`, `agc_driver_pm4_failure`, `_failure_inline`, the `agc_driver_pm4_ring*` tests and the stall-watchdog tests (13) | 13 of 13 pass | 13 of 13 pass | The updated `tests/Pm4.cpp` doesn't build on `main` without the rest of the PR, so there is no before-run. AI-assisted: yes (Claude Code)
adriadam10 commented 2026-10-20 13:19:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T13:19:30Z.


Checked the diff against current main, the three new agc_driver_pm4 tests (each needs the re-read or the partial skip, so it fails on main), the docs entries (ENVIRONMENT.md, libSceAgcDriver.md), and the third-party Windows runs (Intel UHD 770, RX 9070 XT) plus @MarcZX10's review. Default behaviour still throws; valid lists are untouched; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291804804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7683#issuecomment-6291804804). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T13:19:30Z. --- Checked the diff against current `main`, the three new `agc_driver_pm4` tests (each needs the re-read or the partial skip, so it fails on `main`), the docs entries (`ENVIRONMENT.md`, `libSceAgcDriver.md`), and the third-party Windows runs (Intel UHD 770, RX 9070 XT) plus @MarcZX10's review. Default behaviour still throws; valid lists are untouched; merged.
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!7683
No description provided.