victory-shader tests do not compile on main: the s_bitcmp test calls lowers() without rsrc2 #719
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-24T08:22:57Z.
cargo test -p victory-shaderdoes not compile onmain(cf0bb43):Two merges crossed. #432 (
25b0f88) gave the test helperlowers()anrsrc2argument and updated the callers it knew about. #117 (3c86053) added thes_bitcmptest with a call of the old form. The helper usedrsrc2: 0before, so the fix is one argument:With it (cross-built with
cargo xwin, run under Wine),cargo xwin test -p victory-shadergives 76 passed and 12 failed. The 12 are allemit::valu_tests::*, which need an SM 6.6 device. Clippy is clean.I had the fix ready as a PR (branch
BastienRodz:fix/bitcmp-test-lowers-arg, commit4628759), but PR creation is now limited to collaborators, so I'm filing it here instead. It is also a separate commit in #568, which needs it to run the shader tests after rebasing.No game data used. AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T08:26:52Z.
Verified on Windows 11 MSVC (Rust 1.98.1):
Passing
src2: 0\ to \lowers(&words, 0)\ at line 6963 fixes the test suite build.
All 89 unit tests in \ictory-shader\ pass cleanly (\ est result: ok. 89 passed; 0 failed; 1 ignored), \cargo clippy\ passes without warnings, and \cargo xtask policy\ is clean.
Branch ready on fork:
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/bitcmp-test-lowers-arg
upstream-sync referenced this issue2026-11-24 10:03:19 +00:00
Imported from Marvisak/VIctory. Originally posted by Conrage on 2026-11-24T09:54:16Z.
This looks fixed on main now: as of
8e79c80the s_bitcmp test callslowers(&words, 0)(crates/victory-shader/src/emit/lower.rs:6963). Can this be closed?Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-24T09:55:22Z.
Fixed on
mainin8e79c80(lowers(&words, 0)inscalar_bit_tests_lower), so closing. Thanks.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by 0xmp3 on 2026-11-24T09:57:27Z.
Fixed on main — this no longer reproduces at
8e79c80.cargo test --workspacecompiles and passes on Windows 11 (Rust 1.98.1, MSVC, RX 9070 XT): 311 passed, 0 failed, 0 ignored. Both call sites already take thersrc2argument (lower.rs:6851andlower.rs:6963), so thes_bitcmptest no longer needs the argument added by hand.Posting it because the issue is still open and people are rebasing around a break that is gone; no action needed if you are already tracking it.
AI-assisted (Hermes Agent).