AGC: agc_idle_publish_wait (from #7984) fails on RADV Polaris: the label flush's publish is no longer pending when FlushAllPending returns #9781

Closed
opened 2026-10-22 14:44:46 +00:00 by ryanc2112 · 1 comment
ryanc2112 commented 2026-10-22 14:44:46 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ryanc2112 on 2026-10-22T14:44:46Z.


Observed

agc_idle_publish_wait, added by #7984 (fix for #7983), fails 3/3 on an RX 570 under RADV, at the last check of idlePublishWaitTests (tests/Recorder.cpp:4809):

AGC graphics: a publish of a flush other than the idle one was waited

All idle-flush checks before it pass: the idle publish completes before FlushAllPending("idle") returns, the later CPU stores survive, and the published bytes are right. What fails is the FlushAllPending("label") case: recorder.PendingWriteOverlaps(address + 5 * unit, unit) is false right after it returns, so on this device either the label flush now waits for its publish, or its write is no longer tracked as pending. No VUID- output.

build RX 570 (RADV) lavapipe
eb6928696a (merge of #7984, on top of #7849) fails 3/3 passes 2/2
8e72738df + #7984 head db3af4097, without #7849 fails 3/3 —
main 4777caca3 fails 3/3 —

#7849 merged 6 s before #7984 and touches host imports, so I built without it to rule it out: the result is the same. lavapipe passing explains why CI did not catch it.

Environment

SteamOS 3.8.28 (Arch distrobox), AMD Radeon RX 570 (RADV POLARIS10), Mesa 26.2.5, GCC 16.2.1, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, with and without VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. lavapipe via ANYPS5_GPU=llvmpipe, Mesa 26.2.5.

Reproduce

ctest --test-dir build -R '^agc_idle_publish_wait$' -V

cc @fisherjoey

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5981583531 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9781). Originally posted by [ryanc2112](https://github.com/ryanc2112) on 2026-10-22T14:44:46Z. --- ### Observed `agc_idle_publish_wait`, added by #7984 (fix for #7983), fails 3/3 on an RX 570 under RADV, at the last check of `idlePublishWaitTests` (`tests/Recorder.cpp:4809`): ``` AGC graphics: a publish of a flush other than the idle one was waited ``` All idle-flush checks before it pass: the idle publish completes before `FlushAllPending("idle")` returns, the later CPU stores survive, and the published bytes are right. What fails is the `FlushAllPending("label")` case: `recorder.PendingWriteOverlaps(address + 5 * unit, unit)` is false right after it returns, so on this device either the label flush now waits for its publish, or its write is no longer tracked as pending. No `VUID-` output. | build | RX 570 (RADV) | lavapipe | |---|---|---| | `eb6928696a` (merge of #7984, on top of #7849) | fails 3/3 | passes 2/2 | | `8e72738df` + #7984 head `db3af4097`, without #7849 | fails 3/3 | — | | `main` `4777caca3` | fails 3/3 | — | #7849 merged 6 s before #7984 and touches host imports, so I built without it to rule it out: the result is the same. lavapipe passing explains why CI did not catch it. ### Environment SteamOS 3.8.28 (Arch distrobox), AMD Radeon RX 570 (RADV POLARIS10), Mesa 26.2.5, GCC 16.2.1, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, with and without `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. lavapipe via `ANYPS5_GPU=llvmpipe`, Mesa 26.2.5. ### Reproduce ``` ctest --test-dir build -R '^agc_idle_publish_wait$' -V ``` cc @fisherjoey AI-assisted: yes.
ryanc2112 commented 2026-10-22 15:33:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ryanc2112 on 2026-10-22T15:33:01Z.


Also fails 3/3 on a Steam Deck (RADV VANGOGH, RDNA 2, Mesa 26.2.5) at main 4777caca3, same message. So it is not Polaris-specific.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6344649461 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9781#issuecomment-6344649461). Originally posted by [ryanc2112](https://github.com/ryanc2112) on 2026-10-22T15:33:01Z. --- Also fails 3/3 on a Steam Deck (RADV VANGOGH, RDNA 2, Mesa 26.2.5) at `main` `4777caca3`, same message. So it is not Polaris-specific.
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#9781
No description provided.