[pr-fix][startup][NVIDIA] Resizable BAR notice: "RTX 2000 Ada Generation" is no longer taken for an RTX 20 card #284

Open
iBooM72 wants to merge 1 commit from iboom72/fix/rebar-rtx-2000-ada-name into main AGit
Contributor

Refs #82

What it changes

  • The problem on main: read from the code only (crates/darner-gpu/src/host.rs, no_resizable_bar).

When the card's memory cannot be mapped, the start says either "turn Resizable BAR on in the BIOS" or, for cards that cannot have it, "This card has no Resizable BAR ... nothing to change" (#82). The second is picked by the adapter's name, and the test for the GeForce RTX 20 series was contains("RTX 20"). The workstation card "NVIDIA RTX 2000 Ada Generation" (also "... Laptop GPU" and "RTX 2000E Ada Generation") contains that too, so its owner is told there is nothing to change.

What this does: the series is matched as "GEFORCE RTX 20". Quadro RTX and TITAN RTX cards are still caught by their own tests. Only the text of the warning and of the start notice depends on this function; no memory path does.

How it was tested

  • Tested revision: e69c0f77
  • Commands and results:
    • cargo test -p darner-gpu --lib --locked resizable_bar_by_card_name: passed (the existing test, with "NVIDIA RTX 2000 Ada Generation" added to the cards that count as able).
  • Changes a default: no
  • Gates run on that revision (the three in AGENTS.md; there is no CI): cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features: both passed. cargo test --workspace --locked was not run as a whole. Only the one test above was run of darner-gpu's tests.
  • Gameplay, when relevant: not relevant (a start notice).
  • Hardware dependence: affects only the RTX 2000 Ada cards; untested on one.
  • Coverage gaps: that every GeForce RTX 20 card reports a name with "GeForce" in it, and that the RTX 2000 Ada supports Resizable BAR, are from memory, not checked on hardware. A name without "GeForce" would get the BIOS advice, as an unknown card does.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Not run in the game: the notice needs an RTX 2000 Ada card with Resizable BAR off.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found for this function. Closed issue #82 asked for the notice this function picks. 33 open pull requests were found that change crates/darner-gpu/src/host.rs; none of their diffs touches no_resizable_bar or its test.
  • Replaces or overlaps: none found

🤖 Generated with Claude Code

Refs #82 ## What it changes - The problem on main: read from the code only (`crates/darner-gpu/src/host.rs`, `no_resizable_bar`). When the card's memory cannot be mapped, the start says either "turn Resizable BAR on in the BIOS" or, for cards that cannot have it, "This card has no Resizable BAR ... nothing to change" (#82). The second is picked by the adapter's name, and the test for the GeForce RTX 20 series was `contains("RTX 20")`. The workstation card "NVIDIA RTX 2000 Ada Generation" (also "... Laptop GPU" and "RTX 2000E Ada Generation") contains that too, so its owner is told there is nothing to change. What this does: the series is matched as "GEFORCE RTX 20". Quadro RTX and TITAN RTX cards are still caught by their own tests. Only the text of the warning and of the start notice depends on this function; no memory path does. ## How it was tested - Tested revision: e69c0f77 - Commands and results: - `cargo test -p darner-gpu --lib --locked resizable_bar_by_card_name`: passed (the existing test, with "NVIDIA RTX 2000 Ada Generation" added to the cards that count as able). - Changes a default: no - Gates run on that revision (the three in AGENTS.md; there is no CI): `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features`: both passed. `cargo test --workspace --locked` was not run as a whole. Only the one test above was run of `darner-gpu`'s tests. - Gameplay, when relevant: not relevant (a start notice). - Hardware dependence: affects only the RTX 2000 Ada cards; untested on one. - Coverage gaps: that every GeForce RTX 20 card reports a name with "GeForce" in it, and that the RTX 2000 Ada supports Resizable BAR, are from memory, not checked on hardware. A name without "GeForce" would get the BIOS advice, as an unknown card does. ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none Not run in the game: the notice needs an RTX 2000 Ada card with Resizable BAR off. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found for this function. Closed issue #82 asked for the notice this function picks. 33 open pull requests were found that change `crates/darner-gpu/src/host.rs`; none of their diffs touches `no_resizable_bar` or its test. - Replaces or overlaps: none found 🤖 Generated with [Claude Code](https://claude.com/claude-code)
no_resizable_bar tested the adapter name for "RTX 20", which the workstation
card "NVIDIA RTX 2000 Ada Generation" contains too. With the card's memory not
mapped, its owner was told the card has no Resizable BAR and that there is
nothing to change, in place of the advice to turn it on in the BIOS. The
GeForce RTX 20 series is now matched as "GEFORCE RTX 20".

Co-Authored-By: Claude Fable 5.2 <[email protected]>
First-time contributor

Independent Windows build, gate, and code-read review of e69c0f771 (based on main f3840d73d). Not run in-game.

Environment

  • Windows 11 Pro 26H2 (build 26300.10075), Intel Core i9-14900K, NVIDIA RTX A2000 12GB (driver 621.47), Rust 1.98.1 (x86_64-pc-windows-msvc), MSVC 19.44.35230.

Measured results

  • Gate 1 (cargo clippy --workspace --all-targets --locked -- -D warnings): PASS
  • Gate 2 (cargo clippy --workspace --all-targets --all-features --locked -- -D warnings): PASS
  • cargo xtask policy: PASS (asset policy: 555 files ok)
  • cargo test --locked -p darner-gpu --lib host::resizable_bar_by_card_name -- --exact --nocapture: PASS (1 passed; 0 failed)

Code-read audit

  • Real false positive on main: n.contains("RTX 20") matched "NVIDIA RTX 2000 Ada Generation" (and "RTX 2000E Ada" / Laptop variants), which are Ada cards supporting ReBAR. Narrowing to "GEFORCE RTX 20" fixes that while keeping Windows DXGI GeForce RTX 20 SKUs ("NVIDIA GeForce RTX 20..."), "QUADRO", "TITAN", and "GTX" matched. Only affects the start notice text (host.rs:21546-21552).
  • Minor non-blocking note: crate::streamline::rtx_generation(name) (crates/darner-gpu/src/streamline.rs:1030-1052) already strips trademark/punctuation characters (GeForce® RTX™ 2080), which plain .contains("GEFORCE RTX 20") does not (benign fallback: unknown cards count as able).

Verdict: PASS.

AI-assisted: yes (Gemini 4 Neon).

Independent Windows build, gate, and code-read review of `e69c0f771` (based on `main` `f3840d73d`). Not run in-game. ### Environment - Windows 11 Pro 26H2 (build 26300.10075), Intel Core i9-14900K, NVIDIA RTX A2000 12GB (driver 621.47), Rust 1.98.1 (`x86_64-pc-windows-msvc`), MSVC 19.44.35230. ### Measured results - Gate 1 (`cargo clippy --workspace --all-targets --locked -- -D warnings`): **PASS** - Gate 2 (`cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`): **PASS** - `cargo xtask policy`: **PASS** (`asset policy: 555 files ok`) - `cargo test --locked -p darner-gpu --lib host::resizable_bar_by_card_name -- --exact --nocapture`: **PASS** (`1 passed; 0 failed`) ### Code-read audit - Real false positive on `main`: `n.contains("RTX 20")` matched `"NVIDIA RTX 2000 Ada Generation"` (and `"RTX 2000E Ada"` / Laptop variants), which are Ada cards supporting ReBAR. Narrowing to `"GEFORCE RTX 20"` fixes that while keeping Windows DXGI GeForce RTX 20 SKUs (`"NVIDIA GeForce RTX 20..."`), `"QUADRO"`, `"TITAN"`, and `"GTX"` matched. Only affects the start notice text (`host.rs:21546-21552`). - Minor non-blocking note: `crate::streamline::rtx_generation(name)` (`crates/darner-gpu/src/streamline.rs:1030-1052`) already strips trademark/punctuation characters (`GeForce® RTX™ 2080`), which plain `.contains("GEFORCE RTX 20")` does not (benign fallback: unknown cards count as able). **Verdict:** PASS. AI-assisted: yes (Gemini 4 Neon).
Author
Contributor

Follow-up to "How it was tested": the description says cargo test --workspace --locked was not run as a whole. It has now been run, together with five other small pull requests of mine, on one local branch.

  • Tested revision: main f3840d73 with these six commits picked on top, no conflicts: 98a3c911 (#265), 5799f84a (#270), c782a6e2 (#283), e69c0f77 (#284), 1c142d36 (#285), 5eae3d19 (#286). Not run on this pull request's branch alone.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: passed.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed.
  • cargo test --workspace --locked: one test failed, in darner-shader: emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders ("DXIL validation failed ... Not all elements of output SV_Depth were written"). The same test fails the same way on main f3840d73 without these commits, none of the six changes darner-shader, and #227 (open) fixes it. darner-shader's other tests: 557 passed, 16 ignored.
  • Cargo stops at the first package that fails, so the rest was run with cargo test --workspace --locked --no-fail-fast --exclude darner-shader: passed, all packages and the doc tests (darner-gpu: 1,773 passed, 81 ignored).

Still not run in the game.

Follow-up to "How it was tested": the description says `cargo test --workspace --locked` was not run as a whole. It has now been run, together with five other small pull requests of mine, on one local branch. - Tested revision: `main` f3840d73 with these six commits picked on top, no conflicts: 98a3c911 (#265), 5799f84a (#270), c782a6e2 (#283), e69c0f77 (#284), 1c142d36 (#285), 5eae3d19 (#286). Not run on this pull request's branch alone. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passed. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passed. - `cargo test --workspace --locked`: one test failed, in `darner-shader`: `emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders` ("DXIL validation failed ... Not all elements of output SV_Depth were written"). The same test fails the same way on `main` f3840d73 without these commits, none of the six changes `darner-shader`, and #227 (open) fixes it. `darner-shader`'s other tests: 557 passed, 16 ignored. - Cargo stops at the first package that fails, so the rest was run with `cargo test --workspace --locked --no-fail-fast --exclude darner-shader`: passed, all packages and the doc tests (`darner-gpu`: 1,773 passed, 81 ignored). Still not run in the game.
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/284/head:iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'iboom72/fix/rebar-rtx-2000-ada-name'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'iboom72/fix/rebar-rtx-2000-ada-name'
git rebase 'main'
git switch 'main'
git merge --ff-only 'iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'iboom72/fix/rebar-rtx-2000-ada-name'
git rebase 'main'
git switch 'main'
git merge --no-ff 'iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'main'
git merge --squash 'iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'main'
git merge --ff-only 'iboom72/fix/rebar-rtx-2000-ada-name'
git switch 'main'
git merge 'iboom72/fix/rebar-rtx-2000-ada-name'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!284
No description provided.