fix(agc): keep a compute data hit's live words with the regions that span them #6911

Merged
EagleBearerYS merged 2 commits from upstream-pr/6911 into main 2026-10-20 09:23:59 +00:00
EagleBearerYS commented 2026-10-16 17:53:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T17:53:16Z.


What

A compute dispatch resolved ahead hands its data hit to the dispatch that adopts it with copies of its regions and words:

parked.captured = captured;
parked.liveWords = liveWords;

(Execution/src/Driver/Dispatch/Dispatch.cpp:386-387.) The copied regions still point into the local liveWords, which is freed when the resolving dispatch returns. The adopting dispatch builds its snapshots from those regions. For an address-based program, ShaderResources::Complete → prepareAddressBindings → GuestBufferMemory::AddSnapshot then compares freed bytes with the live region. Where no live region owns the snapshot, it uploads them (AddSnapshot's copy).

This runs in the default configuration. execute resolves every compute-queue submission ahead (PacketExecution.cpp:316-319), so any title with an address-based compute shader on an async compute queue, whose scalar-loaded constants change between submissions, reaches it on each such data hit. It came in with #1864's resolve-ahead path.

This PR moves the regions and words into the parked entry instead of copying them, so the words travel with the regions that span them. It also captures liveWords by move in the pipelined dispatch item. That second change is hardening: a pipelined variant is never address-based today, so that path never reads the words.

Related: #5769

The title. Onimusha: Way of the Sword (PPSA27836) prints this warning on plain main (31cbb55d7, frankea's main1.err in #5769, 2026-10-16). With #5884 and #5907, which get further into the game, the warning's running count reaches 9 with host imports and 221 without:

[gpu] guest snapshot differs from registered memory: snapshot 0x2112c00970+0x20 (live region 0x2112c00000+0x10000, writable, host-backed) differs first at +0x0; the live region serves the GPU (1 mismatches so far; APS5_SNAPSHOT_CHECK_FATAL=1 fails the dispatch instead)
  • Why it looked like this bug: the snapshots are small (0x10-0x38 bytes), as scalar-loaded constant ranges are.
  • With this PR, the warnings stay: simonbronk ran the title with it (2026-10-17, #5769).
    • Tree: main 17cfb1f4c + #5915 + #6557 + #6727 + #6762 + this PR, RTX 5070, host imports on.
    • Both warnings remain, in the same region and with the same counts as in a run without it.
    • So this title's warnings have another cause, and the link stays "Related". This PR stands on the freed read its own tests show (see Tested).

How.

  1. fix(agc): keep a data hit's live words with the regions that span them: the two moves, and the new test agc_driver_dispatch_data_hit_words (tests/execution/DispatchDataHitWords.cpp).
    • The test registers one address-based compute shader: an s_load_dword of a constant, a global_load_dword through a pointer, and a buffer_store_dword.
    • It submits the shader five times on an ACB queue, changing the constant every round. The first round inserts, and the next four are data hits resolved ahead and adopted. It checks every lane is constant + 1.
  2. test(agc): fail the data hit test on the snapshot mismatches it causes: AddSnapshot's mismatch count, a function-local static until now, becomes SnapshotStats::mismatched next to the existing compare counters, read by SnapshotMismatches(). The test requires the count unchanged across its data hits.

Why the moves are enough:

  • A moved vector keeps its buffer, which now travels with the regions: from the local, to the parked map node, to ahead, to the adopting dispatch's locals.
  • Both moves happen right before a return, and nothing reads captured or liveWords after them.
  • Nothing else copies a ResolvedDispatch. resolveGroupAhead and IndirectDispatch.cpp read only addresses and sizes from it.

Tested

  • Linux (lavapipe, gcc 13.3, CI's Linux configure), on main 66e290f1c0:
    • red: agc_driver_dispatch_data_hit_words with Dispatch.cpp at main's: 0/20, each run printing the line above and "its snapshots differ from the registered memory serving them";
    • green: 20/20;
    • ASan (-DANYPS5_ENABLE_ASAN=ON): red 0/5, each a heap-use-after-free in AddSnapshot's memcmp, freed by resolveGroupAhead → dispatch; green 5/5 with no report;
    • ctest -R '^agc': 625/625, 43 skipped as expected (main: 624/624).
  • GitHub runners (run 38940277474):
    • Linux: with main's Dispatch.cpp and the new counter kept, the test failed in each of 3 runs. With the fix it passed 20/20, along with agc_driver_pipelined_dispatch and agc_driver_pipelined_dispatch_item. The libc and libkernel suites show no new failures; precise_wait fails on main on that runner too.
    • Windows: it builds with MinGW, but the three Vulkan tests skip on that runner, which has no Vulkan device, so it gives neither a red nor a green.
    • A Windows red would depend on the allocator anyway: the CRT heap likely leaves a freed 4-byte block's contents alone. The Linux and ASan reds are the dependable ones.
  • CI's Linux job, mirrored (its configure, registration, build, libs, ctest on lavapipe and check_skips.py, on f5fd23ee3): 1,291 of 1,296 passed. The 5 failures are IPv6 tests the build container always fails, and check_skips.py flags only guest_sce_net, which that container always skips.
  • AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11 (WinLibs GCC 15.2.0, Release), run by keravyn-ops at f5fd23ee3 (comment): agc_driver_dispatch_data_hit_words passes.
  • NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 (GCC 15.2, Release), run by jotitadev at f5fd23ee3 merged onto main 47a266cf9 (review): agc_driver_dispatch_data_hit_words, agc_driver_pipelined_dispatch and agc_driver_pipelined_dispatch_item pass 3/3 on the 3070 and pass on lavapipe; agc_driver_dispatch_data_hit_words passes --repeat until-fail:20 on the 3070. With Dispatch.cpp from main it fails 10/10 on the 3070 and 3/3 on lavapipe: data hit 1, resolved ahead on the compute queue: its snapshots differ from the registered memory serving them (1 snapshot mismatches). ^agc passes 650 of 650 on both (main: 649 of 649).
  • tools/check_conventions.py: passed.

Overlap. The overlap check finds no conflict with the 34 open PRs that touch these files and merge into current main. The other sixteen couldn't be checked until they merge into main again.

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
  • Unblocks: none known. Related: Onimusha: Way of the Sword (PPSA27836) #5769. A run with this PR still shows its "guest snapshot differs from registered memory" warnings, so they have another cause (see What)
  • GPUs tested: lavapipe (Mesa llvmpipe) on Ubuntu 24.04, on a cloud worker and on GitHub's Linux runner; GitHub's Windows runner has no Vulkan device. NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11: agc_driver_dispatch_data_hit_words passes 5 of 5 with the fix ("4 data hits resolved ahead read their own live words"), on main 66e290f1c0 with this PR, #6454 and #6678 merged (the other two don't touch this path); the red is from Linux and ASan, since on Windows a freed word may keep its value; AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11: the new test passes (keravyn-ops); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04: the new test passes, and fails with main's Dispatch.cpp (jotitadev)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4892228868 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T17:53:16Z. --- ### What A compute dispatch resolved ahead hands its data hit to the dispatch that adopts it with copies of its regions and words: ```cpp parked.captured = captured; parked.liveWords = liveWords; ``` (`Execution/src/Driver/Dispatch/Dispatch.cpp:386-387`.) The copied regions still point into the local `liveWords`, which is freed when the resolving `dispatch` returns. The adopting dispatch builds its snapshots from those regions. For an address-based program, `ShaderResources::Complete` → `prepareAddressBindings` → `GuestBufferMemory::AddSnapshot` then compares freed bytes with the live region. Where no live region owns the snapshot, it uploads them (`AddSnapshot`'s copy). This runs in the default configuration. `execute` resolves every compute-queue submission ahead (`PacketExecution.cpp:316-319`), so any title with an address-based compute shader on an async compute queue, whose scalar-loaded constants change between submissions, reaches it on each such data hit. It came in with #1864's resolve-ahead path. This PR moves the regions and words into the parked entry instead of copying them, so the words travel with the regions that span them. It also captures `liveWords` by move in the pipelined dispatch item. That second change is hardening: a pipelined variant is never address-based today, so that path never reads the words. Related: #5769 **The title.** Onimusha: Way of the Sword (PPSA27836) prints this warning on plain `main` (31cbb55d7, frankea's `main1.err` in #5769, 2026-10-16). With #5884 and #5907, which get further into the game, the warning's running count reaches 9 with host imports and 221 without: ``` [gpu] guest snapshot differs from registered memory: snapshot 0x2112c00970+0x20 (live region 0x2112c00000+0x10000, writable, host-backed) differs first at +0x0; the live region serves the GPU (1 mismatches so far; APS5_SNAPSHOT_CHECK_FATAL=1 fails the dispatch instead) ``` - **Why it looked like this bug:** the snapshots are small (0x10-0x38 bytes), as scalar-loaded constant ranges are. - **With this PR, the warnings stay:** simonbronk ran the title with it (2026-10-17, #5769). - Tree: `main` 17cfb1f4c + #5915 + #6557 + #6727 + #6762 + this PR, RTX 5070, host imports on. - Both warnings remain, in the same region and with the same counts as in a run without it. - So this title's warnings have another cause, and the link stays "Related". This PR stands on the freed read its own tests show (see Tested). **How.** 1. `fix(agc): keep a data hit's live words with the regions that span them`: the two moves, and the new test `agc_driver_dispatch_data_hit_words` (`tests/execution/DispatchDataHitWords.cpp`). - The test registers one address-based compute shader: an `s_load_dword` of a constant, a `global_load_dword` through a pointer, and a `buffer_store_dword`. - It submits the shader five times on an ACB queue, changing the constant every round. The first round inserts, and the next four are data hits resolved ahead and adopted. It checks every lane is `constant + 1`. 2. `test(agc): fail the data hit test on the snapshot mismatches it causes`: `AddSnapshot`'s mismatch count, a function-local static until now, becomes `SnapshotStats::mismatched` next to the existing compare counters, read by `SnapshotMismatches()`. The test requires the count unchanged across its data hits. Why the moves are enough: - A moved vector keeps its buffer, which now travels with the regions: from the local, to the parked map node, to `ahead`, to the adopting dispatch's locals. - Both moves happen right before a `return`, and nothing reads `captured` or `liveWords` after them. - Nothing else copies a `ResolvedDispatch`. `resolveGroupAhead` and `IndirectDispatch.cpp` read only addresses and sizes from it. ### Tested - **Linux** (lavapipe, gcc 13.3, CI's Linux configure), on main 66e290f1c0: - red: `agc_driver_dispatch_data_hit_words` with `Dispatch.cpp` at main's: **0/20**, each run printing the line above and "its snapshots differ from the registered memory serving them"; - green: **20/20**; - ASan (`-DANYPS5_ENABLE_ASAN=ON`): red **0/5**, each a `heap-use-after-free` in `AddSnapshot`'s `memcmp`, freed by `resolveGroupAhead` → `dispatch`; green **5/5** with no report; - `ctest -R '^agc'`: 625/625, 43 skipped as expected (main: 624/624). - **GitHub runners** ([run 38940277474](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38940277474)): - **Linux:** with main's `Dispatch.cpp` and the new counter kept, the test failed in each of 3 runs. With the fix it passed 20/20, along with `agc_driver_pipelined_dispatch` and `agc_driver_pipelined_dispatch_item`. The libc and libkernel suites show no new failures; `precise_wait` fails on main on that runner too. - **Windows:** it builds with MinGW, but the three Vulkan tests skip on that runner, which has no Vulkan device, so it gives neither a red nor a green. - A Windows red would depend on the allocator anyway: the CRT heap likely leaves a freed 4-byte block's contents alone. The Linux and ASan reds are the dependable ones. - **CI's Linux job, mirrored** (its configure, registration, build, `libs`, ctest on lavapipe and `check_skips.py`, on f5fd23ee3): 1,291 of 1,296 passed. The 5 failures are IPv6 tests the build container always fails, and `check_skips.py` flags only `guest_sce_net`, which that container always skips. - **AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11** (WinLibs GCC 15.2.0, Release), run by keravyn-ops at f5fd23ee3 ([comment](https://github.com/boykopovar/AnyPS5/pull/6911#issuecomment-6232562905)): `agc_driver_dispatch_data_hit_words` passes. - **NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04** (GCC 15.2, Release), run by jotitadev at f5fd23ee3 merged onto `main` 47a266cf9 ([review](https://github.com/boykopovar/AnyPS5/pull/6911#pullrequestreview-5558396602)): `agc_driver_dispatch_data_hit_words`, `agc_driver_pipelined_dispatch` and `agc_driver_pipelined_dispatch_item` pass 3/3 on the 3070 and pass on lavapipe; `agc_driver_dispatch_data_hit_words` passes `--repeat until-fail:20` on the 3070. With `Dispatch.cpp` from `main` it fails 10/10 on the 3070 and 3/3 on lavapipe: `data hit 1, resolved ahead on the compute queue: its snapshots differ from the registered memory serving them (1 snapshot mismatches)`. `^agc` passes 650 of 650 on both (`main`: 649 of 649). - `tools/check_conventions.py`: passed. **Overlap.** The overlap check finds no conflict with the 34 open PRs that touch these files and merge into current main. The other sixteen couldn't be checked until they merge into main again. ### 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 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] Unblocks: none known. Related: Onimusha: Way of the Sword (PPSA27836) #5769. A run with this PR still shows its "guest snapshot differs from registered memory" warnings, so they have another cause (see What) - [x] GPUs tested: lavapipe (Mesa llvmpipe) on Ubuntu 24.04, on a cloud worker and on GitHub's Linux runner; GitHub's Windows runner has no Vulkan device. NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11: `agc_driver_dispatch_data_hit_words` passes 5 of 5 with the fix ("4 data hits resolved ahead read their own live words"), on `main` 66e290f1c0 with this PR, #6454 and #6678 merged (the other two don't touch this path); the red is from Linux and ASan, since on Windows a freed word may keep its value; AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11: the new test passes (keravyn-ops); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04: the new test passes, and fails with `main`'s `Dispatch.cpp` (jotitadev) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 18:44:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T18:44:42Z.


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 7233 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp L454
PR 7371 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp L454
PR 7647 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp L248
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp L3074
PR 8105 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp L454

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 1324 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 2434 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 4449 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 5021 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
PR 6177 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6185 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6548 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6951 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7292 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7457 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7473 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7618 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222382579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911#issuecomment-6222382579). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T18:44:42Z. --- <!-- 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 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp` [L454](https://github.com/boykopovar/AnyPS5/blob/43cd8f4c47f4c81185c4ca14b84240e0748e3459/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L454) | | | | [PR 7371](https://www.github.com/boykopovar/AnyPS5/pull/7371) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp` [L454](https://github.com/boykopovar/AnyPS5/blob/43cd8f4c47f4c81185c4ca14b84240e0748e3459/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L454) | | | | [PR 7647](https://www.github.com/boykopovar/AnyPS5/pull/7647) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp` [L248](https://github.com/boykopovar/AnyPS5/blob/43cd8f4c47f4c81185c4ca14b84240e0748e3459/core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp#L248)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` [L3074](https://github.com/boykopovar/AnyPS5/blob/43cd8f4c47f4c81185c4ca14b84240e0748e3459/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp#L3074) | | | | [PR 8105](https://www.github.com/boykopovar/AnyPS5/pull/8105) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp` [L454](https://github.com/boykopovar/AnyPS5/blob/43cd8f4c47f4c81185c4ca14b84240e0748e3459/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L454) | | | 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 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 1324](https://www.github.com/boykopovar/AnyPS5/pull/1324) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6951](https://www.github.com/boykopovar/AnyPS5/pull/6951) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7473](https://www.github.com/boykopovar/AnyPS5/pull/7473) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7618](https://www.github.com/boykopovar/AnyPS5/pull/7618) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` |
keravyn-ops commented 2026-10-17 09:59:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T09:59:33Z.


AMD / Windows run of this PR at f5fd23ee3: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release.

Every ctest entry built from the test targets this PR changes passes (1):

  • agc_driver_dispatch_data_hit_words (0.44 s): 369: dispatch data hit words tests passed

AI-assisted: yes (runs made on the device above).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232562905 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911#issuecomment-6232562905). Originally posted by [keravyn-ops](https://github.com/keravyn-ops) on 2026-10-17T09:59:33Z. --- AMD / Windows run of this PR at f5fd23ee3: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release. Every ctest entry built from the test targets this PR changes passes (1): - `agc_driver_dispatch_data_hit_words` (0.44 s): `369: dispatch data hit words tests passed` AI-assisted: yes (runs made on the device above).
jotitadev commented 2026-10-17 15:09:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-17T15:09:19Z.

Review: COMMENTED


A run on NVIDIA, since the description has lavapipe and the comments add AMD on Windows.

Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. PR merged onto main 47a266cf9 (clean). ANYPS5_NO_SHADER_CACHE=1, -j1 --timeout 30.

Run RTX 3070 lavapipe
agc_driver_dispatch_data_hit_words, agc_driver_pipelined_dispatch, agc_driver_pipelined_dispatch_item pass 3/3 pass
agc_driver_dispatch_data_hit_words, --repeat until-fail:20 20/20 not run
same, with Dispatch.cpp from main fails 10/10: data hit 1, resolved ahead on the compute queue: its snapshots differ from the registered memory serving them (1 snapshot mismatches) fails 3/3, same message
^agc (650 tests) 650/650 (main: 649/649) 650/650 (main: 649/649)

Not run: Windows, AMD, any title.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5558396602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911#pullrequestreview-5558396602). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-17T15:09:19Z. **Review:** COMMENTED --- A run on NVIDIA, since the description has lavapipe and the comments add AMD on Windows. **Machine:** Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. PR merged onto `main` `47a266cf9` (clean). `ANYPS5_NO_SHADER_CACHE=1`, `-j1 --timeout 30`. | Run | RTX 3070 | lavapipe | |---|---|---| | `agc_driver_dispatch_data_hit_words`, `agc_driver_pipelined_dispatch`, `agc_driver_pipelined_dispatch_item` | pass 3/3 | pass | | `agc_driver_dispatch_data_hit_words`, `--repeat until-fail:20` | 20/20 | not run | | same, with `Dispatch.cpp` from `main` | fails 10/10: `data hit 1, resolved ahead on the compute queue: its snapshots differ from the registered memory serving them (1 snapshot mismatches)` | fails 3/3, same message | | `^agc` (650 tests) | 650/650 (`main`: 649/649) | 650/650 (`main`: 649/649) | Not run: Windows, AMD, any title. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-17 15:13:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T15:13:35Z.


Thanks for the NVIDIA and lavapipe runs, and for the check with main's Dispatch.cpp. I've added them to Tested and the GPU list.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235561583 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911#issuecomment-6235561583). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T15:13:35Z. --- Thanks for the NVIDIA and lavapipe runs, and for the check with `main`'s `Dispatch.cpp`. I've added them to Tested and the GPU list.
adriadam10 commented 2026-10-20 09:25:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T09:25:07Z.


Re-checked against current main (after the keys-fill and host-import counter changes): the PR still merges cleanly, the new code in Dispatch.cpp reads only the packet and snapshot, the moves of captured/liveWords and the SnapshotStats::mismatched counter are untouched, and nothing reads the moved vectors afterwards. agc_driver_dispatch_data_hit_words pins the mismatch counter, so it fails on main's copy. Relying on the NVIDIA/lavapipe and AMD/Windows runs in the thread; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6287798181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6911#issuecomment-6287798181). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T09:25:07Z. --- Re-checked against current `main` (after the keys-fill and host-import counter changes): the PR still merges cleanly, the new code in `Dispatch.cpp` reads only the packet and snapshot, the moves of `captured`/`liveWords` and the `SnapshotStats::mismatched` counter are untouched, and nothing reads the moved vectors afterwards. `agc_driver_dispatch_data_hit_words` pins the mismatch counter, so it fails on main's copy. Relying on the NVIDIA/lavapipe and AMD/Windows runs in the thread; 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!6911
No description provided.