agc_driver_store_over_untracked is flaky on Windows: the second-store case sometimes finds no saved guest bytes #22670

Closed
opened 2026-11-18 01:14:05 +00:00 by MichonGoddijn231849 · 0 comments
MichonGoddijn231849 commented 2026-11-18 01:14:05 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-11-18T01:14:05Z.


On Windows the agc_driver_store_over_untracked execution test fails intermittently on main (378945815f) in its "a second store over a surface outside the write watch" case (RunSecondStore):

[store over untracked] a second store over a surface outside the write watch: the store left no saved guest bytes
AGC graphics: a pending storage result was stored over bytes the CPU wrote to untracked memory

After the first store is flushed and read back, image->GuestSnapshotValid() is sometimes false, so the case returns Outcome::Lost and the final Require(kept, ...) fails.

GPU (Windows 11 Pro 10.0.26200) test run alone in the full agc_driver run (ctest -j 8)
NVIDIA GeForce RTX 5080, driver 610.74 1 of 20 runs failed (another session: 4 of 25) failed
AMD Radeon(TM) Graphics (RDNA2 iGPU), driver 32.0.21045.16010 0 of 20 failed (1 of 3 through ctest) failed

It is not a completion race the test can wait out: calling AgcDriverWaitIdle_nid_postfix() between the first read-back and the GuestSnapshotValid() check did not help (8 of 40 NVIDIA runs and 2 of 40 AMD runs still failed, all with the same message), so the saved bytes are sometimes not taken at all rather than taken late.

Also on Windows, four other cases of the same test always print not run, the surface is not write-watched (a surface that left the write watch, ... written before it left the write watch, ... whose import left the write watch, ... whose first block left the write watch with the page before it), so they do not run there.

Reproduce: build tests/agc_driver_store_over_untracked_tests.exe, put build/core/libs/libs/unpatched on PATH and run it in a loop with ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6457684176 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/22670). Originally posted by [MichonGoddijn231849](https://github.com/MichonGoddijn231849) on 2026-11-18T01:14:05Z. --- On Windows the `agc_driver_store_over_untracked` execution test fails intermittently on `main` (`378945815f`) in its "a second store over a surface outside the write watch" case (`RunSecondStore`): ``` [store over untracked] a second store over a surface outside the write watch: the store left no saved guest bytes AGC graphics: a pending storage result was stored over bytes the CPU wrote to untracked memory ``` After the first store is flushed and read back, `image->GuestSnapshotValid()` is sometimes false, so the case returns `Outcome::Lost` and the final `Require(kept, ...)` fails. | GPU (Windows 11 Pro 10.0.26200) | test run alone | in the full `agc_driver` run (`ctest -j 8`) | | --- | --- | --- | | NVIDIA GeForce RTX 5080, driver 610.74 | 1 of 20 runs failed (another session: 4 of 25) | failed | | AMD Radeon(TM) Graphics (RDNA2 iGPU), driver 32.0.21045.16010 | 0 of 20 failed (1 of 3 through `ctest`) | failed | It is not a completion race the test can wait out: calling `AgcDriverWaitIdle_nid_postfix()` between the first read-back and the `GuestSnapshotValid()` check did not help (8 of 40 NVIDIA runs and 2 of 40 AMD runs still failed, all with the same message), so the saved bytes are sometimes not taken at all rather than taken late. Also on Windows, four other cases of the same test always print `not run, the surface is not write-watched` (`a surface that left the write watch`, `... written before it left the write watch`, `... whose import left the write watch`, `... whose first block left the write watch with the page before it`), so they do not run there. Reproduce: build `tests/agc_driver_store_over_untracked_tests.exe`, put `build/core/libs/libs/unpatched` on `PATH` and run it in a loop with `ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#22670
No description provided.