Repository navigation
Shader tests: special values of v_rcp/v_rsq/v_sqrt/v_log/v_exp_f32 - #319
vladbondarenko97 wants to merge 1 commit into
Conversation
Port of Marvisak/VIctory#1601 (same author). The lowering of these ops is unchanged from VIctory main ffe310e; the test now also runs over this fork's clean-up passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
An AMD run for the "not tested on AMD" note. Setup: Radeon RX 7900 XTX (RDNA3, waves of 32 to 64 lanes), Adrenalin 32.0.32015.7029, i7-13700KF, Windows 10 Pro 22H2 (19045), Rust 1.98.1. Windows 10's in-box D3D12 stops at SM 6.5, so the tree also carries the D3D12 Agility SDK 1.620 (the same approach as #69). The DXIL validator comes from SDK 10.0.26100 ( Base:
|
Adds one synthetic GPU test in
crates/victory-shader/src/emit/valu_tests.rsfor the special-value results ofv_rcp_f32,v_rcp_iflag_f32,v_rsq_f32,v_sqrt_f32,v_log_f32andv_exp_f32against RDNA2: ±0, ±inf, NaN and negative inputs bit for bit (e.g. sqrt(−0) = −0, rsq(−0) = −inf, log(−0) = −inf, exp(−inf) = +0), and the 1 ULP the ISA allows on finite results. The lowering is the same as upstream VIctory's; here the test also covers the fork's clean-up passes over the finished module. Port of Marvisak/VIctory#1601 (same author). Tests only.Tested
2119b0e: the new test passes on both.cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.Not tested
victory-shadersuite on this head.AI use
🤖 Generated with Claude Code