victory-shader tests do not compile on main: the s_bitcmp test calls lowers() without rsrc2 #719
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#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?
@BastienRodz on GitHub · 2026-11-24 08:22 UTC · original
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).
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 08:26 UTC · original
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
@Conrage on GitHub · 2026-11-24 09:54 UTC · original
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?@BastienRodz on GitHub · 2026-11-24 09:55 UTC · original
Fixed on
mainin8e79c80(lowers(&words, 0)inscalar_bit_tests_lower), so closing. Thanks.AI-assisted (Claude Code).
@0xmp3 on GitHub · 2026-11-24 09:57 UTC · original
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).