Repository navigation
Shaders: negative-zero ordering test for the f16 min/max forms - #1050
Conversation
|
Independent Linux/Wine hardware run of Rust 1.98.1, Windows MSVC target, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton Separately, I combined #1046, #1048, #1050, #1052 and #1053 (all patches applied cleanly) and ran all 14 generated workspace unit/integration test executables with all features. Combined: 345 passed, 5 failed, 6 ignored; matched baseline: 341 passed, 5 failed, 6 ignored. This full-suite result belongs to the combined tree. The five failures match baseline: empty pipeline library (#347), Wine Winsock export (#217), checksum-rejection expectation, nested Cargo fixture build, and Windows xtask launching host Git. Native Linux checks of that tree pass: shader 96 passed / 1 ignored, xtask 4 passed, asset policy clean. Windows-target shader Clippy with all targets/features and Offline and offscreen; no game data, gameplay, native Windows or Wine doctests. Native AI-assisted testing with Codex. |
… min/max forms
… min/max forms
… for the f16 min/max forms Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 259ba31 on Windows 11, RTX 5070, MSVC: merged into our fork together with #1048, cargo test -p victory-shader -- --test-threads=1 passes (189 passed, 2 ignored), and the workspace tests pass.
This is a good test. Feeding ±0 in both operand orders to v_max_f16/v_min_f16 and the three-operand forms pins the RDNA2 ordering of −0 below +0, which max_min gets after widening to f32.
AI-assisted (Claude Code).
… min/max forms
Fixes #802.
max_and_min_order_negative_zero_below_positive_zerocovers the f32 forms.v_max_f16,v_min_f16,v_max3_f16andv_min3_f16use the samemax_min()helper after widening to f32 (#448) but had no test.New test
f16_max_and_min_order_negative_zero_below_positive_zeroruns the same four -0/+0 cases through the four f16 opcodes and compares the low half ofv0.The opcodes in #802 for
v_max_f16/v_min_f16(0x111,0x10E) are not those instructions. They are VOP20x39/0x3a, so VOP30x139/0x13A, which is what the test uses. The three-operand forms (0x354,0x351) were right.Test only, no production change.
Verify:
cargo test -p victory-shader f16_max_and_min(Windows, hardware GPU or WARP). I could not run it locally: the shader test module is Windows-only.🤖 Generated with Claude Code