Upcheck tests: copies on the card on every card (VICTORY_CARD_BUFFERS_MIN_MB=1), and the on-the-card ones say when they are not #361

Open
github-bot wants to merge 1 commit from github-bot/gh-361 into main AGit
Owner

@⁠felicerosella on GitHub · 2026-11-26 18:48 UTC · original
felicerosella:fix/upcheck-card-threshold → main · +30 −14 · 1 files · 1 commits · open

The relay tests in host::upcheck (the #[ignore]d ones run by hand with VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 …) want their 4 MiB (LEN) title copies in the card's memory. Whether a copy goes there depends on the card's local budget (card_limits):

budget smallest copy on the card
≤ 12 GiB (8–12 GB cards) 16 MiB
12–20 GiB 4 MiB
≥ 20 GiB (7900 XTX) 1 MiB

So on an 8–12 GB card no LEN copy is on the card, and two things happen:

  • 5 tests fail every run, with no reason given: a_result_caught_in_between_is_put_right, the_check_finds_an_undeclared_write_undone, writes_through_picked_views_come_back and declared_writes_beside_the_titles_own_stay fail at title()'s "the copy is in the card's memory". each_submission_reads_its_own_copy_on_the_card fails at "where the copy is" (left: false, right: true).
  • 3 tests pass without testing the card: in_order never checked where its copies were. copies_stand_where_the_list_has_them_on_the_card and _mixed passed while every copy was in the PC's memory.

Change (test code only, host/upcheck.rs):

  • The tests that want copies on the card list VICTORY_CARD_BUFFERS_MIN_MB=1 with their other switches, both in the module comment's command and in their #[ignore] reasons. With it, the threshold is 1 MiB on every card, as on the 7900 XTX.
  • in_order checks that its LEN copies are on the card.
  • The message says why and what to set: "the copy is not in the card's memory: on a card with 12 GiB or less, copies under 16 MiB stay in the PC's unless VICTORY_CARD_BUFFERS_MIN_MB=1".

Results on an RTX 4070 SUPER (12 GB, budget below 12 GiB), Windows 11 26200, main at 2de9980, --all-features, each test in a process of its own:

before after, without the switch after, with VICTORY_CARD_BUFFERS_MIN_MB=1
the 5 above 0/3 each, no reason given fail at once with the message 3/3 each
in_order's three pass (PC memory only) fail at once with the message 3/3 each
copy_draw_copy_draw, …_in_pc_memory (VICTORY_CARD_ALL=1) pass pass 3/3 each

The other ignored tests that want real hardware passed as they are: a_copy_behind_a_flight_reads_what_the_flight_wrote (VICTORY_RELAY=2 VICTORY_CARD_STEPS=2), bare_command_cost, levels_on_demand_on_the_card, and replay_big's a_frame_of_a_titles_size (44 s). The whole workspace with --all-features passed as well, 1,084 tests, parallel and --test-threads=1, apart from a_frame_is_recorded_and_replayed. That one needs a desktop for its swap chain, and these runs were over SSH.

cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings is clean apart from main's own unnecessary_mut_passed (#324).

AI-assisted: yes (Claude Code)

**@⁠felicerosella** on GitHub · 2026-11-26 18:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/361) `felicerosella:fix/upcheck-card-threshold` → `main` · +30 −14 · 1 files · 1 commits · open The relay tests in `host::upcheck` (the `#[ignore]`d ones run by hand with `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 …`) want their 4 MiB (`LEN`) title copies in the card's memory. Whether a copy goes there depends on the card's local budget (`card_limits`): | budget | smallest copy on the card | |---|---| | ≤ 12 GiB (8–12 GB cards) | 16 MiB | | 12–20 GiB | 4 MiB | | ≥ 20 GiB (7900 XTX) | 1 MiB | So on an 8–12 GB card no `LEN` copy is on the card, and two things happen: - **5 tests fail every run, with no reason given:** `a_result_caught_in_between_is_put_right`, `the_check_finds_an_undeclared_write_undone`, `writes_through_picked_views_come_back` and `declared_writes_beside_the_titles_own_stay` fail at `title()`'s "the copy is in the card's memory". `each_submission_reads_its_own_copy_on_the_card` fails at "where the copy is" (`left: false, right: true`). - **3 tests pass without testing the card:** `in_order` never checked where its copies were. `copies_stand_where_the_list_has_them_on_the_card` and `_mixed` passed while every copy was in the PC's memory. **Change (test code only, `host/upcheck.rs`):** - The tests that want copies on the card list `VICTORY_CARD_BUFFERS_MIN_MB=1` with their other switches, both in the module comment's command and in their `#[ignore]` reasons. With it, the threshold is 1 MiB on every card, as on the 7900 XTX. - `in_order` checks that its `LEN` copies are on the card. - The message says why and what to set: "the copy is not in the card's memory: on a card with 12 GiB or less, copies under 16 MiB stay in the PC's unless VICTORY_CARD_BUFFERS_MIN_MB=1". **Results** on an RTX 4070 SUPER (12 GB, budget below 12 GiB), Windows 11 26200, `main` at `2de9980`, `--all-features`, each test in a process of its own: | | before | after, without the switch | after, with `VICTORY_CARD_BUFFERS_MIN_MB=1` | |---|---|---|---| | the 5 above | 0/3 each, no reason given | fail at once with the message | 3/3 each | | `in_order`'s three | pass (PC memory only) | fail at once with the message | 3/3 each | | `copy_draw_copy_draw`, `…_in_pc_memory` (`VICTORY_CARD_ALL=1`) | pass | pass | 3/3 each | The other ignored tests that want real hardware passed as they are: `a_copy_behind_a_flight_reads_what_the_flight_wrote` (`VICTORY_RELAY=2 VICTORY_CARD_STEPS=2`), `bare_command_cost`, `levels_on_demand_on_the_card`, and `replay_big`'s `a_frame_of_a_titles_size` (44 s). The whole workspace with `--all-features` passed as well, 1,084 tests, parallel and `--test-threads=1`, apart from `a_frame_is_recorded_and_replayed`. That one needs a desktop for its swap chain, and these runs were over SSH. `cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings` is clean apart from `main`'s own `unnecessary_mut_passed` (#324). AI-assisted: yes (Claude Code)
The relay tests in host::upcheck want their 4 MiB title copies in the
card's memory. Whether a copy goes there depends on the card's budget
(card_limits: 16 MiB at least with 12 GiB or less, 4 MiB under 20 GiB,
1 MiB from 20 GiB), so on an 8-12 GB card none does:

- title() and each_submission_reads_its_own_copy_on_the_card fail at
  "the copy is in the card's memory" / "where the copy is" (5 tests, every
  run on an RTX 4070 SUPER), with nothing to say why;
- in_order never looked, so copies_stand_where_the_list_has_them_on_the_card
  and _mixed passed while testing copies in the PC's memory only.

The tests that want copies on the card now list
VICTORY_CARD_BUFFERS_MIN_MB=1 with their other switches (module comment
and #[ignore] reasons), in_order checks that its LEN copies are on the
card, and the message names the threshold and the switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:52:04 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/361/head:github-bot/gh-361'
git switch 'github-bot/gh-361'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-361'
git switch 'github-bot/gh-361'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-361'
git switch 'github-bot/gh-361'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-361'
git switch 'main'
git merge --squash 'github-bot/gh-361'
git switch 'main'
git merge --ff-only 'github-bot/gh-361'
git switch 'main'
git merge 'github-bot/gh-361'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.