agc_driver_lds_atomics64 fails on AMD RDNA 3.5: the shader leaves its output unwritten #826

Closed
opened 2026-10-06 07:45:26 +00:00 by LeandroLP23 · 0 comments
LeandroLP23 commented 2026-10-06 07:45:26 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-06T07:45:26Z.


agc_driver_lds_atomics64 fails on an AMD RDNA 3.5 GPU:

AGC graphics: lds 64-bit atomics: lane 0 ds_add_u64 is 0xdeadbeefdeadbeef, expected 0x74ab8b7debd0f042

The first result still holds the sentinel, so the shader appears not to write its output, and the test takes about 5 seconds where the other AGC tests take under one. No device-lost or Vulkan error is printed.

The shader uses 64-bit LDS atomics, which go through the LDS lock (requirements.ldsLock, LockedLdsUpdate). A lock spun on by lanes of the same subgroup has no forward-progress guarantee on AMD hardware, which would match a hang ending in a timeout; this is not confirmed.

Environment

  • main at 481c85e7, Release, MinGW-w64 GCC 15.2.0 (WinLibs r7), Windows 11 Home 10.0.26300
  • AMD Radeon 860M (RDNA 3.5, device 0x1114), driver 32.0.13058.8001, Vulkan 1.3.302, subgroup size 64 (wave32 compute runs on 32-wide subgroups)

Reproduce

ctest --test-dir build -R '^agc_driver_lds_atomics64$' --output-on-failure
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5724872114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/826). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-06T07:45:26Z. --- `agc_driver_lds_atomics64` fails on an AMD RDNA 3.5 GPU: ``` AGC graphics: lds 64-bit atomics: lane 0 ds_add_u64 is 0xdeadbeefdeadbeef, expected 0x74ab8b7debd0f042 ``` The first result still holds the sentinel, so the shader appears not to write its output, and the test takes about 5 seconds where the other AGC tests take under one. No device-lost or Vulkan error is printed. The shader uses 64-bit LDS atomics, which go through the LDS lock (`requirements.ldsLock`, `LockedLdsUpdate`). A lock spun on by lanes of the same subgroup has no forward-progress guarantee on AMD hardware, which would match a hang ending in a timeout; this is not confirmed. ### Environment - `main` at 481c85e7, Release, MinGW-w64 GCC 15.2.0 (WinLibs r7), Windows 11 Home 10.0.26300 - AMD Radeon 860M (RDNA 3.5, device 0x1114), driver 32.0.13058.8001, Vulkan 1.3.302, subgroup size 64 (wave32 compute runs on 32-wide subgroups) ### Reproduce ``` ctest --test-dir build -R '^agc_driver_lds_atomics64$' --output-on-failure ```
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#826
No description provided.