AGC (Intel Arc, Windows): agc_driver_alias_copy_label fails about 1 in 3 runs; the label lands before the alias copy's destination store, APS5_STORE_AT_LABEL=1 hides it #10199

Closed
opened 2026-10-23 13:02:37 +00:00 by BKlaasWerkman · 0 comments
BKlaasWerkman commented 2026-10-23 13:02:37 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by BKlaasWerkman on 2026-10-23T13:02:37Z.


agc_driver_alias_copy_label, the test #6324 added, fails intermittently on Intel Arc under Windows. Its CPU read after the label sees part of the copy's destination still unwritten:

AGC graphics: a CPU read after the label that followed the image copy found 4096 of 262144 destination bytes still unwritten

Environment. Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, no layers. Intel Arc Graphics (Meteor Lake, 0x7d55), driver 101.9150. Control: NVIDIA GeForce RTX 3060 Ti, driver 617.42, same binaries, selected with ANYPS5_GPU.

Rate. Each run is a separate ctest -R '^agc_driver_alias_copy_label$':

tree Intel Arc RTX 3060 Ti
main 812ed15875 8 of 20 fail not run
main f2a4fb1e6d 7 of 20 fail 0 of 20 fail
main e15b894d53 7 of 20 fail 0 of 20 fail
main e15b894d53 with APS5_STORE_AT_LABEL=1 0 of 20 fail 0 of 20 fail
main e15b894d53 with #8180 merged 9 of 20 fail 0 of 20 fail
  • The number of unwritten bytes varies between failures: 96, 112, 128, 192, 320, 704, 736, 752, 912, 2048, 4096 (most often), 4192, 5008 and 6784 were seen. So it is not a fixed region.
  • In seven full ctest --parallel 6 or --parallel 8 runs on the same machine, the test never failed on Intel Arc. It shows up when run on its own.
  • The Khronos layer reports nothing in this test, with core validation, synchronization validation or GPU-AV. With GPU-AV or synchronization validation it still failed 1 of 5 runs each.

What it points to. APS5_STORE_AT_LABEL=1 stores every pending storage-image result before each label the GPU writes, and it removes the failure. So on this device the label the test records after CopyBuffer becomes visible to the CPU before all of the destination's results have reached guest memory. That holds even though #6324's FlushPending(destination, …) stores them "in the same batch, behind the image copy". #8180 orders labels behind copied writers' write-backs; it does not change this case.

Not known: which part of the destination store lands late (the GPU store into the destination's memory, or a CPU write-back at reap); whether a title reaches it; other Intel generations; Linux ANV.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5998249184 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10199). Originally posted by [BKlaasWerkman](https://github.com/BKlaasWerkman) on 2026-10-23T13:02:37Z. --- `agc_driver_alias_copy_label`, the test #6324 added, fails intermittently on Intel Arc under Windows. Its CPU read after the label sees part of the copy's destination still unwritten: ``` AGC graphics: a CPU read after the label that followed the image copy found 4096 of 262144 destination bytes still unwritten ``` **Environment.** Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, no layers. Intel Arc Graphics (Meteor Lake, `0x7d55`), driver 101.9150. Control: NVIDIA GeForce RTX 3060 Ti, driver 617.42, same binaries, selected with `ANYPS5_GPU`. **Rate.** Each run is a separate `ctest -R '^agc_driver_alias_copy_label$'`: | tree | Intel Arc | RTX 3060 Ti | |---|---|---| | `main` 812ed15875 | 8 of 20 fail | not run | | `main` f2a4fb1e6d | 7 of 20 fail | 0 of 20 fail | | `main` e15b894d53 | 7 of 20 fail | 0 of 20 fail | | `main` e15b894d53 with `APS5_STORE_AT_LABEL=1` | **0 of 20 fail** | 0 of 20 fail | | `main` e15b894d53 with #8180 merged | 9 of 20 fail | 0 of 20 fail | - The number of unwritten bytes varies between failures: 96, 112, 128, 192, 320, 704, 736, 752, 912, 2048, 4096 (most often), 4192, 5008 and 6784 were seen. So it is not a fixed region. - In seven full `ctest --parallel 6` or `--parallel 8` runs on the same machine, the test never failed on Intel Arc. It shows up when run on its own. - The Khronos layer reports nothing in this test, with core validation, synchronization validation or GPU-AV. With GPU-AV or synchronization validation it still failed 1 of 5 runs each. **What it points to.** `APS5_STORE_AT_LABEL=1` stores every pending storage-image result before each label the GPU writes, and it removes the failure. So on this device the label the test records after `CopyBuffer` becomes visible to the CPU before all of the destination's results have reached guest memory. That holds even though #6324's `FlushPending(destination, …)` stores them "in the same batch, behind the image copy". #8180 orders labels behind copied writers' write-backs; it does not change this case. **Not known:** which part of the destination store lands late (the GPU store into the destination's memory, or a CPU write-back at reap); whether a title reaches it; other Intel generations; Linux ANV. 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#10199
No description provided.