agc_driver_f64_fma_subnormals: f64 subnormal results are flushed to zero (Mesa ANV, lavapipe) #2860
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 ThatsLeo on 2026-10-10T16:48:31Z.
agc_driver_f64_fma_subnormalsfails on Intel Arc (Meteor Lake, Mesa 26.2.3 ANV) and on lavapipe:Shaders declare
DenormPreserveonly for 16-bit floats, so f64 subnormal behaviour is left to the driver, and both flush the subnormal result. Intel Arc reportsshaderDenormPreserveFloat64; lavapipe does not.Fix:
ThatsLeo/AnyPS5:fix/shader-f64-denorm-preserve(one commit,7df6c709, onmain57f96fd2).SpirvTarget::float64DenormPreserve, set fromshaderDenormPreserveFloat64, makes shaders with f64 instructions declareDenormPreserve64. It followsnarrowSubgroupClock: cache key, request serialization (version 16),agc_shader_disk_cacheandagc_shader_memorycover it.v_fma_f64entry.Tested: Fedora 44, GCC 16.2.1, Release. The test passes on Intel Arc and is skipped on lavapipe. Full
ctestonmain(57f96fd2), on this branch and with all eight fixes listed in #2803-#2807 and here, on Intel Arc and lavapipe: no new failure. With all of them and #1250, all 698 tests pass on Intel Arc and on lavapipe. Dreaming Sarah (PPSA02929) runs with no visual difference.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T17:29:52Z.
Checked this on Windows with the Intel driver: Core Ultra 9 275HX (Arrow Lake, driver 32.0.101.8991), WinLibs GCC 15.2.0 r7, Release,
7df6c709onmain57f96fd2, in the same stack I describe on #2861.This iGPU has no
shaderFloat64at all, soagc_driver_f64_fma_subnormalsnow skips (float64DenormPreserveis false), where onmainit fails because Float64 is missing. Nothing else in the full run changed because of it.The skip here covers the same case as the
F64FmaSubnormals.cpphalf of myfix/agc-tests-skip-without-float64(7217a416), so that part of mine is redundant. The other half is still needed:agc_driver_fp16_overflowuses f64 instructions too, and without a skip it fails on this device with64-bit float instructions need the Float64 capability, which the device lacks.AI-assisted (Claude Code); I ran everything above on my machine.