victory-gpu's library tests build and pass on main again #4025

Closed
mstrmoos wants to merge 2 commits from upstream-pr/4025 into main
mstrmoos commented 2026-11-30 14:52:39 +00:00 (Migrated from github.com)

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 --lib doesn'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_pass takes a sixth argument, the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE). The two calls in host.rs's tests still passed five (E0061 at host.rs:20302 and :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_work names every call the thin recorder takes by what it records, and checks that none is left out (left: 47, right: 49). begin_query and end_query (471d05c4, #3715) record into the query heap but were in no list. They join the calls that record work, which is where binds_only and waits already put them.
  • shader_cache::tests::every_switch_of_the_translator_is_in_the_key lists four VICTORY_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

  • GPU and profile: test code only, no run.
  • Before, on main: the library's tests don't build (E0061 twice). With only the card_pass calls fixed, 1114 passed and 2 failed (the two tests above).
  • After: cargo test --locked -p victory-gpu --lib gives 1116 passed, 0 failed, 66 ignored.
  • cargo test passed for the crates it touches: yes

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3061 also removes the VICTORY_ORACLE_* names. It and #3385 and #3530 are larger test-and-Clippy sweeps that now conflict with main, and none covers the card_pass calls or the query calls. This is the small part that gets the library's tests building again today.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5567639109 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025). Originally posted by [mstrmoos](https://github.com/mstrmoos) on 2026-11-30T14:52:39Z. --- [pr-tests] ## What it changes `cargo test -p victory-gpu --lib` doesn'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_pass` takes a sixth argument**, the compare's capture (7addcfc7, `VICTORY_LAND_CAPTURE`). The two calls in `host.rs`'s tests still passed five (E0061 at `host.rs:20302` and `: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_work`** names every call the thin recorder takes by what it records, and checks that none is left out (`left: 47, right: 49`). `begin_query` and `end_query` (471d05c4, #3715) record into the query heap but were in no list. They join the calls that record work, which is where `binds_only` and `waits` already put them. - **`shader_cache::tests::every_switch_of_the_translator_is_in_the_key`** lists four `VICTORY_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 - GPU and profile: test code only, no run. - Before, on main: the library's tests don't build (E0061 twice). With only the `card_pass` calls fixed, 1114 passed and 2 failed (the two tests above). - After: `cargo test --locked -p victory-gpu --lib` gives 1116 passed, 0 failed, 66 ignored. - `cargo test` passed for the crates it touches: yes ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3061 also removes the `VICTORY_ORACLE_*` names. It and #3385 and #3530 are larger test-and-Clippy sweeps that now conflict with main, and none covers the `card_pass` calls or the query calls. This is the small part that gets the library's tests building again today.
babuakhil commented 2026-11-30 16:21:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-30T16:21:38Z.


Three open PRs fix the same card_pass E0061 in host.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 on main (c71899d9), which they're all based on.

cargo test -p victory-gpu --lib --locked (2 runs each) scoped_uav_barriers_dedup_and_sync_card_compare on the RTX 3060 parameters 4 and 5 in that test
#4053 2 failed (thin::bindings_record_no_work, every_switch_of_the_translator_is_in_the_key), plus one watch flake in one run passes not set
#4018 the same 2 failed, both runs passes set
this PR 1116 passed, 0 failed, both runs passes not set
this PR + #4018's two SetComputeRootUnorderedAccessView lines 1116 passed, 0 failed, both runs passes set

So this is the only one of the three that gets the library's tests green, since the other two leave thin and the VICTORY_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_capture documents those parameters as "bound for every pass, read only by those told to capture", and every non-test caller of card_pass (host.rs around :8379, :8627 and :8657) calls bind_capture before 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).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7284538967 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7284538967). Originally posted by [babuakhil](https://github.com/babuakhil) on 2026-11-30T16:21:38Z. --- Three open PRs fix the same `card_pass` E0061 in `host.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 on `main` (`c71899d9`), which they're all based on. | | `cargo test -p victory-gpu --lib --locked` (2 runs each) | `scoped_uav_barriers_dedup_and_sync_card_compare` on the RTX 3060 | parameters 4 and 5 in that test | |---|---|---|---| | #4053 | 2 failed (`thin::bindings_record_no_work`, `every_switch_of_the_translator_is_in_the_key`), plus one `watch` flake in one run | passes | not set | | #4018 | the same 2 failed, both runs | passes | set | | **this PR** | **1116 passed, 0 failed**, both runs | passes | not set | | this PR + #4018's two `SetComputeRootUnorderedAccessView` lines | 1116 passed, 0 failed, both runs | passes | set | So this is the only one of the three that gets the library's tests green, since the other two leave `thin` and the `VICTORY_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_capture` documents those parameters as "bound for every pass, read only by those told to capture", and every non-test caller of `card_pass` (`host.rs` around :8379, :8627 and :8657) calls `bind_capture` before 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).
mstrmoos commented 2026-11-30 16:30:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-11-30T16:30:20Z.


Thanks for running all three. Taken: c01e3ad2 binds parameters 4 and 5 before both card_pass calls, as bind_capture does for the other callers. The two binds are #4018's.

cargo test --locked -p victory-gpu --lib with it, RTX 5080: 1116 passed, 0 failed, 66 ignored.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7284776194 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7284776194). Originally posted by [mstrmoos](https://github.com/mstrmoos) on 2026-11-30T16:30:20Z. --- Thanks for running all three. Taken: c01e3ad2 binds parameters 4 and 5 before both `card_pass` calls, as `bind_capture` does for the other callers. The two binds are #4018's. `cargo test --locked -p victory-gpu --lib` with it, RTX 5080: 1116 passed, 0 failed, 66 ignored.
trustno1-coder commented 2026-12-01 18:47:05 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321538573 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4025#issuecomment-7321538573). Originally posted by [trustno1-coder](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!4025
No description provided.