AMD RX 6700 XT: 9 agc_driver execution tests segfault in amdvlk64, sdwa_float_selectors and sdwa_ldexp_f16 give wrong results #2944
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 poonasor on 2026-10-10T18:45:05Z.
Eleven execution tests fail on an AMD Radeon RX 6700 XT: nine segfault inside
amdvlk64.dll, two produce wrong results. Three further tests segfault only in afull
ctestrun and pass when run individually. Everything else passes.Windows 11 Pro 23H2 (build 22631), WinLibs GCC 15.2.0 r7
(15.2.0posix-14.0.0-ucrt-r7), Ninja, Release,
BUILD_TESTING=ON, no other CMakeoptions. Base:
main57f96fd. AMD Radeon RX 6700 XT (Navi 22, device 0x73df,Adrenalin 25.10.45.05, driver 32.0.21045.5002 dated 2026-08-16, Vulkan 1.4.315),
the only Vulkan device, auto-selected (
Selected GPU name=AMD Radeon RX 6700 XT vendor=0x1002 device=0x73df subgroup=64).Full ctest: 690/709 passed, 5 skipped (
video_outflip tests andguest_video_out_wqhd_detection_no_vulkan), 14 failed.agc_driver_packed_unorm_color_targetagc_driver_pixel_helper_lanesagc_driver_pixel_interlockagc_driver_pixel_ldsagc_driver_pixel_uint16_exportagc_driver_pixel_wave_reductionagc_driver_provoking_vertexagc_driver_srgb8_color_targetagc_driver_vertex_fetchagc_driver_sdwa_float_selectorslane 2 add_f16 BYTE_1/WORD_1 -> BYTE_0 is 0x000000ba, expected 0x00000000agc_driver_sdwa_ldexp_f16lane 2 BYTE_0/DWORD -> DWORD is 0x0000fff0, expected 0x00000000agc_driver_pixel_fixed_point_positionagc_driver_pixel_valid_maskagc_driver_scalar_swappc_fetchNotes:
The segfaults are deterministic per test: a rerun of the 14 failed tests one by
one failed the same 11 with the same statuses.
The crash is a null-pointer read inside the driver and the faulting offset
differs between runs, e.g.
amdvlk64.dll+0x1bbfa4,+0xab8dc1,+0x21eef34.Representative dump from
agc_driver_vertex_fetch:The two
sdwafailures may relate to #2114, where the same test names fail onIntel UHD 770 / 630, although there the failing cases and values differ
(
min_f16there,add_f16/ldexphere). Wrong results on both an Intel iGPUand an AMD dGPU suggest the SDWA f16 path itself rather than one driver.
Driver is the current Adrenalin (25.10.45.05, August 2026), so this is not an
outdated-driver data point.
I can rerun anything on this machine.
AI-assisted (ZCode).
Imported from boykopovar/AnyPS5. Originally posted by poonasor on 2026-10-10T20:44:26Z.
Data point: Dreaming Sarah (PPSA02929) crashes at its first real graphics submission on this same machine and driver, inside
amdvlk64.dllat+0x21eef34- the exact rip of theagc_driver_vertex_fetchSEGFAULT above. Boot trace, import audit (0 absent imports), the offsets observed across runs and theAPS5_NO_TEXTURE_CACHE/APS5_NO_WRITE_WATCH/APS5_STORE_AT_FLIPresults are in discussion #3018. So the test failures above correspond to a title that is verified playable on a GTX 1050 Ti not starting at all on the RX 6700 XT.Imported from boykopovar/AnyPS5. Originally posted by poonasor on 2026-10-10T23:17:51Z.
Update: the segfaults are the background link-time-optimized pipeline link (#2713), the same family as #2755 and #2777, and #3149 fixes them on this machine.
APS5_NO_PIPELINE_LTO=1. That is also a workaround for titles until a fix is merged.LinkPipelineFromLibrariesjob. Running that link synchronously, or with a null pipeline cache, still faults; keeping the shader modules of the library parts alive does not.Pipelinedestroys its modules right after creating the parts, and the AMD driver appears to read them again in the optimized link.ctest -R "^agc_" -j1with%LOCALAPPDATA%\AMD\VkCacheemptied first, same RX 6700 XT and driver as above:main379d8b4eamdvlk64.dll,sdwa_float_selectors,sdwa_ldexp_f16main379d8b4e+ #3149pixel_interlock,sdwa_float_selectors,sdwa_ldexp_f16With a cold driver cache more tests fault than the 9 + 3 in the report (the list is in #3149); the driver's on-disk cache was hiding some, as described in #2755.
Still open after #3149, wrong results rather than faults:
agc_driver_sdwa_float_selectorsandagc_driver_sdwa_ldexp_f16: unchanged, same values as in the report.agc_driver_pixel_interlock: no longer faults, fails withpixel interlock wave64 BDA fault: pixel 0 counted 1 of 0 overlapping read-modify-writes. It fails the same way withAPS5_NO_PIPELINE_LTO=1.Dreaming Sarah (#3018), relinked against
main+ #3149, no longer faults at its first graphics submission: 90 s with no fault in the log. I have not checked the rendered output yet.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by poonasor on 2026-10-10T23:18:23Z.
Note: #3149 was closed automatically by the PR intake pause ("intake paused"), not on review. The change is one commit on current
main,8acd0113onpoonasor:fix/agc-library-module-lifetime, with the measurements in the #3149 description. Maintainers are welcome to reopen it or cherry-pick the commit; I can rerun anything on this GPU.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-10T23:43:17Z.
Confirmed on RDNA 3.5: @poonasor's
8acd0113removes all the failures here too. Radeon 860M (0x1114), AMD driver 32.0.13058.8001, Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release,%LOCALAPPDATA%\AMD\VkCacheandbuild/tests/shader_cacheemptied first,ctest -R agc_ -j1:main181420f8amdvlk64.dllmain181420f8+8acd0113The two
sdwa_*tests andpixel_interlockthat still fail on the RX 6700 XT pass on this GPU with and without the change (they are the RDNA 2 issues in #2273 and #2009). Since #3149 was closed by the intake check, I'm opening it again with @poonasor kept as the author.Imported from boykopovar/AnyPS5. Originally posted by poonasor on 2026-10-11T00:04:07Z.
Title confirmation for the fix: Dreaming Sarah (PPSA02929), which faulted in
amdvlk64.dll+0x21eef34at its first graphics submission on this GPU, is playable with it. Relinked againstmain379d8b4e+8acd0113: reaches gameplay, renders correctly at about 60 FPS, audio and controls work, no fault in the log. Details in discussion #3018.For reference, the fix for the segfaults in this issue is PR #3149 (closed automatically by the intake pause, not reviewed), branch
poonasor:fix/agc-library-module-lifetime. Thesdwa_float_selectors,sdwa_ldexp_f16andpixel_interlockwrong results remain open.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T00:06:10Z.
@poonasor I opened your fix again as #3173 (your commit
8acd0113on currentmain, you as the author), with your measurements, the RDNA 3.5 run and now your Dreaming Sarah result in the description.Imported from boykopovar/AnyPS5. Originally posted by poonasor on 2026-10-11T00:24:47Z.
The two
sdwawrong results in this issue are fixed by the open PR #1463 (integer f16 to f32 decode instead ofUnpackHalf2x16): on this RX 6700 XT,agc_driver_sdwa_float_selectorsandagc_driver_sdwa_ldexp_f16pass 3/3 with it, details in this comment. The segfault fix is now open as #3173 (same commit as the auto-closed #3149).With
main379d8b4e+ #3173 + #1463 the fullctesthere is 726 of 732 passed, 5 skipped, 1 failed:agc_driver_pixel_interlock, which is #2009.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T08:46:19Z.
RDNA 4 (Linux) data for the full-ctest angle.
Environment: AMD Radeon RX 9070 XT (Navi 48, gfx1201, device 0x7550, subgroup 64), RADV Mesa 26.2.4, Vulkan 1.4.354, CachyOS, kernel 7.2.9, GCC 16, Release. Tree:
mainabdad2a5plus a local-only ctest registration commit for the full recorder run (no behaviour changes).ctestsweep (--parallel 4): the nine amdvlk64 segfaults,agc_driver_sdwa_float_selectorsandagc_driver_sdwa_ldexp_f16(the #1463 decode is in this tree), and the three that segfaulted only in the full run on the RX 6700 XT (pixel_fixed_point_position,pixel_valid_mask,scalar_swappc_fetch).video_outflip tests, no display), ~20 s wall.agc_driver_sdwa_float_selectors,agc_driver_sdwa_ldexp_f16andagc_driver_pixel_interlockalso run standalone: pass.So the full-run-only segfaults do not reproduce on this device with current
main, which has #3173 and #1463.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:26:01Z.
Closing: the amdvlk64 segfaults are fixed by #3173 and the two SDWA results by #1463, both on main.
agc_driver_pixel_interlockstays in #2009. Reopen if any of the others still fails on the RX 6700 XT.