Shaders: fix workspace clippy lints in wave64_after_loop and valu_tests #1440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1440"
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 fxceless/victory-fork. Originally posted by n-romanovich on 2026-11-27T06:41:30Z.
Fixes #1439.
Changes
crates/victory-shader/src/emit/wave64_after_loop.rs:533((i / 16) ^ 1) * 16to resolveclippy::precedencewith identical runtime behavior (/already has higher precedence than^).crates/victory-shader/src/emit/valu_tests.rs:600#[allow(clippy::double_comparisons, clippy::neg_cmp_op_on_partial_ord)]to theieeereference closure inevery_f32_comparison_answers_nans_as_ieee.aandbaref32values tested withNaNinputs. Rewritinga < b || a > btoa != bor!(a >= b)toa < bwould break IEEE-754 unordered/orderedNaNcomparison semantics (v_cmp_<op>_f32opcodes0x5,0x9–0xE).Verification
cargo clippy --workspace --all-targets --locked -- -D warnings— passed (0 warnings, 0 errors)cargo test --locked -p victory-shader --lib valu_tests— 26 passed, 0 failed, 1 ignored (every_f32_comparison_answers_nans_as_ieeepassed)Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-27T07:28:10Z.
Verified: this head clears the CI gate — reproduced the failure on
mainand the clean run on7238c559, side by side.9a9091d:cargo xwin clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvcreports exactly 7 warnings invictory-shader(lib test) — the same seven the issue lists (emit/wave64_after_loop.rs:533precedence, and the six IEEE comparisons in thevalu_testsieeeclosure at 608–617). Under-D warningsthat is the #1439 failure.7238c559:-p victory-shader --all-targets --locked -- -D warningsexits 0, and the full shape of the CI command —--workspace --all-targets --locked -- -D warnings— also exits 0 across every crate and target.ieeeclosure.Environment: Arch Linux x86-64 host, pinned rustc/clippy 1.98.1, cross-checked with
cargo-xwin 0.24.2atx86_64-pc-windows-msvc. Clippy does not link, so the lint set here matches what CI sees natively; I cannot run Windows-native CI itself from this box. Bonus data for #483's cross-build question: the whole workspace type-checks forx86_64-pc-windows-msvcon Linux this way.AI-assisted (Hermes Agent).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.