AGC: f64 and division tests crash in amdvlk64 on RX 9060 XT (RDNA 4) since AMD driver 32.0.32015.2008 #7451
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 tezzgod74 on 2026-10-18T07:35:46Z.
On an RX 9060 XT (RDNA 4,
1002:7590, Windows), four f64 and division execution tests crash inside the AMD driver since it was updated from 32.0.31041.1004 to 32.0.32015.2008:agc_driver_division_output_modifiersagc_driver_division_result_modifiersagc_driver_f64_conversionsagc_driver_f64_transcendentalThe same AnyPS5 build that passed them on the old driver now crashes on the new one, so the change is the driver's.
main5aaf26bd3+ #4021ctest, 2026-10-11)main20a84154fThe Ryzen 9 7950X iGPU (RDNA 2,
1002:164e, 32.0.21045.5002, unchanged) in the same machine passes all four on both commits.Each crash is an access violation on a driver thread:
APS5_NO_PIPELINE_LTO=1andAPS5_NO_GPL=1don't change it, so this isn't the background pipeline link from #2944 / #3173. I haven't narrowed it to one instruction or program yet.agc_driver_quad_pixel_maskalso fails on this device onmainand passes on the iGPU, with a value that changes from run to run and with the switches above:I couldn't place it on the old driver: the test isn't in the
5aaf26bd3tree, so its cause is open.Several reports run an RX 9070 XT on 32.0.32015.2008 (#5631, #5679, #5781), but I didn't find one that ran these tests, so I don't know whether other RDNA 4 parts are affected.
Windows 11 Pro 10.0.26300, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
-DANYPS5_ENABLE_SPIRV_TOOLS=ON.Reproduce
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T09:52:32Z.
RDNA 3.5 data point: all four tests pass here, 3 runs of 3 each.
Radeon 860M (RDNA 3.5,
1002:1114, APU), AMD driver 32.0.13058.8001 (Vulkan driver info 24.30.58.08, LLPC), Windows 11 Home 26300, WinLibs GCC 15.2.0, Release. Build:main1c523bdb4+ #6308 + #7264 (neither touches these paths).agc_driver_division_output_modifiers,agc_driver_division_result_modifiers,agc_driver_f64_conversionsandagc_driver_f64_transcendentalall pass. The output confirms the Radeon 860M was the selected device. This is a different driver branch from either of yours, so it does not separate the architecture from the 32.0.32015.2008 update. It does show that the four tests are not failing on every recent AMD Windows driver.AI-assisted
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:23Z.
RDNA 4 control on the driver this report calls good: on an RX 9070 XT the four tests pass with 32.0.31041.1004.
AMD Radeon RX 9070 XT (RDNA 4,
1002:7550), driver 32.0.31041.1004 (Adrenalin 26.8.1), Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, unchangedmainf3059421f,ANYPS5_NO_SHADER_CACHE=1, serial CTest,VkCacheemptied first.agc_driver_division_output_modifiersagc_driver_division_result_modifiersagc_driver_f64_conversionsagc_driver_f64_transcendentalThey also passed in a full CTest run of the same build. I haven't tried 32.0.32015.2008 on this card. If I update the driver, I'll rerun these four and post the result here.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T10:34:42Z.
RX 9070 XT on a newer driver than the report's: the same four tests crash.
AMD Radeon RX 9070 XT (RDNA 4,
1002:7550), driver 32.0.32015.7029 (Adrenalin 26.10.1), Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release, unchangedmain27c88a8d7,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, serial CTest (the driver's ownVkCachewas not cleared).agc_driver_division_output_modifiersagc_driver_division_result_modifiersagc_driver_f64_conversionsagc_driver_f64_transcendentalagc_driver_quad_pixel_maskAs in the report, the crash is an access violation on a driver thread (
agc_driver_f64_conversions_tests.exerun directly):With @savvaniss's result for this card on 32.0.31041.1004, this points at the driver change on RDNA 4 rather than the RX 9060 XT alone, and 32.0.32015.7029 still has it.
It is a pipeline compile crash. With
APS5_DUMP_COMPUTE_PIPELINES,agc_driver_f64_conversionscaptures 13 compute pipelines before it crashes; replayed one at a time withagc_compute_pipeline_replay(compile only, no dispatch), 12 compile and one,compute-7e97bd66c3bfe19b, crashes at the sameamdvlk64.dll+0x1491ecc. Its SPIR-V (1.4, 6,687 words,Float64,SPV_KHR_float_controls) passesspirv-val --target-env vulkan1.3. Removing itsSignedZeroInfNanPreserve 64execution mode, or its two 32-bit float-control modes, does not avoid the crash. I'm reducing that module withspirv-reduceand will post the smallest crashing module here.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T10:55:02Z.
Follow-up:
spirv-reduce(SPIRV-Tools from the repository's submodule, 1,500 steps) shrankcompute-7e97bd66c3bfe19bfrom 6,687 words to the module below, keeping only candidates that crash atamdvlk64.dll+0x1491eccwhen compiled withagc_compute_pipeline_replay(RX 9070 XT, 32.0.32015.7029). It passesspirv-val --target-env vulkan1.3and crashes in 3 of 3 compiles. Its function is a 64-bit compare-and-select of a value read from memory:and
%563is then used as the index of a store.One change at a time, each variant valid and compiled twice:
SignedZeroInfNanPreserve 64DenormFlushToZero 32,SignedZeroInfNanPreserve 32,SignedZeroInfNanPreserve 64)%559replaced by%554(no compare and select)v2uinthalves, then bitcast todoubleGLSL.std.450 FMininstead of compare and select%563stored as a value at index 0So in this module the crash needs a float-control execution mode (any one, also a 32-bit one) together with a 64-bit
OpSelectbetween a runtime double and a constant under a 64-bit compare.That is not the whole story for the original module: rewriting all three of its 64-bit
OpSelects onv2uinthalves still crashes at the same address (3 of 3), so something else in it reaches the same failure. I haven't reduced that further.Reduced module (spirv-dis)
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T11:25:02Z.
Second trigger. I reduced the original module again with its three 64-bit
OpSelects rewritten onv2uinthalves (the version that still crashed).spirv-reducestopped at its 1,500-step limit, so the result is not minimal, but it is valid (spirv-val --target-env vulkan1.3) and crashes at the sameamdvlk64.dll+0x1491eccin 3 of 3 compiles. It has noOpSelectondouble; its function clamps a double built from a loaded word to [0, 1] with two compares and two selects on the halves:One change at a time, each variant valid and compiled twice:
%395(x < 1) replaced bytrue%394(x > 0) replaced bytrue%394asOpFOrdGreaterThanEqual%394asOpFUnordGreaterThan%394asOpFOrdLessThan %double_0 %393(0 < x)%394comparing with 0.5 instead of 0%394kept,%402selecting between two constants%394kept, used as a 0/1 value instead of selectingx%394asOpLogicalNotofOpFUnordLessThanEqual %393 %double_0(same result for every input)So this one needs an ordered 64-bit
x > 0.0that chooses betweenxand 0.0, and it crashes without float-control modes too. Together with the first trigger (x < 1.0 ? x : 1.0with a float-control mode), both are a 64-bit min or max of a runtime value with a constant written as a compare and a select. My guess is that the driver's recognition of that idiom on 64-bit floats is what fails, but I haven't shown that. The same-result rewrite in the table still crashes, so I haven't found a form AnyPS5 could emit that the driver doesn't turn back into the same pattern.Reduced module (spirv-dis)
AI-assisted: yes (Claude Code)