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 #381

Open
github-bot wants to merge 1 commit from github-bot/gh-381 into a-publier AGit
Owner

@⁠felicerosella on GitHub · 2026-11-26 22:58 UTC · original
felicerosella:fix/upcheck-card-threshold → a-publier · +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 1 MiB

So on an 8–12 GB card no LEN copy is on the card:

  • 5 tests fail every run and give no reason: 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 "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, so copies_stand_where_the_list_has_them_on_the_card and _mixed ran on PC memory only.

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, in the module comment's command and in their #[ignore] reasons. With it the threshold is 1 MiB on every card.
  • in_order checks that its LEN copies are on the card.
  • The message names the threshold and the switch: "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 a-publier at 4eb6cfd, RTX 4070 SUPER (12 GB), Windows 11 26200, --all-features, each test in a process of its own:

before after, no switch after, VICTORY_CARD_BUFFERS_MIN_MB=1
the 5 above fail, 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

cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings is clean.

AI-assisted: yes (Claude Code)

**@⁠felicerosella** on GitHub · 2026-11-26 22:58 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/381) `felicerosella:fix/upcheck-card-threshold` → `a-publier` · +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 | 1 MiB | So on an 8–12 GB card no `LEN` copy is on the card: - **5 tests fail every run and give no reason:** `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 "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, so `copies_stand_where_the_list_has_them_on_the_card` and `_mixed` ran on PC memory only. **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, in the module comment's command and in their `#[ignore]` reasons. With it the threshold is 1 MiB on every card. - `in_order` checks that its `LEN` copies are on the card. - The message names the threshold and the switch: "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 `a-publier` at `4eb6cfd`, RTX 4070 SUPER (12 GB), Windows 11 26200, `--all-features`, each test in a process of its own: | | before | after, no switch | after, `VICTORY_CARD_BUFFERS_MIN_MB=1` | |---|---|---|---| | the 5 above | fail, 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 | `cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings` is clean. 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-27 00:58:50 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 00:22 UTC · original

Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at d29c4a0: cargo test --release -p victory-gpu --lib 396 passed, 0 failed, 34 ignored.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 00:22 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/381#issuecomment-7206405205) Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at `d29c4a0`: `cargo test --release -p victory-gpu --lib` 396 passed, 0 failed, 34 ignored. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠lvndrpup on GitHub · 2026-11-27 03:31 UTC · original · reviewed

Tested on an 8 GB card, the case this PR is for. RTX 3060 Ti 8 GB (Ampere), driver 610.88, Ryzen 5 5600X, 32 GB, Windows 11 build 26300, Rust 1.98.1, debug, --all-features. Base 4eb6cfd, head d29c4a0. Each test ran 3 times, in a process of its own, with the switches its #[ignore] reason lists.

before after, without VICTORY_CARD_BUFFERS_MIN_MB after, switches as listed
a_result_caught_in_between_is_put_right, the_check_finds_an_undeclared_write_undone, writes_through_picked_views_come_back, declared_writes_beside_the_titles_own_stay fail: "the copy is in the card's memory" fail at once with the new message 3/3 each
each_submission_reads_its_own_copy_on_the_card fail: "where the copy is" fail at once with the new message 3/3
copies_stand_where_the_list_has_them_on_the_card, _mixed, _in_pc_memory pass (PC memory only) fail at once with the new message 3/3 each
copy_draw_copy_draw, each_submission_reads_its_own_copy_in_pc_memory pass pass 3/3 each

The picture is the same as on your 4070 SUPER.

One question: copy_draw_copy_draw now lists VICTORY_CARD_BUFFERS_MIN_MB=1, but it takes its buffer with title_of(0x9400, true, LEN) rather than title(0x9400, true), so it never checks where the copy is. Without the switch it ran on PC memory and passed here, as in_order did before this PR. If it is meant to test a copy on the card, title(0x9400, true) would make it say so.

**@⁠lvndrpup** on GitHub · 2026-11-27 03:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/381#pullrequestreview-6083088582) · **reviewed** Tested on an 8 GB card, the case this PR is for. RTX 3060 Ti 8 GB (Ampere), driver 610.88, Ryzen 5 5600X, 32 GB, Windows 11 build 26300, Rust 1.98.1, debug, `--all-features`. Base `4eb6cfd`, head `d29c4a0`. Each test ran 3 times, in a process of its own, with the switches its `#[ignore]` reason lists. | | before | after, without `VICTORY_CARD_BUFFERS_MIN_MB` | after, switches as listed | |---|---|---|---| | `a_result_caught_in_between_is_put_right`, `the_check_finds_an_undeclared_write_undone`, `writes_through_picked_views_come_back`, `declared_writes_beside_the_titles_own_stay` | fail: "the copy is in the card's memory" | fail at once with the new message | 3/3 each | | `each_submission_reads_its_own_copy_on_the_card` | fail: "where the copy is" | fail at once with the new message | 3/3 | | `copies_stand_where_the_list_has_them_on_the_card`, `_mixed`, `_in_pc_memory` | pass (PC memory only) | fail at once with the new message | 3/3 each | | `copy_draw_copy_draw`, `each_submission_reads_its_own_copy_in_pc_memory` | pass | pass | 3/3 each | The picture is the same as on your 4070 SUPER. One question: `copy_draw_copy_draw` now lists `VICTORY_CARD_BUFFERS_MIN_MB=1`, but it takes its buffer with `title_of(0x9400, true, LEN)` rather than `title(0x9400, true)`, so it never checks where the copy is. Without the switch it ran on PC memory and passed here, as `in_order` did before this PR. If it is meant to test a copy on the card, `title(0x9400, true)` would make it say so.
This pull request can be merged automatically.
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/381/head:github-bot/gh-381'
git switch 'github-bot/gh-381'

Merge

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