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
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#115
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?
@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 --libgives 329 passed, 0 failed, 34 ignored, andvictory-shader --libgives 278 passed, 0 failed, 4 ignored.I also ran the 11 ignored tests that check behaviour (
host::upcheck::tests::*andhost::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_undoneandwrites_through_picked_views_come_backstop atupcheck.rs:680("the copy is in the card's memory").each_submission_reads_its_own_copy_on_the_cardstops at:891. Their copies are 4 MiB, and when the VRAM budget is 12 GiB or less,default_card_limits_mbonly puts copies of 16 MiB or more on the card. WithVICTORY_CARD_BUFFERS_MIN_MB=1they 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:writes_through_picked_views_come_backVICTORY_PICKED_WRITES=2, not=15b422ba,1only declares and2also lands. The write comes back in 0 of 12 rounds. Bisected: with=1it passes atcb72fc0and fails from5b422baon. With=2it passes onb0cfe2b.a_result_caught_in_between_is_put_rightVICTORY_FETCH_CHECK=1each_submission_reads_its_own_copy_in_pc_memoryVICTORY_CARD_ALL=1, which the test readsSEND_OWNdoesn't apply there, and all 12 reads see the third submission's value. WithCARD_ALL=1it passes, and withCARD_ALL=1 VICTORY_SEND_OWN=0it fails, so the test does checkSEND_OWN.The
writes_through_picked_views_come_backandin_pc_memoryfailures are the same on WARP (--features diagnostics,VICTORY_D3D12_WARP=1), so neither is NVIDIA-specific.The command I used:
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.rsdescribes ("both draws read the second value") would cover more buffers on 8 to 12 GB cards than on the 7900 XTX. Thein_pc_memoryresult above is that case. Is that intended?Written with AI help (Claude Code); the numbers are from runs on my machine.
@avatarmanz on GitHub · 2026-11-26 08:19 UTC · original
Fixed by #130, now in main (
0ce46d5a).@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, on0a43566): 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 valuewrites_through_picked_views_come_back(PICKED_WRITES=2,PICKED_MB=1): comes back from round 4 onOn the 4 MiB question: this card's budget is ≤ 12 GiB, so
default_card_limits_mbgives a 16 MiB card-copy floor. With the default floor, the 5 tests that take a 4 MiB title copy fail attitle()'sassert!(carded(), "the copy is in the card's memory"), or atwhere the copy isforeach_submission_reads_its_own_copy_on_the_card. That's the floor, not a wrong result. WithVICTORY_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 wantVICTORY_CARD_BUFFERS_MIN_MB=1(or_MIN_KB) in their#[ignore]reason, or a copy size taken fromcard_limits().0.(First run, before #130, with the old
#[ignore]switches: the 3 tests #130 corrected failed exactly as expected. WithPICKED_WRITES=1and noFETCH_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).