Opt-in upcheck tests: all 11 pass on an 8 GB RTX 5060, with 3 #[ignore] reasons updated and a lower card-copy minimum #115

Closed
opened 2026-11-26 05:24:48 +00:00 by github-bot · 2 comments
Owner

@⁠alonso49noob on GitHub · 2026-11-26 04:17 UTC · original

RTX 5060 8 GB (Blackwell), driver 621.01, Windows 11, Ryzen 7 5700X, Rust 1.98.1, on b0cfe2b. No game files, tests only.

The default suites pass: cargo test -p victory-gpu --lib gives 329 passed, 0 failed, 34 ignored, and victory-shader --lib gives 278 passed, 0 failed, 4 ignored.

I also ran the 11 ignored tests that check behaviour (host::upcheck::tests::* and host::card_steps::tests::a_copy_behind_a_flight_reads_what_the_flight_wrote), not the measurements. Each ran alone with --ignored --exact, 3 times. With only the switches named in each #[ignore] reason, 6 of 11 fail on this card. All 11 pass 3 of 3 with the changes below.

5 tests assume a card with more than 12 GiB. a_result_caught_in_between_is_put_right, declared_writes_beside_the_titles_own_stay, the_check_finds_an_undeclared_write_undone and writes_through_picked_views_come_back stop at upcheck.rs:680 ("the copy is in the card's memory"). each_submission_reads_its_own_copy_on_the_card stops at :891. Their copies are 4 MiB, and when the VRAM budget is 12 GiB or less, default_card_limits_mb only puts copies of 16 MiB or more on the card. With VICTORY_CARD_BUFFERS_MIN_MB=1 they get a card copy and run. A 24 GB card has a 1 MiB minimum, so these failures don't show there.

3 #[ignore] reasons are out of date:

test also needs what happens without it
writes_through_picked_views_come_back VICTORY_PICKED_WRITES=2, not =1 Since 5b422ba, 1 only declares and 2 also lands. The write comes back in 0 of 12 rounds. Bisected: with =1 it passes at cb72fc0 and fails from 5b422ba on. With =2 it passes on b0cfe2b.
a_result_caught_in_between_is_put_right VICTORY_FETCH_CHECK=1 6 of 12 results are wrong, as its own assert message says
each_submission_reads_its_own_copy_in_pc_memory VICTORY_CARD_ALL=1, which the test reads The 256 KiB copy stays in PC memory, SEND_OWN doesn't apply there, and all 12 reads see the third submission's value. With CARD_ALL=1 it passes, and with CARD_ALL=1 VICTORY_SEND_OWN=0 it fails, so the test does check SEND_OWN.

The writes_through_picked_views_come_back and in_pc_memory failures are the same on WARP (--features diagnostics, VICTORY_D3D12_WARP=1), so neither is NVIDIA-specific.

The command I used:

VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 VICTORY_CARD_BUFFERS_MIN_MB=1 <the extra switch above> cargo test --locked -p victory-gpu --lib -- --ignored --exact host::upcheck::tests::<name>

A question I can't check without the game: on cards with 12 GiB or less, copies between 1 and 16 MiB stay in PC memory, so the case host/send.rs describes ("both draws read the second value") would cover more buffers on 8 to 12 GB cards than on the 7900 XTX. The in_pc_memory result above is that case. Is that intended?

Written with AI help (Claude Code); the numbers are from runs on my machine.

**@⁠alonso49noob** on GitHub · 2026-11-26 04:17 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/115) RTX 5060 8 GB (Blackwell), driver 621.01, Windows 11, Ryzen 7 5700X, Rust 1.98.1, on `b0cfe2b`. No game files, tests only. The default suites pass: `cargo test -p victory-gpu --lib` gives 329 passed, 0 failed, 34 ignored, and `victory-shader --lib` gives 278 passed, 0 failed, 4 ignored. I also ran the 11 ignored tests that check behaviour (`host::upcheck::tests::*` and `host::card_steps::tests::a_copy_behind_a_flight_reads_what_the_flight_wrote`), not the measurements. Each ran alone with `--ignored --exact`, 3 times. With only the switches named in each `#[ignore]` reason, 6 of 11 fail on this card. **All 11 pass 3 of 3** with the changes below. **5 tests assume a card with more than 12 GiB.** `a_result_caught_in_between_is_put_right`, `declared_writes_beside_the_titles_own_stay`, `the_check_finds_an_undeclared_write_undone` and `writes_through_picked_views_come_back` stop at `upcheck.rs:680` ("the copy is in the card's memory"). `each_submission_reads_its_own_copy_on_the_card` stops at `:891`. Their copies are 4 MiB, and when the VRAM budget is 12 GiB or less, `default_card_limits_mb` only puts copies of 16 MiB or more on the card. With `VICTORY_CARD_BUFFERS_MIN_MB=1` they get a card copy and run. A 24 GB card has a 1 MiB minimum, so these failures don't show there. **3 `#[ignore]` reasons are out of date:** | test | also needs | what happens without it | |---|---|---| | `writes_through_picked_views_come_back` | `VICTORY_PICKED_WRITES=2`, not `=1` | Since `5b422ba`, `1` only declares and `2` also lands. The write comes back in 0 of 12 rounds. Bisected: with `=1` it passes at `cb72fc0` and fails from `5b422ba` on. With `=2` it passes on `b0cfe2b`. | | `a_result_caught_in_between_is_put_right` | `VICTORY_FETCH_CHECK=1` | 6 of 12 results are wrong, as its own assert message says | | `each_submission_reads_its_own_copy_in_pc_memory` | `VICTORY_CARD_ALL=1`, which the test reads | The 256 KiB copy stays in PC memory, `SEND_OWN` doesn't apply there, and all 12 reads see the third submission's value. With `CARD_ALL=1` it passes, and with `CARD_ALL=1 VICTORY_SEND_OWN=0` it fails, so the test does check `SEND_OWN`. | The `writes_through_picked_views_come_back` and `in_pc_memory` failures are the same on WARP (`--features diagnostics`, `VICTORY_D3D12_WARP=1`), so neither is NVIDIA-specific. The command I used: ``` VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 VICTORY_CARD_BUFFERS_MIN_MB=1 <the extra switch above> cargo test --locked -p victory-gpu --lib -- --ignored --exact host::upcheck::tests::<name> ``` A question I can't check without the game: on cards with 12 GiB or less, copies between 1 and 16 MiB stay in PC memory, so the case `host/send.rs` describes ("both draws read the second value") would cover more buffers on 8 to 12 GB cards than on the 7900 XTX. The `in_pc_memory` result above is that case. Is that intended? Written with AI help (Claude Code); the numbers are from runs on my machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:48 +00:00
github-bot 2026-11-26 07:42:32 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 08:19 UTC · original

Fixed by #130, now in main (0ce46d5a).

**@⁠avatarmanz** on GitHub · 2026-11-26 08:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/115#issuecomment-7186454294) Fixed by #130, now in main (0ce46d5a).
Author
Owner

@⁠qtLkz on GitHub · 2026-11-26 09:43 UTC · original

Another NVIDIA data point, on a 12 GB card, with an answer to the open question about 4 MiB copies on lower-VRAM cards.

Setup: RTX 4070 Ti 12 GB (Ada), driver 621.01, i7-13700KF, 32 GB RAM, Windows 11 Pro 26300, Rust 1.98.1. No game files.

Default suite (cargo test --workspace --locked --no-fail-fast, on 0a43566): all pass. victory-gpu 326, victory-shader 278, victory-hle 150, everything else green, 0 failures.

The 11 opt-in tests, on main 9576c45, each in its own process, with the switches from #130: 11/11 pass.

  • a_result_caught_in_between_is_put_right (+FETCH_CHECK=1): 0 of 12 results wrong; pieces checked, suspect, put right: [23, 11, 11]
  • each_submission_reads_its_own_copy_in_pc_memory (CARD_ALL=1) and ..._on_the_card: no submission read another's value
  • writes_through_picked_views_come_back (PICKED_WRITES=2, PICKED_MB=1): comes back from round 4 on

On the 4 MiB question: this card's budget is ≤ 12 GiB, so default_card_limits_mb gives a 16 MiB card-copy floor. With the default floor, the 5 tests that take a 4 MiB title copy fail at title()'s assert!(carded(), "the copy is in the card's memory"), or at where the copy is for each_submission_reads_its_own_copy_on_the_card. That's the floor, not a wrong result. With VICTORY_CARD_BUFFERS_MIN_MB=1 (what a ≥ 20 GiB card gets by default) all of them pass, as listed above. So on 8-12 GB cards those tests want VICTORY_CARD_BUFFERS_MIN_MB=1 (or _MIN_KB) in their #[ignore] reason, or a copy size taken from card_limits().0.

(First run, before #130, with the old #[ignore] switches: the 3 tests #130 corrected failed exactly as expected. With PICKED_WRITES=1 and no FETCH_CHECK/CARD_ALL, the PC-memory test read the third submission's value in submissions 0 and 1 every round. So #130 was needed on this card too.)

AI-assisted (Claude).

**@⁠qtLkz** on GitHub · 2026-11-26 09:43 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/115#issuecomment-7188376064) Another NVIDIA data point, on a 12 GB card, with an answer to the open question about 4 MiB copies on lower-VRAM cards. **Setup:** RTX 4070 Ti 12 GB (Ada), driver 621.01, i7-13700KF, 32 GB RAM, Windows 11 Pro 26300, Rust 1.98.1. No game files. **Default suite** (`cargo test --workspace --locked --no-fail-fast`, on `0a43566`): all pass. victory-gpu 326, victory-shader 278, victory-hle 150, everything else green, 0 failures. **The 11 opt-in tests**, on main `9576c45`, each in its own process, with the switches from #130: **11/11 pass.** - `a_result_caught_in_between_is_put_right` (`+FETCH_CHECK=1`): 0 of 12 results wrong; pieces checked, suspect, put right: [23, 11, 11] - `each_submission_reads_its_own_copy_in_pc_memory` (`CARD_ALL=1`) and `..._on_the_card`: no submission read another's value - `writes_through_picked_views_come_back` (`PICKED_WRITES=2`, `PICKED_MB=1`): comes back from round 4 on **On the 4 MiB question:** this card's budget is ≤ 12 GiB, so `default_card_limits_mb` gives a 16 MiB card-copy floor. With the default floor, the 5 tests that take a 4 MiB title copy fail at `title()`'s `assert!(carded(), "the copy is in the card's memory")`, or at `where the copy is` for `each_submission_reads_its_own_copy_on_the_card`. That's the floor, not a wrong result. With `VICTORY_CARD_BUFFERS_MIN_MB=1` (what a ≥ 20 GiB card gets by default) all of them pass, as listed above. So on 8-12 GB cards those tests want `VICTORY_CARD_BUFFERS_MIN_MB=1` (or `_MIN_KB`) in their `#[ignore]` reason, or a copy size taken from `card_limits().0`. (First run, before #130, with the old `#[ignore]` switches: the 3 tests #130 corrected failed exactly as expected. With `PICKED_WRITES=1` and no `FETCH_CHECK`/`CARD_ALL`, the PC-memory test read the third submission's value in submissions 0 and 1 every round. So #130 was needed on this card too.) AI-assisted (Claude).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#115
No description provided.