agc_* tests: 3 of 483 fail on AMD Radeon RX 6400, pass on NVIDIA RTX 4080 SUPER #5271

Closed
opened 2026-10-13 16:08:29 +00:00 by xXPBSXx · 8 comments
xXPBSXx commented 2026-10-13 16:08:29 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T16:08:29Z.


What

I ran the whole agc_* ctest group (483 tests) once on an NVIDIA and once on an AMD GPU of the same Windows machine, same build. Three tests fail only on the AMD GPU, and a driver timeout (TDR) occurred during lds_mixed_width_atomics (>10 s).

Environment

  • Windows 10 Pro 10.0.19045, MinGW-w64 GCC 15.2 (WinLibs), Release, main at 60fb61870, full build, ctest -R ^agc_ --timeout 300
  • NVIDIA: GeForce RTX 4080 SUPER, driver 610.74 (Windows 32.0.16.1074), Vulkan 1.4.341, subgroup size 32 (default selection)
  • AMD: Radeon RX 6400, Windows driver 32.0.21033.3005, Vulkan 1.4.315, subgroup size 64, selected with ANYPS5_GPU=Radeon
  • Result: NVIDIA 482 passed, 1 skipped; AMD 478 passed, 3 failed, 2 skipped

Tests that differ

Test NVIDIA AMD Message on AMD
agc_driver_pixel_interlock passed failed, 3 of 3 runs pixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writes
agc_driver_layered_volume_vertex_no_gpl (APS5_NO_GPL=1) passed failed, 3 of 3 runs vertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0); the variants agc_driver_layered_volume_vertex (with pipeline libraries), _draw and _submit pass on AMD
agc_driver_lds_mixed_width_atomics passed failed, 1 run (14.3 s), not repeated [gpu] recorded batch still running on the GPU after 5 s / after 10 s, then lds mixed width atomics uniform run 0: lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000 after 4096 ds_add_u64 and 4096 ds_add_u32 on one slot; a driver timeout (TDR) occurred during this test
agc_driver_ngg_vertex_wave_reduction passed skipped s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_oversized_dispatch passed skipped the device reports a 4294967295 workgroup limit, which never splits a 129199x1x1 dispatch
agc_driver_stencil_ref_export skipped passed

Two tests log the RTX even with ANYPS5_GPU=Radeon: agc_driver_device_selection (it selects devices itself) and agc_driver_sparse_buffer_holes (not checked why).

Reproduce

set ANYPS5_GPU=Radeon
ctest -R ^agc_driver_pixel_interlock$ -V
ctest -R ^agc_driver_layered_volume_vertex_no_gpl$ -V

agc_driver_lds_mixed_width_atomics can hang the AMD driver for more than 10 s; run it only when a timeout reset is acceptable.

Where to look (from reading the code, no AMD run, not investigated further)

  • pixel_interlock: tests/execution/PixelInterlock.cpp runs wave size 64 first. The three plain draws (Check, line 201) pass on AMD; the failure is in DrawFault (line 180), whose Require at line 196 expects pixel 0 (a column whose BDA read is killed) to have counted 0 read-modify-writes and finds 1. The kill path emits OpEndInvocationInterlockEXT followed by OpKill in StopBdaInvocationIf (core/shader/recompiler/SpirvBackend/src/SpirvBdaFault.cpp:100), while OpBeginInvocationInterlockEXT is emitted at the start of main (SpirvModuleEmitter.cpp:1084). The wave32 half of the test is not reached because wave64 fails first. Whether the AMD driver orders or discards a killed invocation's interlocked work differently, or the recompiler places the fault check after the read-modify-write for this shader, is not established.
  • layered_volume_vertex_no_gpl: 0x40 is the Kept value (LayeredVolumeDraw.cpp:40), i.e. slice 1 was not drawn at all, while the same draw through pipeline libraries (agc_driver_layered_volume_vertex) draws it on AMD. The only difference between the two tests is APS5_NO_GPL=1 (CMakeLists.txt near line 1282, VulkanDevice.cpp:1325), so the non-library pipeline path (Pipeline.cpp, Begin with rendering.layerCount = state.renderLayers at line 641 for dynamic rendering, a render pass otherwise) is the first place to compare. Not checked which of the two rendering paths this test takes.
  • lds_mixed_width_atomics: nothing read; the GPU ran longer than 10 s.

Related: #5250 reports, for a full ctest run on Linux with an AMD Ryzen 7 9700X integrated GPU (RADV Mesa 25.0.7), failures of agc_driver_alpha_to_coverage, agc_driver_wave32_exec_lane_bits and agc_compute_pipeline_replay, which it says also reproduce with the original helper (without that PR's change). Different driver and OS from the run above; not reproduced here.

Not tested: other AMD cards or drivers, Linux, any game. The cause of all three failures is not investigated.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5833674651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-13T16:08:29Z. --- ### What I ran the whole `agc_*` ctest group (483 tests) once on an NVIDIA and once on an AMD GPU of the same Windows machine, same build. Three tests fail only on the AMD GPU, and a driver timeout (TDR) occurred during `lds_mixed_width_atomics` (>10 s). ### Environment - Windows 10 Pro 10.0.19045, MinGW-w64 GCC 15.2 (WinLibs), Release, `main` at `60fb61870`, full build, `ctest -R ^agc_ --timeout 300` - NVIDIA: GeForce RTX 4080 SUPER, driver 610.74 (Windows 32.0.16.1074), Vulkan 1.4.341, subgroup size 32 (default selection) - AMD: Radeon RX 6400, Windows driver 32.0.21033.3005, Vulkan 1.4.315, subgroup size 64, selected with `ANYPS5_GPU=Radeon` - Result: NVIDIA 482 passed, 1 skipped; AMD 478 passed, 3 failed, 2 skipped ### Tests that differ | Test | NVIDIA | AMD | Message on AMD | |---|---|---|---| | `agc_driver_pixel_interlock` | passed | failed, 3 of 3 runs | `pixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writes` | | `agc_driver_layered_volume_vertex_no_gpl` (`APS5_NO_GPL=1`) | passed | failed, 3 of 3 runs | `vertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0)`; the variants `agc_driver_layered_volume_vertex` (with pipeline libraries), `_draw` and `_submit` pass on AMD | | `agc_driver_lds_mixed_width_atomics` | passed | failed, 1 run (14.3 s), not repeated | `[gpu] recorded batch still running on the GPU after 5 s` / `after 10 s`, then `lds mixed width atomics uniform run 0: lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000 after 4096 ds_add_u64 and 4096 ds_add_u32 on one slot`; a driver timeout (TDR) occurred during this test | | `agc_driver_ngg_vertex_wave_reduction` | passed | skipped | `s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes` | | `agc_driver_oversized_dispatch` | passed | skipped | `the device reports a 4294967295 workgroup limit, which never splits a 129199x1x1 dispatch` | | `agc_driver_stencil_ref_export` | skipped | passed | | Two tests log the RTX even with `ANYPS5_GPU=Radeon`: `agc_driver_device_selection` (it selects devices itself) and `agc_driver_sparse_buffer_holes` (not checked why). ### Reproduce ``` set ANYPS5_GPU=Radeon ctest -R ^agc_driver_pixel_interlock$ -V ctest -R ^agc_driver_layered_volume_vertex_no_gpl$ -V ``` `agc_driver_lds_mixed_width_atomics` can hang the AMD driver for more than 10 s; run it only when a timeout reset is acceptable. ### Where to look (from reading the code, no AMD run, not investigated further) - `pixel_interlock`: `tests/execution/PixelInterlock.cpp` runs wave size 64 first. The three plain draws (`Check`, line 201) pass on AMD; the failure is in `DrawFault` (line 180), whose `Require` at line 196 expects pixel 0 (a column whose BDA read is killed) to have counted 0 read-modify-writes and finds 1. The kill path emits `OpEndInvocationInterlockEXT` followed by `OpKill` in `StopBdaInvocationIf` (`core/shader/recompiler/SpirvBackend/src/SpirvBdaFault.cpp:100`), while `OpBeginInvocationInterlockEXT` is emitted at the start of `main` (`SpirvModuleEmitter.cpp:1084`). The wave32 half of the test is not reached because wave64 fails first. Whether the AMD driver orders or discards a killed invocation's interlocked work differently, or the recompiler places the fault check after the read-modify-write for this shader, is not established. - `layered_volume_vertex_no_gpl`: `0x40` is the `Kept` value (`LayeredVolumeDraw.cpp:40`), i.e. slice 1 was not drawn at all, while the same draw through pipeline libraries (`agc_driver_layered_volume_vertex`) draws it on AMD. The only difference between the two tests is `APS5_NO_GPL=1` (`CMakeLists.txt` near line 1282, `VulkanDevice.cpp:1325`), so the non-library pipeline path (`Pipeline.cpp`, `Begin` with `rendering.layerCount = state.renderLayers` at line 641 for dynamic rendering, a render pass otherwise) is the first place to compare. Not checked which of the two rendering paths this test takes. - `lds_mixed_width_atomics`: nothing read; the GPU ran longer than 10 s. Related: #5250 reports, for a full ctest run on Linux with an AMD Ryzen 7 9700X integrated GPU (RADV Mesa 25.0.7), failures of `agc_driver_alpha_to_coverage`, `agc_driver_wave32_exec_lane_bits` and `agc_compute_pipeline_replay`, which it says also reproduce with the original helper (without that PR's change). Different driver and OS from the run above; not reproduced here. Not tested: other AMD cards or drivers, Linux, any game. The cause of all three failures is not investigated. AI-assisted (Claude Code).
simonbbby commented 2026-10-13 16:24:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-13T16:24:50Z.


Linux control at your exact unmodified main revision 60fb618708d78067f86f06a6ce8960f34583dfee:

Device Selected fixtures
gfx1036 RDNA2 iGPU, RADV Mesa 25.2.8, 1002:13c0, subgroup 64 All five pass 3/3 each
RTX 3090, NVIDIA 595.99.02, subgroup 32 All five pass 3/3 each

The five are agc_driver_pixel_interlock, agc_driver_layered_volume_vertex_no_gpl, and the three controls agc_driver_layered_volume_vertex, agc_driver_layered_volume_draw, agc_driver_layered_volume_submit. Thus neither of the first two reported failures reproduces on this RADV configuration. This is a different RDNA2 GPU from your RX 6400.

Ubuntu 24.04 / Linux 7.0, GCC 13.3, Ninja Release, BUILD_TESTING=ON, SPIRV-Tools ON, bundled dependencies. Clean detached checkout, genuine fixture targets, no source/test edits. Each leg pins one VK_DRIVER_FILES ICD and sets ANYPS5_GPU, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1. Logs confirm the GPUs. APS5_NO_GPL is unset externally; the registered _no_gpl test supplies APS5_NO_GPL=1 itself.

Serial CTest, three repetitions per fixture, 30 s bound: all 30 executions pass, no skipped subcases, failures or timeouts. Logs retained.

I did not run agc_driver_lds_mixed_width_atomics, the full suite, Windows, or a title. No driver-cache coldness control, actual per-draw pipeline-mode proof, or common root-cause/fix claim.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6150161097 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6150161097). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-13T16:24:50Z. --- Linux control at your exact unmodified main revision `60fb618708d78067f86f06a6ce8960f34583dfee`: | Device | Selected fixtures | |---|---| | gfx1036 RDNA2 iGPU, RADV Mesa 25.2.8, `1002:13c0`, subgroup 64 | All five pass 3/3 each | | RTX 3090, NVIDIA 595.99.02, subgroup 32 | All five pass 3/3 each | The five are `agc_driver_pixel_interlock`, `agc_driver_layered_volume_vertex_no_gpl`, and the three controls `agc_driver_layered_volume_vertex`, `agc_driver_layered_volume_draw`, `agc_driver_layered_volume_submit`. Thus neither of the first two reported failures reproduces on this RADV configuration. This is a different RDNA2 GPU from your RX 6400. Ubuntu 24.04 / Linux 7.0, GCC 13.3, Ninja Release, `BUILD_TESTING=ON`, SPIRV-Tools ON, bundled dependencies. Clean detached checkout, genuine fixture targets, no source/test edits. Each leg pins one `VK_DRIVER_FILES` ICD and sets `ANYPS5_GPU`, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`. Logs confirm the GPUs. `APS5_NO_GPL` is unset externally; the registered `_no_gpl` test supplies `APS5_NO_GPL=1` itself. Serial CTest, three repetitions per fixture, 30 s bound: all 30 executions pass, no skipped subcases, failures or timeouts. Logs retained. I did not run `agc_driver_lds_mixed_width_atomics`, the full suite, Windows, or a title. No driver-cache coldness control, actual per-draw pipeline-mode proof, or common root-cause/fix claim.
LloydNicholson commented 2026-10-13 19:58:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LloydNicholson on 2026-10-13T19:58:58Z.


RDNA 4 control on Linux, unmodified main dacd78525:

Device Fixtures
AMD Radeon RX 9060 XT (RDNA 4, 0x7590, gfx1200), RADV Mesa 26.3.0-devel (git ab0ab22), subgroup 64 all eight pass 3/3 each

The eight are agc_driver_pixel_interlock, agc_driver_layered_volume_vertex_no_gpl, the three controls agc_driver_layered_volume_vertex, _draw, _submit, and the three from #5250: agc_driver_alpha_to_coverage, agc_driver_wave32_exec_lane_bits, agc_compute_pipeline_replay.

Nobara 44 (Fedora 44), kernel 7.2.9, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON, bundled dependencies. VK_DRIVER_FILES pinned to the x86_64 RADV ICD, ANYPS5_GPU=9060, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1; the log confirms the selected GPU. Serial CTest, 30 s bound, no skips or timeouts.

In the full suite on this device (1077 tests, lds_mixed_width_atomics excluded) the only failure is agc_driver_tessellation, a Mesa crash reported in #5444. I did not run agc_driver_lds_mixed_width_atomics, Windows, or a title.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154022563 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6154022563). Originally posted by [LloydNicholson](https://github.com/LloydNicholson) on 2026-10-13T19:58:58Z. --- RDNA 4 control on Linux, unmodified `main` `dacd78525`: | Device | Fixtures | |---|---| | AMD Radeon RX 9060 XT (RDNA 4, `0x7590`, gfx1200), RADV Mesa 26.3.0-devel (git `ab0ab22`), subgroup 64 | all eight pass 3/3 each | The eight are `agc_driver_pixel_interlock`, `agc_driver_layered_volume_vertex_no_gpl`, the three controls `agc_driver_layered_volume_vertex`, `_draw`, `_submit`, and the three from #5250: `agc_driver_alpha_to_coverage`, `agc_driver_wave32_exec_lane_bits`, `agc_compute_pipeline_replay`. Nobara 44 (Fedora 44), kernel 7.2.9, GCC 16.2.1, Ninja Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`, bundled dependencies. `VK_DRIVER_FILES` pinned to the x86_64 RADV ICD, `ANYPS5_GPU=9060`, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`; the log confirms the selected GPU. Serial CTest, 30 s bound, no skips or timeouts. In the full suite on this device (1077 tests, `lds_mixed_width_atomics` excluded) the only failure is `agc_driver_tessellation`, a Mesa crash reported in #5444. I did not run `agc_driver_lds_mixed_width_atomics`, Windows, or a title. AI-assisted (Claude Code).
johandavidcm commented 2026-10-13 22:15:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by johandavidcm on 2026-10-13T22:15:32Z.


Another AMD Windows data point, same build on both GPUs: Windows 11 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, main c7601b797 + #5301 (only the relinker resource build change), ANYPS5_REQUIRE_VULKAN=1, ctest --timeout 120 --parallel 4 over the 502 agc/shader/video_out tests; each failure was rerun alone.

Device Driver Result
NVIDIA RTX 4070 32.0.16.1742 502 passed (7 skipped)
AMD Radeon(TM) Graphics, Ryzen 7 7800X3D iGPU (RDNA 2, 0x164e, subgroup 64), ANYPS5_GPU=AMD 32.0.21042.62 4 failed, same in isolated reruns
  • agc_driver_pixel_interlock: pixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writes, as in #2009.
  • agc_driver_layered_volume_draw and agc_driver_layered_volume_vertex fail with vertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0), while _vertex_no_gpl and _submit pass. That is the inverse of the RX 6400 result above (only _no_gpl failing), which looks like the GPL-dependent inversion in #4768.
  • agc_driver_lds_mixed_width_atomics: lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000, but it fails after 3.4 s with no still running on the GPU message and no driver timeout.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156350930 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6156350930). Originally posted by [johandavidcm](https://github.com/johandavidcm) on 2026-10-13T22:15:32Z. --- Another AMD Windows data point, same build on both GPUs: Windows 11 26200, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, `main` `c7601b797` + #5301 (only the relinker resource build change), `ANYPS5_REQUIRE_VULKAN=1`, `ctest --timeout 120 --parallel 4` over the 502 agc/shader/video_out tests; each failure was rerun alone. | Device | Driver | Result | |---|---|---| | NVIDIA RTX 4070 | 32.0.16.1742 | 502 passed (7 skipped) | | AMD Radeon(TM) Graphics, Ryzen 7 7800X3D iGPU (RDNA 2, `0x164e`, subgroup 64), `ANYPS5_GPU=AMD` | 32.0.21042.62 | 4 failed, same in isolated reruns | - `agc_driver_pixel_interlock`: `pixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writes`, as in #2009. - `agc_driver_layered_volume_draw` and `agc_driver_layered_volume_vertex` fail with `vertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0)`, while `_vertex_no_gpl` and `_submit` pass. That is the inverse of the RX 6400 result above (only `_no_gpl` failing), which looks like the GPL-dependent inversion in #4768. - `agc_driver_lds_mixed_width_atomics`: `lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000`, but it fails after 3.4 s with no `still running on the GPU` message and no driver timeout.
LeandroLP23 commented 2026-10-13 22:52:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T22:52:01Z.


An RDNA 3.5 Windows data point. Setup: Windows 11 (26300), AMD Radeon 860M iGPU (1002:1114, subgroup 64), driver 32.0.13058.8001 (Vulkan driver string AMD proprietary driver 24.30.58.08 (LLPC)), WinLibs GCC 15.2.0, Release, full build. Two full ctest -R '^agc_' -j 1 runs from tonight, with the test shader cache emptied each time:

  1. main a0f5916a2 + #5477;
  2. main 665ad7da7 + #4767.

Neither change touches these tests.

Test Run 1 Run 2
agc_driver_pixel_interlock passed (0.54 s) passed (0.16 s)
agc_driver_layered_volume_vertex_no_gpl failed failed
agc_driver_layered_volume_vertex / _draw / _submit passed passed
agc_driver_lds_mixed_width_atomics passed (0.36 s) passed (0.15 s)
agc_driver_alpha_to_coverage / agc_driver_wave32_exec_lane_bits passed passed

Everything else passes: 480 and 481 tests, with 2 skips each.

On this driver only _no_gpl fails, the same split as the RX 6400. The 7800X3D iGPU's driver gives the inverse, so this looks like the GPL-dependent inversion in #4768. On this machine GPL-off pipelines also fail alpha_to_coverage and wave32_exec_lane_bits, 0 of 5 each, and even compute writes go missing, as I posted there. pixel_interlock and lds_mixed_width_atomics pass here, so their failures on the RX 6400 and the 7800X3D iGPU are not common to every AMD Windows driver.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156896753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6156896753). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-13T22:52:01Z. --- An RDNA 3.5 Windows data point. Setup: Windows 11 (26300), AMD Radeon 860M iGPU (`1002:1114`, subgroup 64), driver 32.0.13058.8001 (Vulkan driver string `AMD proprietary driver 24.30.58.08 (LLPC)`), WinLibs GCC 15.2.0, Release, full build. Two full `ctest -R '^agc_' -j 1` runs from tonight, with the test shader cache emptied each time: 1. `main` `a0f5916a2` + #5477; 2. `main` `665ad7da7` + #4767. Neither change touches these tests. | Test | Run 1 | Run 2 | |---|---|---| | `agc_driver_pixel_interlock` | passed (0.54 s) | passed (0.16 s) | | `agc_driver_layered_volume_vertex_no_gpl` | **failed** | **failed** | | `agc_driver_layered_volume_vertex` / `_draw` / `_submit` | passed | passed | | `agc_driver_lds_mixed_width_atomics` | passed (0.36 s) | passed (0.15 s) | | `agc_driver_alpha_to_coverage` / `agc_driver_wave32_exec_lane_bits` | passed | passed | Everything else passes: 480 and 481 tests, with 2 skips each. On this driver only `_no_gpl` fails, the same split as the RX 6400. The 7800X3D iGPU's driver gives the inverse, so this looks like the GPL-dependent inversion in #4768. On this machine GPL-off pipelines also fail `alpha_to_coverage` and `wave32_exec_lane_bits`, 0 of 5 each, and even compute writes go missing, as I posted there. `pixel_interlock` and `lds_mixed_width_atomics` pass here, so their failures on the RX 6400 and the 7800X3D iGPU are not common to every AMD Windows driver. AI-assisted: yes (Claude Code)
simonbronk commented 2026-10-14 14:29:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T14:29:31Z.


Status of the three on an AMD Ryzen iGPU (gfx1036, Windows driver 32.0.21036.18), main 5a6ad0ed3:

  • agc_driver_layered_volume_vertex_no_gpl: the AMD driver's own pipeline cache (%LOCALAPPDATA%\AMD\VkCache) serves pipelines compiled in the other GPL mode, and their writes never land. The GPL-on tests earlier in the suite fill it. With that cache emptied, the test passes. Details in #4768 (https://github.com/boykopovar/AnyPS5/issues/4768#issuecomment-6170733664).
  • agc_driver_pixel_interlock: #5804 fixes it here once the device-enable commit it left out is added back. Results and the missing pieces are in https://github.com/boykopovar/AnyPS5/pull/5804#issuecomment-6170538668.
  • agc_driver_lds_mixed_width_atomics: still fails with an empty driver cache, about 4.7 s per run, lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000. Not the cache. Looking at it next.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6170738425 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6170738425). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-14T14:29:31Z. --- Status of the three on an AMD Ryzen iGPU (gfx1036, Windows driver 32.0.21036.18), `main` 5a6ad0ed3: - `agc_driver_layered_volume_vertex_no_gpl`: the AMD driver's own pipeline cache (`%LOCALAPPDATA%\AMD\VkCache`) serves pipelines compiled in the other GPL mode, and their writes never land. The GPL-on tests earlier in the suite fill it. With that cache emptied, the test passes. Details in #4768 (https://github.com/boykopovar/AnyPS5/issues/4768#issuecomment-6170733664). - `agc_driver_pixel_interlock`: #5804 fixes it here once the device-enable commit it left out is added back. Results and the missing pieces are in https://github.com/boykopovar/AnyPS5/pull/5804#issuecomment-6170538668. - `agc_driver_lds_mixed_width_atomics`: still fails with an empty driver cache, about 4.7 s per run, `lane 0 read 0xdeadbeefdeadbeef, expected 0x00001ffffffff000`. Not the cache. Looking at it next. AI-assisted (Claude Code).
simonbronk commented 2026-10-14 14:36:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T14:36:29Z.


agc_driver_lds_mixed_width_atomics on the same AMD iGPU (gfx1036, Windows driver 32.0.21036.18), main 5a6ad0ed3. With temporary local changes:

  • It's a GPU hang, not a wrong sum. The dispatch runs for about 4.6 s every time ([gpu] recorded batch still running on the GPU after 5 s at 256 threads), the output keeps its 0xdeadbeef fill, and no system TDR is logged. That's the same signature #833 describes.
  • It depends on the number of waves. With the workgroup size made configurable in the test, the uniform kernel passes at 32 and 64 threads (1 and 2 wave32 subgroups) and hangs at 96, 128 and 256.
  • The 32-bit atomics #2675 put under the lock are not the cause: with them taken back out of the lock it still hangs at 96 and 256. agc_driver_lds_atomics64 (64-bit only) passes on this device. What's left is the 64-bit LockedLdsUpdate loop, 16 of them in a row, with 3 or more waves contending. #833 kept the critical section inside the loop with the elected lane and the ballot exit; that doesn't hold here.
  • Declaring MaximallyReconvergesKHR (VK_KHR_shader_maximal_reconvergence, which both GPUs here expose) on the locked programs doesn't change it. It still hangs at 256.
  • Not the driver pipeline cache from #4768: it hangs the same with that cache emptied.

A way around the lock altogether: both GPUs here (and RDNA has ds_add_u64 natively) expose VK_KHR_workgroup_memory_explicit_layout (with workgroupMemoryExplicitLayout, ScalarBlockLayout, 8BitAccess and 16BitAccess) and shaderSharedInt64Atomics. With LDS declared as a Block in Workgroup storage, a 64-bit view can alias the 32-bit one, and ds_*_u64 becomes a native OpAtomic* with no lock. #2297's measurement says the hardware serialises the two widths on one slot. That changes how the recompiler declares LDS, so I'm only noting it here. I haven't tried it.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6170879433 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6170879433). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-14T14:36:29Z. --- `agc_driver_lds_mixed_width_atomics` on the same AMD iGPU (gfx1036, Windows driver 32.0.21036.18), `main` 5a6ad0ed3. With temporary local changes: - It's a GPU hang, not a wrong sum. The dispatch runs for about 4.6 s every time (`[gpu] recorded batch still running on the GPU after 5 s` at 256 threads), the output keeps its `0xdeadbeef` fill, and no system TDR is logged. That's the same signature #833 describes. - It depends on the number of waves. With the workgroup size made configurable in the test, the `uniform` kernel passes at 32 and 64 threads (1 and 2 wave32 subgroups) and hangs at 96, 128 and 256. - The 32-bit atomics #2675 put under the lock are not the cause: with them taken back out of the lock it still hangs at 96 and 256. `agc_driver_lds_atomics64` (64-bit only) passes on this device. What's left is the 64-bit `LockedLdsUpdate` loop, 16 of them in a row, with 3 or more waves contending. #833 kept the critical section inside the loop with the elected lane and the ballot exit; that doesn't hold here. - Declaring `MaximallyReconvergesKHR` (`VK_KHR_shader_maximal_reconvergence`, which both GPUs here expose) on the locked programs doesn't change it. It still hangs at 256. - Not the driver pipeline cache from #4768: it hangs the same with that cache emptied. A way around the lock altogether: both GPUs here (and RDNA has `ds_add_u64` natively) expose `VK_KHR_workgroup_memory_explicit_layout` (with `workgroupMemoryExplicitLayout`, `ScalarBlockLayout`, `8BitAccess` and `16BitAccess`) and `shaderSharedInt64Atomics`. With LDS declared as a `Block` in Workgroup storage, a 64-bit view can alias the 32-bit one, and `ds_*_u64` becomes a native `OpAtomic*` with no lock. #2297's measurement says the hardware serialises the two widths on one slot. That changes how the recompiler declares LDS, so I'm only noting it here. I haven't tried it. AI-assisted (Claude Code).
savvaniss commented 2026-10-17 13:39:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-17T13:39:31Z.


RDNA 4 data point, and where each of the three now stands. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, main 47a266cf9, ANYPS5_NO_SHADER_CACHE=1, serial CTest, with VkCache emptied first:

Test RX 9070 XT, 5 runs Tracked in
agc_driver_pixel_interlock pass #5804, merged 2026-10-16
agc_driver_lds_mixed_width_atomics pass #6666 (seen on RDNA 2 and GCN 5 only; candidate fix #6670)
agc_driver_layered_volume_vertex_no_gpl passes alone from an empty VkCache (3 of 3); fails when agc_driver_layered_volume_vertex (GPL on) runs first in the same cache #4768 (fix #6436)

I can't confirm the RX 6400 (RDNA 2) results from RDNA 4. Every failure in this report now has its own issue or merged fix.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6234556187 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6234556187). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-17T13:39:31Z. --- RDNA 4 data point, and where each of the three now stands. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, `main` `47a266cf9`, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest, with `VkCache` emptied first: | Test | RX 9070 XT, 5 runs | Tracked in | |---|---|---| | `agc_driver_pixel_interlock` | pass | #5804, merged 2026-10-16 | | `agc_driver_lds_mixed_width_atomics` | pass | #6666 (seen on RDNA 2 and GCN 5 only; candidate fix #6670) | | `agc_driver_layered_volume_vertex_no_gpl` | passes alone from an empty `VkCache` (3 of 3); fails when `agc_driver_layered_volume_vertex` (GPL on) runs first in the same cache | #4768 (fix #6436) | I can't confirm the RX 6400 (RDNA 2) results from RDNA 4. Every failure in this report now has its own issue or merged fix. AI-assisted: yes (Claude Code)
LeandroLP23 commented 2026-10-18 20:33:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T20:33:02Z.


agc_driver_layered_volume_vertex_no_gpl passes on AMD's Windows driver with #6436. Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, main fb9a1eb8f: it fails 3/3 on main with the same slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0) as above, and passes 3/3 with #6436 merged. @thuanquang measured the same on an RX 6700 XT in #7376: it is the GPL cache-order effect from #4768.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254811774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5271#issuecomment-6254811774). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T20:33:02Z. --- `agc_driver_layered_volume_vertex_no_gpl` passes on AMD's Windows driver with #6436. Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, `main` `fb9a1eb8f`: it fails 3/3 on `main` with the same `slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0)` as above, and passes 3/3 with #6436 merged. @thuanquang measured the same on an RX 6700 XT in #7376: it is the GPL cache-order effect from #4768. AI-assisted
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#5271
No description provided.