[pr-fix][startup][NVIDIA] Resizable BAR notice: "RTX 2000 Ada Generation" is no longer taken for an RTX 20 card #284
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/fix/rebar-rtx-2000-ada-name"
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?
Refs #82
What it changes
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
e69c0f77cargo 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).cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: both passed.cargo test --workspace --lockedwas not run as a whole. Only the one test above was run ofdarner-gpu's tests.Checklist
main.docs/asset-policy.md.Not run in the game: the notice needs an RTX 2000 Ada card with Resizable BAR off.
Checked for overlap
crates/darner-gpu/src/host.rs; none of their diffs touchesno_resizable_baror its test.🤖 Generated with Claude Code
Independent Windows build, gate, and code-read review of
e69c0f771(based onmainf3840d73d). Not run in-game.Environment
x86_64-pc-windows-msvc), MSVC 19.44.35230.Measured results
cargo clippy --workspace --all-targets --locked -- -D warnings): PASScargo clippy --workspace --all-targets --all-features --locked -- -D warnings): PASScargo 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
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).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).
Follow-up to "How it was tested": the description says
cargo test --workspace --lockedwas not run as a whole. It has now been run, together with five other small pull requests of mine, on one local branch.mainf3840d73with 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, indarner-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 onmainf3840d73without these commits, none of the six changesdarner-shader, and #227 (open) fixes it.darner-shader's other tests: 557 passed, 16 ignored.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.