agc_* tests: 3 of 483 fail on AMD Radeon RX 6400, pass on NVIDIA RTX 4080 SUPER #5271
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 duringlds_mixed_width_atomics(>10 s).Environment
mainat60fb61870, full build,ctest -R ^agc_ --timeout 300ANYPS5_GPU=RadeonTests that differ
agc_driver_pixel_interlockpixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writesagc_driver_layered_volume_vertex_no_gpl(APS5_NO_GPL=1)vertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0); the variantsagc_driver_layered_volume_vertex(with pipeline libraries),_drawand_submitpass on AMDagc_driver_lds_mixed_width_atomics[gpu] recorded batch still running on the GPU after 5 s/after 10 s, thenlds 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 testagc_driver_ngg_vertex_wave_reductions3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanesagc_driver_oversized_dispatchthe device reports a 4294967295 workgroup limit, which never splits a 129199x1x1 dispatchagc_driver_stencil_ref_exportTwo tests log the RTX even with
ANYPS5_GPU=Radeon:agc_driver_device_selection(it selects devices itself) andagc_driver_sparse_buffer_holes(not checked why).Reproduce
agc_driver_lds_mixed_width_atomicscan 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.cppruns wave size 64 first. The three plain draws (Check, line 201) pass on AMD; the failure is inDrawFault(line 180), whoseRequireat 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 emitsOpEndInvocationInterlockEXTfollowed byOpKillinStopBdaInvocationIf(core/shader/recompiler/SpirvBackend/src/SpirvBdaFault.cpp:100), whileOpBeginInvocationInterlockEXTis emitted at the start ofmain(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:0x40is theKeptvalue (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 isAPS5_NO_GPL=1(CMakeLists.txtnear line 1282,VulkanDevice.cpp:1325), so the non-library pipeline path (Pipeline.cpp,Beginwithrendering.layerCount = state.renderLayersat 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_bitsandagc_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).
Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-13T16:24:50Z.
Linux control at your exact unmodified main revision
60fb618708d78067f86f06a6ce8960f34583dfee:1002:13c0, subgroup 64The five are
agc_driver_pixel_interlock,agc_driver_layered_volume_vertex_no_gpl, and the three controlsagc_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 oneVK_DRIVER_FILESICD and setsANYPS5_GPU,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1. Logs confirm the GPUs.APS5_NO_GPLis unset externally; the registered_no_gpltest suppliesAPS5_NO_GPL=1itself.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.Imported from boykopovar/AnyPS5. Originally posted by LloydNicholson on 2026-10-13T19:58:58Z.
RDNA 4 control on Linux, unmodified
maindacd78525:0x7590, gfx1200), RADV Mesa 26.3.0-devel (gitab0ab22), subgroup 64The eight are
agc_driver_pixel_interlock,agc_driver_layered_volume_vertex_no_gpl, the three controlsagc_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_FILESpinned 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_atomicsexcluded) the only failure isagc_driver_tessellation, a Mesa crash reported in #5444. I did not runagc_driver_lds_mixed_width_atomics, Windows, or a title.AI-assisted (Claude Code).
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,mainc7601b797+ #5301 (only the relinker resource build change),ANYPS5_REQUIRE_VULKAN=1,ctest --timeout 120 --parallel 4over the 502 agc/shader/video_out tests; each failure was rerun alone.0x164e, subgroup 64),ANYPS5_GPU=AMDagc_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_drawandagc_driver_layered_volume_vertexfail withvertex draw: slice 1 texel (0, 0) channel 0 is 64, expected 255 (the band of layer 0), while_vertex_no_gpland_submitpass. That is the inverse of the RX 6400 result above (only_no_gplfailing), 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 nostill running on the GPUmessage and no driver timeout.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 stringAMD proprietary driver 24.30.58.08 (LLPC)), WinLibs GCC 15.2.0, Release, full build. Two fullctest -R '^agc_' -j 1runs from tonight, with the test shader cache emptied each time:maina0f5916a2+ #5477;main665ad7da7+ #4767.Neither change touches these tests.
agc_driver_pixel_interlockagc_driver_layered_volume_vertex_no_gplagc_driver_layered_volume_vertex/_draw/_submitagc_driver_lds_mixed_width_atomicsagc_driver_alpha_to_coverage/agc_driver_wave32_exec_lane_bitsEverything else passes: 480 and 481 tests, with 2 skips each.
On this driver only
_no_gplfails, 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 failalpha_to_coverageandwave32_exec_lane_bits, 0 of 5 each, and even compute writes go missing, as I posted there.pixel_interlockandlds_mixed_width_atomicspass 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)
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),
main5a6ad0ed3: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).
Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T14:36:29Z.
agc_driver_lds_mixed_width_atomicson the same AMD iGPU (gfx1036, Windows driver 32.0.21036.18),main5a6ad0ed3. With temporary local changes:[gpu] recorded batch still running on the GPU after 5 sat 256 threads), the output keeps its0xdeadbeeffill, and no system TDR is logged. That's the same signature #833 describes.uniformkernel passes at 32 and 64 threads (1 and 2 wave32 subgroups) and hangs at 96, 128 and 256.agc_driver_lds_atomics64(64-bit only) passes on this device. What's left is the 64-bitLockedLdsUpdateloop, 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.MaximallyReconvergesKHR(VK_KHR_shader_maximal_reconvergence, which both GPUs here expose) on the locked programs doesn't change it. It still hangs at 256.A way around the lock altogether: both GPUs here (and RDNA has
ds_add_u64natively) exposeVK_KHR_workgroup_memory_explicit_layout(withworkgroupMemoryExplicitLayout,ScalarBlockLayout,8BitAccessand16BitAccess) andshaderSharedInt64Atomics. With LDS declared as aBlockin Workgroup storage, a 64-bit view can alias the 32-bit one, andds_*_u64becomes a nativeOpAtomic*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).
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,main47a266cf9,ANYPS5_NO_SHADER_CACHE=1, serial CTest, withVkCacheemptied first:agc_driver_pixel_interlockagc_driver_lds_mixed_width_atomicsagc_driver_layered_volume_vertex_no_gplVkCache(3 of 3); fails whenagc_driver_layered_volume_vertex(GPL on) runs first in the same cacheI 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)
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T20:33:02Z.
agc_driver_layered_volume_vertex_no_gplpasses on AMD's Windows driver with #6436. Radeon 860M (RDNA 3.5), driver 32.0.13058.8001,mainfb9a1eb8f: it fails 3/3 onmainwith the sameslice 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