test(shader): accept the split fma sum in F32DenormalFlush #3822
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3822"
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 object05 on 2026-10-11T17:13:48Z.
What
agc_driver_f32_denormal_flushfails on a device whose driver splitsFmainto a multiply and an add:Lane 20 is
0x1fffffff * 0x1fffffff + 0x00800000. The product is below 2^-126, so the split multiply flushes it and the add returns the addend. It is the only row with a tiny product and a non-zero addend.v_fma_f32andv_fmac_f32fail on it in all three float modes; every other check in the test passes.When both return
0x00800000, the test prints that the device splits fma and does not check those two values.FmaRoundingalready does the same for its fused forms on such a device. The gap is added to the f32 denormals entry in TechnicalDebt.#2114 reports the same line with the same values on an Intel UHD 630 on Windows (drivers 30.0.101.1339 and 31.0.101.2141).
Tested
Linux 6.18, GCC 16.2.1, Release,
-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON, AMD Radeon Graphics (RADV RENOIR), Mesa 26.2.4.maina11c8f7f7: 837 of 838 tests pass;agc_driver_f32_denormal_flushfails on every run.agc_driver_fma_roundingandagc_driver_float16_fma_roundingstill pass.RADV_DEBUG=shaders: the compiled shader hasv_mad_f32and nov_fma_f32.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T18:37:58Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL499Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:06:49Z.
Checked the diff against
FmaRounding.cpp(same split-fma handling), built and ran the libSceAgcDriver tests (390/390,agc_driver_f32_denormal_flushpasses on a fusing device). The skip is limited to lane 20'sv_fma_f32/v_fmac_f32and only when both return the split sum; merging.