agc_driver_f32_compare_constant fails on the AMD Windows driver: v_cmp_lt_f32 NaN < +inf from a register gives 1 #3536
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 LeandroLP23 on 2026-10-11T12:39:40Z.
On a Radeon 860M (RDNA 3.5), Windows 11 (26300), AMD driver 24.30.58.08 (LLPC, Vulkan driver 2.0.331), WinLibs GCC 15.2.0 r7, Release,
agc_driver_f32_compare_constant(added in #2408) fails 3/3 onmain1e8fff68cwith the AMD Vulkan cache andshader_cacheemptied before each run:Only this case fails. The constant-operand cases and the other float modes pass. It isn't caused by #2408's translation change: with
CompareInstructions.cppfrom before42692dee1, the test fails the same way, on the same lane and value. In the register-operand variant, +inf reachesv21through av_mov_b32of a literal, so the driver's compiler sees it as a constant while the NaN comes from the buffer. My guess is that LLPC foldsx < +infinto a form that is true for NaN, but I haven't confirmed it, e.g. with a SPIR-V dump or on RADV with the same GPU. CI doesn't catch it because the Windows runners have no GPU and Linux runs on lavapipe.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T16:22:01Z.
Data point:
agc_driver_f32_compare_constantpasses 2/2 on a Radeon 780M (RDNA 3, Windows 11 26200, AMD driver 31.0.22038.0) onmaina11c8f7f, withANYPS5_GPU=AMD(the test throws if no AMD device matches) andVK_LOADER_DRIVERS_DISABLE=*dzn*(#3255). So the wrongNaN < +infresult isn't reproduced on every AMD Windows driver. It may be specific to the 24.30.58.08 compiler, or to RDNA 3.5.