victory-gpu's library tests build and pass on main again #4025
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4025"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-11-30T14:52:39Z.
[pr-tests]
What it changes
cargo test -p victory-gpu --libdoesn't build on main (c71899d9, 2026-11-30). Once it builds, two more tests fail. This makes all three pass again. It changes only test code.card_passtakes a sixth argument, the compare's capture (7addcfc7,VICTORY_LAND_CAPTURE). The two calls inhost.rs's tests still passed five (E0061 athost.rs:20302and:20328). They now pass[0; 3], meaning no capture, as the other callers outside the capture's mode do.list::thin::tests::bindings_record_no_worknames every call the thin recorder takes by what it records, and checks that none is left out (left: 47, right: 49).begin_queryandend_query(471d05c4, #3715) record into the query heap but were in no list. They join the calls that record work, which is wherebinds_onlyandwaitsalready put them.shader_cache::tests::every_switch_of_the_translator_is_in_the_keylists fourVICTORY_ORACLE_*names that the translator no longer reads, since the differential fuzzer was taken out (a1fe8350). The test failed on the first of them (VICTORY_ORACLE_RUNS is not read by the translator any more). The four names are removed.How it was tested
card_passcalls fixed, 1114 passed and 2 failed (the two tests above).cargo test --locked -p victory-gpu --libgives 1116 passed, 0 failed, 66 ignored.cargo testpassed for the crates it touches: yesChecked for overlap
VICTORY_ORACLE_*names. It and #3385 and #3530 are larger test-and-Clippy sweeps that now conflict with main, and none covers thecard_passcalls or the query calls. This is the small part that gets the library's tests building again today.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-30T16:21:38Z.
Three open PRs fix the same
card_passE0061 inhost.rs's tests: this one, #4053 and #4018. I ran all three on native Windows 11 with an RTX 3060 (Rust 1.98.1, pinned), each onmain(c71899d9), which they're all based on.cargo test -p victory-gpu --lib --locked(2 runs each)scoped_uav_barriers_dedup_and_sync_card_compareon the RTX 3060thin::bindings_record_no_work,every_switch_of_the_translator_is_in_the_key), plus onewatchflake in one runSetComputeRootUnorderedAccessViewlinesSo this is the only one of the three that gets the library's tests green, since the other two leave
thinand theVICTORY_ORACLE_*names failing.One suggestion: take #4018's two binds of parameters 4 and 5 as well. The test passes without them on this card, because modes 0 and 1 never read the capture. But
CardShared::bind_capturedocuments those parameters as "bound for every pass, read only by those told to capture", and every non-test caller ofcard_pass(host.rsaround :8379, :8627 and :8657) callsbind_capturebefore passing[0; 3]. Leaving them unset makes the test the only place that dispatches the compare with root parameters unset, which the D3D12 debug layer may flag. I couldn't confirm that last part here, because this machine lacks the Graphics Tools debug layer (d3d12SDKLayers.dll). With both changes together, the full suite still passes (last row).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-11-30T16:30:20Z.
Thanks for running all three. Taken:
c01e3ad2binds parameters 4 and 5 before bothcard_passcalls, asbind_capturedoes for the other callers. The two binds are #4018's.cargo test --locked -p victory-gpu --libwith it, RTX 5080: 1116 passed, 0 failed, 66 ignored.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:47:05Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed