test(shader): check v_fma_mix_f32 in FmaRounding #1445
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1445"
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 Deftera186 on 2026-10-08T06:46:50Z.
What
#1878 merged the same
roundsProductSeparatelyfix while this was open, so this PR now only keeps itsFmaRoundingrow.FmaRoundingchecksv_fma_f32,v_fmac_f32,v_fmaak_f32andv_fmamk_f32against the fused result on the GPU, but notv_fma_mix_f32. It now also runsv_fma_mix_f32 v20, v4, v5, v6with all sources f32 on its 64 rows and expects the fused value. The row is in the group that is skipped when the device splits fma, so it checks the values on drivers that fuse, next to the IR routing test from #1878.Tested
Gentoo Linux, RX 7700 XT (gfx1101), RADV from Mesa 26.2.3, on top of
f1451396:agc_driver_fma_roundingpasses, and all 494 tests pass. Before #1878, the same test failed withlane 1 v_fma_mix_f32 is 0x00000000, expected 0x2f8e8ae0.tools/hw-oracleon the same GPU: the hardware'sv_fma_mix_f32matches the test'sfusedcolumn on 64 of 64 rows (51 of them differ fromseparate).yahya308 ran the earlier head on Windows with an RTX 4070 and a Radeon 780M. Neither splits fma, so the row was checked there and passed. On lavapipe the fused group is skipped, as before.
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 yahya308 on 2026-10-08T15:28:56Z.
Tested on top of main
9e2ffe0d, Windows 11, MinGW-w64 GCC 16.2.0, full ctest withANYPS5_REQUIRE_VULKAN=1 --repeat until-fail:3, NVIDIA RTX 4070 Laptop (32.0.16.1074) and AMD Radeon 780M (32.0.31041.1004).vopc_compare_tablefails on the 780M on main too (#825, #1473).Head
9400a049: no change from main on either GPU.FmaRoundingreported no split fma on either device, so the fused group with the newv_fma_mix_f32row was checked, and it passed.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Deftera186 on 2026-10-09T02:25:05Z.
Rebased after #1878 merged the same fix: this PR now only adds the
v_fma_mix_f32row toFmaRounding.