AGC (NVIDIA RTX 5090 Blackwell, Windows): agc_driver_store_over_untracked fails — pending storage overwrites CPU-written bytes in untracked memory #24680

Closed
opened 2026-11-20 23:24:41 +00:00 by haadeej084 · 0 comments
haadeej084 commented 2026-11-20 23:24:41 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by haadeej084 on 2026-11-20T23:24:41Z.


What happens

agc_driver_store_over_untracked fails with: "a pending storage result was stored over bytes the CPU wrote to untracked memory".

Two of its sub-tests are skipped because GuestMemory::Watched() returns false for the allocated surface, with the message not run, the surface is not write-watched. The RunSecondStore sub-test ("a second store over a surface outside the write watch") runs but fails because image->GuestSnapshotValid() returns false after the first store, meaning no saved guest bytes were kept. The second store then overwrites the CPU-written block.

Title, test or build step

agc_driver_store_over_untracked

AnyPS5 commit

223b1645d2 (main)

System

Windows 11 26200, MinGW-w64 GCC 15.2.0, NVIDIA GeForce RTX 5090 (Blackwell, 32 GB VRAM), driver 610.88, Vulkan 1.4.303

Host report

device: NVIDIA GeForce RTX 5090
type: discrete
vendor_id: 0x10de
vulkan_api: 1.4.303
driver: NVIDIA 610.88
subgroup_size: 32
device_local_mib: 32510

Steps to reproduce

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
cmake --build build
ctest --test-dir build --output-on-failure -R ^agc_driver_store_over_untracked$

Log

[store over untracked] a surface that left the write watch: not run, the surface is not write-watched
[store over untracked] a surface whose first block left the write watch with the page before it: not run, the surface is not write-watched
[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

Analysis

The failure path in StoreOverUntracked.cpp:

  1. RunSecondStore() allocates a watched surface, unwatches it, dispatches a store
  2. After the store, image->GuestSnapshotValid() returns false (line 323) — no guest bytes were saved
  3. Without saved bytes, the second store cannot compare and preserve CPU-written bytes
  4. Outcome::Lost is returned, and the final Require(kept, ...) at line 581 fails

The two skipped sub-tests (LeftWatch, NeighbourLeftWatch) fail to watch the surface at all, suggesting the guest write-watch mechanism does not fully engage on this GPU/driver combination.

This may be related to the large VRAM budget (32 GB) influencing the storage-image heuristic, or a Blackwell-specific difference in how memory mappings interact with the write-watch registration.

Context

Found during a full 1460-test agc_driver sweep on RTX 5090 Blackwell. The only other failures are the known msaa_dcc_unwatch and stencil_plane_memory. All other 1457 tests pass with zero VUIDs.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6521426853 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/24680). Originally posted by [haadeej084](https://github.com/haadeej084) on 2026-11-20T23:24:41Z. --- ### What happens `agc_driver_store_over_untracked` fails with: **"a pending storage result was stored over bytes the CPU wrote to untracked memory"**. Two of its sub-tests are skipped because `GuestMemory::Watched()` returns false for the allocated surface, with the message `not run, the surface is not write-watched`. The `RunSecondStore` sub-test ("a second store over a surface outside the write watch") runs but fails because `image->GuestSnapshotValid()` returns false after the first store, meaning no saved guest bytes were kept. The second store then overwrites the CPU-written block. ### Title, test or build step agc_driver_store_over_untracked ### AnyPS5 commit 223b1645d2 (main) ### System Windows 11 26200, MinGW-w64 GCC 15.2.0, NVIDIA GeForce RTX 5090 (Blackwell, 32 GB VRAM), driver 610.88, Vulkan 1.4.303 ### Host report ```text device: NVIDIA GeForce RTX 5090 type: discrete vendor_id: 0x10de vulkan_api: 1.4.303 driver: NVIDIA 610.88 subgroup_size: 32 device_local_mib: 32510 ``` ### Steps to reproduce ```cmd cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON cmake --build build ctest --test-dir build --output-on-failure -R ^agc_driver_store_over_untracked$ ``` ### Log ```text [store over untracked] a surface that left the write watch: not run, the surface is not write-watched [store over untracked] a surface whose first block left the write watch with the page before it: not run, the surface is not write-watched [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 ``` ### Analysis The failure path in `StoreOverUntracked.cpp`: 1. `RunSecondStore()` allocates a watched surface, unwatches it, dispatches a store 2. After the store, `image->GuestSnapshotValid()` returns `false` (line 323) — no guest bytes were saved 3. Without saved bytes, the second store cannot compare and preserve CPU-written bytes 4. `Outcome::Lost` is returned, and the final `Require(kept, ...)` at line 581 fails The two skipped sub-tests (`LeftWatch`, `NeighbourLeftWatch`) fail to watch the surface at all, suggesting the guest write-watch mechanism does not fully engage on this GPU/driver combination. This may be related to the large VRAM budget (32 GB) influencing the storage-image heuristic, or a Blackwell-specific difference in how memory mappings interact with the write-watch registration. ### Context Found during a full 1460-test agc_driver sweep on RTX 5090 Blackwell. The only other failures are the known `msaa_dcc_unwatch` and `stencil_plane_memory`. All other 1457 tests pass with zero VUIDs.
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#24680
No description provided.