AGC: agc_driver_pixel_interlock drops one of 64 overlapping interlock writes on RDNA3 (RADV NAVI31) — ~90% of runs, passes on RDNA2 + lavapipe #18770

Closed
opened 2026-11-12 07:27:47 +00:00 by tablefrogpillow · 0 comments
tablefrogpillow commented 2026-11-12 07:27:47 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tablefrogpillow on 2026-11-12T07:27:47Z.


What happens

agc_driver_pixel_interlock fails on an AMD RDNA3 GPU (RADV NAVI31). On the non-fault draws, a pixel covered by 64 overlapping primitive-ordered (fragment-shader-interlock) read-modify-writes occasionally counts 63 instead of 64 — one interlocked write is not serialized. The check is exact (core/libs/prx/libSceAgcDriver/tests/execution/PixelInterlock.cpp:208, Require(Counters[pixel] == Layers) with Layers == 64, no tolerance), so one dropped write fails the test.

The failing pixel and pass vary run to run, in both wave32 and wave64 passes, e.g.:

AGC graphics: pixel interlock wave32 pass 0: pixel 552 counted 63 of 64 overlapping read-modify-writes
AGC graphics: pixel interlock wave64 pass 1: pixel 1544 counted 63 of 64 overlapping read-modify-writes

Frequency / isolation

  • RDNA3 (RADV NAVI31): ~90% of runs fail (14/15, then 4/5 on a separate re-check). Effectively deterministic at the test level; only which pixel/pass drops a write varies, which points to a serialization race rather than a fixed miscompile.
  • Passes on lavapipe (CPU reference counts an exact 64) — so this is CI-invisible (CI runs on lavapipe).
  • Passes on an AMD RDNA2 iGPU (RADV RAPHAEL_MENDOCINO, 3/3) running the same Mesa 26.2.6 — so it is specific to NAVI31, not generic to this Mesa build.

This is a different failure from #2009 (closed, fixed by #5804), which was the killed-BDA-fault branch (PixelInterlock.cpp:196, expected 0 RMWs after a fault). This one is the ordinary serialization branch (expected 64).

Environment

  • GPU: AMD Radeon RX 7900 GRE (RADV NAVI31), driver radv, Mesa 26.2.6 (kisak-mesa PPA)
  • Also run: AMD Ryzen 7 7800X3D iGPU (RADV RAPHAEL_MENDOCINO, RDNA2) — passes; lavapipe — passes
  • Kernel 6.8.0, commit 3a0a54bbd8, Release build, ANYPS5_NO_SHADER_CACHE=1

Reproduce

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU=NAVI31 \
  ./build/tests/agc_driver_pixel_interlock_tests

Repeat a few times; roughly 9 in 10 runs print counted 63 of 64.

Note

I have not established whether the dropped write is a RADV NAVI31 issue with VK_EXT_fragment_shader_interlock (pixelInterlockOrdered) or an AnyPS5 interlock-scoping gap that only NAVI31 exposes — lavapipe and RDNA2 both serialize correctly on this build. Happy to run further diagnostics on this hardware.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6345050145 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/18770). Originally posted by [tablefrogpillow](https://github.com/tablefrogpillow) on 2026-11-12T07:27:47Z. --- ### What happens `agc_driver_pixel_interlock` fails on an AMD **RDNA3** GPU (RADV NAVI31). On the non-fault draws, a pixel covered by 64 overlapping primitive-ordered (fragment-shader-interlock) read-modify-writes occasionally counts **63** instead of 64 — one interlocked write is not serialized. The check is exact (`core/libs/prx/libSceAgcDriver/tests/execution/PixelInterlock.cpp:208`, `Require(Counters[pixel] == Layers)` with `Layers == 64`, no tolerance), so one dropped write fails the test. The failing pixel and pass vary run to run, in **both wave32 and wave64** passes, e.g.: ``` AGC graphics: pixel interlock wave32 pass 0: pixel 552 counted 63 of 64 overlapping read-modify-writes AGC graphics: pixel interlock wave64 pass 1: pixel 1544 counted 63 of 64 overlapping read-modify-writes ``` ### Frequency / isolation - **RDNA3 (RADV NAVI31): ~90% of runs fail** (14/15, then 4/5 on a separate re-check). Effectively deterministic at the test level; only *which* pixel/pass drops a write varies, which points to a serialization race rather than a fixed miscompile. - **Passes on lavapipe** (CPU reference counts an exact 64) — so this is **CI-invisible** (CI runs on lavapipe). - **Passes on an AMD RDNA2 iGPU** (RADV RAPHAEL_MENDOCINO, 3/3) running the **same Mesa 26.2.6** — so it is specific to NAVI31, not generic to this Mesa build. This is a different failure from #2009 (closed, fixed by #5804), which was the killed-BDA-fault branch (`PixelInterlock.cpp:196`, expected 0 RMWs after a fault). This one is the ordinary serialization branch (expected 64). ### Environment - GPU: AMD Radeon RX 7900 GRE (RADV NAVI31), driver `radv`, Mesa 26.2.6 (kisak-mesa PPA) - Also run: AMD Ryzen 7 7800X3D iGPU (RADV RAPHAEL_MENDOCINO, RDNA2) — passes; lavapipe — passes - Kernel 6.8.0, commit `3a0a54bbd8`, Release build, `ANYPS5_NO_SHADER_CACHE=1` ### Reproduce ``` ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU=NAVI31 \ ./build/tests/agc_driver_pixel_interlock_tests ``` Repeat a few times; roughly 9 in 10 runs print `counted 63 of 64`. ### Note I have not established whether the dropped write is a RADV NAVI31 issue with `VK_EXT_fragment_shader_interlock` (pixelInterlockOrdered) or an AnyPS5 interlock-scoping gap that only NAVI31 exposes — lavapipe and RDNA2 both serialize correctly on this build. Happy to run further diagnostics on this hardware.
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#18770
No description provided.