Repository navigation
Conversation
Classify binary64 directly from the two 32-bit words.
Exercise all ten class bits, including low-word payloads and source modifiers.
|
Verified commit \ed9f8c6\ on Windows 11 / AMD Radeon RX 9060 XT (RDNA4, SM 6.6) + WARP:
AI-assisted; synthetic tests only, no game files. |
|
Independent NVIDIA hardware run. No game files were used. Machine: Windows 11, NVIDIA GeForce RTX 5080, Rust 1.98.1, DXC
Not tested: the in-game effect; AMD. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Execution/valu tests are #[cfg(all(test, windows))] and were not run here; lowering/structure coverage only.
v_cmp_class_f64/v_cmpx_class_f64 keep both dwords as i32 and classify on the pair, with abs/neg applied to the sign dword only. The new valu test covers all ten binary64 classes (signaling/quiet NaN with low-word payloads, infinities, normals, denormals, ±0) plus an abs-then-neg SGPR-pair case — exactly the payload-sensitive cases. macOS 96 passed (execution test is Windows-only).
Offline measurement on a retail dump, and the shader tests on AdaResult: no count change against Offline. I merged head ed9f8c6 onto No program changes its failure reason either. That is the expected result for a fix whose instructions sit behind the earlier failures on Tests: with the same merge, No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Needs rebase. This pull request conflicts with Generated by Claude Code |
|
The conflict with I added a separate |
What changed
Translate
v_cmp_class_f64andv_cmpx_class_f64using the existing classification and lane-mask path. The two source words stay asi32, so the low payload participates in distinguishing infinities from NaNs and zero from subnormals, without requiring host driver FP64 support. Source abs/neg only update the sign bit. The FP64 arithmetic and ordered compares are covered separately by #1262.Reproduction and tests
ffe310e, the syntheticv_cmp_class_f64_preserves_all_binary64_classestest fails at shader lowering withUnsupported { offset: 44, what: "v_cmp_class_f64" }.cargo test -p victory-shader --lib --locked --offline v_cmp_class -- --nocapturepassed on Windows with the patch. The new test exercises all ten class bits, negative masks, low-word-only payloads, SGPR input, and abs/neg. The existing binary16 test also passed. The compute cases ran on hardware and WARP.git diff --checkpassed.AMD RDNA 2 ISA reference