Shader model check: ask the card the game runs on, not Windows' first adapter #1080

Manually merged
github merged 2 commits from github-bot/gh-1080 into main 2026-11-29 08:22:04 +00:00 AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 12:55 UTC · original
kibagami-nc:fix/shader-model-on-the-game-card → main · +54 −20 · 3 files · 2 commits · merged 2026-11-29 08:16 UTC

What happens

Before the title starts, victory play runs victory shader-model to ask whether the GPU runs shader model 6.6. Below it, it fetches Microsoft's runtime, asks again, and refuses the start if the answer stays below 6.6.

highest_shader_model made its device on EnumAdapters1(0), Windows' first adapter. Its own doc says it asks "the default adapter (the one the title's device is on)", but the title's device is made on hardware_adapter's card: the one the monitor is on, else the one with the most memory of its own, or VICTORY_ADAPTER's. hardware_adapter's doc says why they differ: "Windows' first adapter is often an integrated GPU (a monitor on the board's outputs, a laptop)".

So on those PCs the integrated GPU's shader model was the one checked. #1035 looked like that case, a PC with Windows 11 build 26300 and an RTX 5060 (see the update below):

  • the check says runs shader model 6.5;
  • it fetches Microsoft's runtime, and the answer stays With Microsoft's runtime the GPU still runs shader model 6.5;
  • the start is refused, with the message blaming the graphics driver.

An RTX 5060 on Windows 11 runs 6.8, so the answer most likely came from another adapter.

Update: #1035 was not this. That PC has a single GPU, the RTX 5060. Its game folder held Windows 10 2004's D3D12.dll beside victory.exe, which Windows loaded in place of its own: shader model 6.5, and no Agility SDK. #1154 fixes that. This change stays for PCs with two GPUs, where Windows' first adapter is not the game's card, and the refusal now names the card it measured.

The change

crates/victory-gpu/src/streamline.rs:

  • game_adapter() returns the card the host device is made on: hardware_adapter's, else the first adapter, as before. default_adapter(), which the frame generation notice and adapter_name() already used, now takes it from there.
  • highest_shader_model() makes its device on game_adapter()'s card.

apps/victory/src/main.rs: victory shader-model also prints the card it asked (card ...), before the runtime and the model. victory play reads the model from the last line, as before.

apps/victory/src/play.rs: read_shader_model also reads the card ... line, and the three messages of the check name it, as in this PC's Direct3D 12 runs shader model 6.5 on <card>, and the game needs 6.6. An answer without that line, from an older victory.exe, still reads.

Tests

  • On this PC, victory shader-model prints card NVIDIA GeForce RTX 5070 Ti, runtime C:\WINDOWS\SYSTEM32\D3D12Core.dll, then 6.8. This PC has no integrated GPU, so the two choices agree here. The integrated-GPU case needs a PC with both; pick_adapter, which makes the choice, is covered by adapter_tests.
  • New play::tests::the_shader_model_answer_names_its_card: an answer with a card line, one without, and one with no model.
  • cargo test -p victory-gpu --lib --locked: 453 passed. cargo test -p victory --locked: 27 + 2 passed.
  • Clippy (-p victory-gpu -p victory, -D warnings, default and --all-features): nothing in the changed lines. It stops on main's own manual_is_multiple_of and some_filter findings (fixed in #665). With those allowed, both builds are clean.

#1059 changes the refusal's wording for Windows 10. I opened it before #1035's reporter said they are on Windows 11, so this change is the one that bears on #1035. #1059 still holds for Windows 10.

No game files, dumps or extracted data are included.

Tested by others

upipibi (RTX 3070, Windows 11, driver 616.56), merged onto main 923e38c:

  • victory shader-model prints card NVIDIA GeForce RTX 3070, then the same runtime and 6.8 as main.
  • cargo test -p victory-gpu --lib and cargo test -p victory pass, with one more test than main (the new one), and no new warnings.
  • Control: with main's read_shader_model, the new test fails, so it catches a lost card line.
  • Control: with main's adapter choice, it still passes. The test covers the card's name, not the choice of adapter, and on a one-GPU PC both choices are the same card.

Not tested yet: a PC whose first adapter isn't the game's card (an integrated GPU plus an RTX), the case this PR is for.

**@⁠kibagami-nc** on GitHub · 2026-11-28 12:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1080) `kibagami-nc:fix/shader-model-on-the-game-card` → `main` · +54 −20 · 3 files · 2 commits · merged 2026-11-29 08:16 UTC ## What happens Before the title starts, `victory play` runs `victory shader-model` to ask whether the GPU runs shader model 6.6. Below it, it fetches Microsoft's runtime, asks again, and refuses the start if the answer stays below 6.6. `highest_shader_model` made its device on `EnumAdapters1(0)`, Windows' first adapter. Its own doc says it asks "the default adapter (the one the title's device is on)", but the title's device is made on `hardware_adapter`'s card: the one the monitor is on, else the one with the most memory of its own, or `VICTORY_ADAPTER`'s. `hardware_adapter`'s doc says why they differ: "Windows' first adapter is often an integrated GPU (a monitor on the board's outputs, a laptop)". So on those PCs the integrated GPU's shader model was the one checked. #1035 looked like that case, a PC with Windows 11 build 26300 and an RTX 5060 (see the update below): - the check says `runs shader model 6.5`; - it fetches Microsoft's runtime, and the answer stays `With Microsoft's runtime the GPU still runs shader model 6.5`; - the start is refused, with the message blaming the graphics driver. An RTX 5060 on Windows 11 runs 6.8, so the answer most likely came from another adapter. **Update: #1035 was not this.** That PC has a single GPU, the RTX 5060. Its game folder held Windows 10 2004's `D3D12.dll` beside `victory.exe`, which Windows loaded in place of its own: shader model 6.5, and no Agility SDK. #1154 fixes that. This change stays for PCs with two GPUs, where Windows' first adapter is not the game's card, and the refusal now names the card it measured. ## The change `crates/victory-gpu/src/streamline.rs`: - `game_adapter()` returns the card the host device is made on: `hardware_adapter`'s, else the first adapter, as before. `default_adapter()`, which the frame generation notice and `adapter_name()` already used, now takes it from there. - `highest_shader_model()` makes its device on `game_adapter()`'s card. `apps/victory/src/main.rs`: `victory shader-model` also prints the card it asked (`card ...`), before the runtime and the model. `victory play` reads the model from the last line, as before. `apps/victory/src/play.rs`: `read_shader_model` also reads the `card ...` line, and the three messages of the check name it, as in `this PC's Direct3D 12 runs shader model 6.5 on <card>, and the game needs 6.6`. An answer without that line, from an older `victory.exe`, still reads. ## Tests - **On this PC**, `victory shader-model` prints `card NVIDIA GeForce RTX 5070 Ti`, `runtime C:\WINDOWS\SYSTEM32\D3D12Core.dll`, then `6.8`. This PC has no integrated GPU, so the two choices agree here. The integrated-GPU case needs a PC with both; `pick_adapter`, which makes the choice, is covered by `adapter_tests`. - **New** `play::tests::the_shader_model_answer_names_its_card`: an answer with a card line, one without, and one with no model. - **`cargo test -p victory-gpu --lib --locked`**: 453 passed. **`cargo test -p victory --locked`**: 27 + 2 passed. - **Clippy** (`-p victory-gpu -p victory`, `-D warnings`, default and `--all-features`): nothing in the changed lines. It stops on `main`'s own `manual_is_multiple_of` and `some_filter` findings (fixed in #665). With those allowed, both builds are clean. #1059 changes the refusal's wording for Windows 10. I opened it before #1035's reporter said they are on Windows 11, so this change is the one that bears on #1035. #1059 still holds for Windows 10. No game files, dumps or extracted data are included. ## Tested by others **upipibi** (RTX 3070, Windows 11, driver 616.56), merged onto main 923e38c: - `victory shader-model` prints `card NVIDIA GeForce RTX 3070`, then the same runtime and `6.8` as main. - `cargo test -p victory-gpu --lib` and `cargo test -p victory` pass, with one more test than main (the new one), and no new warnings. - Control: with main's `read_shader_model`, the new test fails, so it catches a lost `card` line. - Control: with main's adapter choice, it still passes. The test covers the card's name, not the choice of adapter, and on a one-GPU PC both choices are the same card. Not tested yet: a PC whose first adapter isn't the game's card (an integrated GPU plus an RTX), the case this PR is for.
victory play asks `victory shader-model` whether the GPU runs shader
model 6.6 and stops the start if not. highest_shader_model made its
device on EnumAdapters1(0), Windows' first adapter, while the game's
device is made on hardware_adapter's card: the one the monitor is on,
else the one with the most memory of its own, or VICTORY_ADAPTER's.
On a laptop, or with the monitor on the board's outputs, the first
adapter is the integrated GPU, so its shader model was the one
checked. #1035: Windows 11 build 26300 and an RTX 5060, told 6.5 even
with Microsoft's runtime fetched, and the start refused.

Both now take game_adapter, the card default_adapter already named for
the frame generation notice. `victory shader-model` also prints the card
it asked, before the runtime and the model.
victory play read only the model of `victory shader-model`'s answer, so a
refusal said "this PC's Direct3D 12 runs shader model 6.5" without the card.
In #1035 that left open which GPU answered: the reporter's victory.exe is
already set to High performance (their RTX 5060) in Windows' graphics
settings. The answer's `card ...` line is now read too, and the three
messages name it ("... runs shader model 6.5 on <card>, ...").

Test: the_shader_model_answer_names_its_card (with and without a card line,
no model).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:32:38 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-11-28 14:12 UTC · original

Ran the shader-model answer parsing test at f206d29c on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (48a229cea 2026-09-01, pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.

VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory the_shader_model_answer_names_its_card -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 26 filtered out      (exit 0)

The new test passes: an answer with a card line names it, one without a card line and one without a model are handled. This is an independent run of the focused test on a second Card; the PR description already reports victory shader-model finding NVIDIA GeForce RTX 5070 Ti and 6.8 on the author's machine. I did not exercise the integrated-GPU case (this PC has only the discrete card), and I did not run a full startup refusal.

Not tested: a real laptop/iGPU + dGPU machine, a live refusal path, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-28 14:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1080#issuecomment-7240492859) Ran the shader-model answer parsing test at `f206d29c` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (48a229cea 2026-09-01, pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build. ``` VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory the_shader_model_answer_names_its_card -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 26 filtered out (exit 0) ``` The new test passes: an answer with a card line names it, one without a card line and one without a model are handled. This is an independent run of the focused test on a second Card; the PR description already reports `victory shader-model` finding `NVIDIA GeForce RTX 5070 Ti` and `6.8` on the author's machine. I did not exercise the integrated-GPU case (this PC has only the discrete card), and I did not run a full startup refusal. Not tested: a real laptop/iGPU + dGPU machine, a live refusal path, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 14:30 UTC · original

A note for whoever reviews this: I missed #622 (KhryptorGraphics, opened earlier) before writing this. It makes the same change to highest_shader_model, as part of a port from foxhound pre.3/pre.4: hardware_adapter's card, else the first adapter. So the two conflict there.

What this PR does beyond that change:

  • default_adapter(), and with it adapter_name(), also follow the game's card. The frame generation notice, the RTX 20/30 MFG Unlocker offer and the FSR 3 offer read that name, so on a PC with two GPUs they now look at the card the game runs on.
  • victory shader-model prints card ..., and the check's refusal names the card it measured.

What #622 has and this doesn't: the memory warning before a start.

Whichever goes in first, I'll rebase this one onto it and keep only what it adds. As said in the description, #1035 itself turned out to be an old D3D12.dll beside victory.exe (#1154).

**@⁠kibagami-nc** on GitHub · 2026-11-28 14:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1080#issuecomment-7240717481) A note for whoever reviews this: I missed #622 (KhryptorGraphics, opened earlier) before writing this. It makes the same change to `highest_shader_model`, as part of a port from foxhound pre.3/pre.4: `hardware_adapter`'s card, else the first adapter. So the two conflict there. What this PR does beyond that change: - `default_adapter()`, and with it `adapter_name()`, also follow the game's card. The frame generation notice, the RTX 20/30 MFG Unlocker offer and the FSR 3 offer read that name, so on a PC with two GPUs they now look at the card the game runs on. - `victory shader-model` prints `card ...`, and the check's refusal names the card it measured. What #622 has and this doesn't: the memory warning before a start. Whichever goes in first, I'll rebase this one onto it and keep only what it adds. As said in the description, #1035 itself turned out to be an old `D3D12.dll` beside `victory.exe` (#1154).
Author
Owner

@⁠upipibi on GitHub · 2026-11-28 20:42 UTC · original

Tested on Ampere: RTX 3070 (10de:2484), driver 616.56, native Windows 11 Pro 10.0.26100, rustc 1.98.1. Debug test profile. The system WARP is the one that ships with Windows, and the D3D12 runtime in every run was C:\Windows\SYSTEM32\D3D12Core.dll.

  • Head f206d29cc, merged onto main 923e38cc8 (--no-ff, clean, merge a952fae). The PR's base is 63b902f. The merge changes the same three files by the same amounts as the PR: main.rs +4/-0, play.rs +33/-12, streamline.rs +17/-8. The head was still f206d29cc when I finished.
  • This PC has one GPU. It cannot test the case the PR is for, where Windows' first adapter is an integrated GPU and the game plays on another card. All it can show is that the check asks this card and names it.

play::tests::the_shader_model_answer_names_its_card (crate victory, apps/victory/src/play.rs)

cargo test -p victory --locked the_shader_model_answer_names_its_card -- --nocapture
  • 3 runs: 1 passed, 0 failed, 0 ignored each (0.00 s).
  • read_shader_model and game_adapter are functions, not tests. The new test is the only one the PR adds.
  • The test parses fixed strings. It never opens a device, so hardware against WARP makes no difference to it, and I did not run a WARP version of it.

victory shader-model, the changed code itself

target-1080/debug/victory.exe shader-model                  # merge, 3 runs
VICTORY_ADAPTER=nvidia | nosuchcard  victory shader-model    # merge, once each
VICTORY_WARP=1 VICTORY_D3D12_WARP=1  victory shader-model    # merge, once
target-main/debug/victory.exe shader-model                  # main, once

The merge printed the same output in every run and with every variable:

card NVIDIA GeForce RTX 3070
runtime C:\Windows\SYSTEM32\D3D12Core.dll
6.8

Main prints the same runtime and 6.8 lines, without the card line.

Adapters and shader models

You can't force WARP through game_adapter. hardware_adapter skips software adapters, so VICTORY_ADAPTER=Microsoft still picks the 3070. VICTORY_WARP and VICTORY_D3D12_WARP are not read on this path. To get WARP's answer, I added a temporary test to streamline.rs and removed it afterwards. It prints game_adapter(), highest_shader_model() and adapter_name(). Then it makes a device on every EnumAdapters1 entry and on EnumWarpAdapter, and reads each one's shader model. 3 runs, plus 1 with VICTORY_WARP=1 VICTORY_D3D12_WARP=1 VICTORY_ADAPTER=Microsoft, all gave the same output:

source adapter vendor:device flags own memory output shader model
game_adapter() NVIDIA GeForce RTX 3070 10de:2484 0x0 highest_shader_model() 6.8
EnumAdapters1(0) NVIDIA GeForce RTX 3070 10de:2484 0x0 8017 MiB yes 6.8
EnumAdapters1(1) NVIDIA GeForce RTX 3070 10de:2484 0x0 8017 MiB no 6.8
EnumAdapters1(2) Microsoft Basic Render Driver 1414:008c 0x2 (software) 0 no 6.8
EnumWarpAdapter Microsoft Basic Render Driver 1414:008c 0x2 (software) 0 no 6.8
  • DXGI lists the 3070 twice, and only the first entry has an output. This machine has virtual-display drivers installed, so the second entry is probably the card as one of those drivers presents it (a guess, not checked). pick_adapter took entry 0, the one with the monitor, which is also Windows' first adapter. So here the PR's choice and main's choice are the same adapter.
  • The 3070 and WARP both report 6.8. Even if Windows' first adapter were WARP, the answer here would not change.

Negative control

The log is in r1080-control.log.

  • A. Main's code in all three files, the test kept. git diff --stat 923e38cc8 -- apps crates: play.rs | 13 + (the test). It does not compile: error[E0425]: cannot find function read_shader_model in this scope (4 times).

  • B. A, plus a 4-line read_shader_model stub with main's parse and no card, so that it builds. play.rs | 18 +. 3 runs: 0 passed, 1 failed, 0 ignored each, at play.rs:1270: left: Some(((6, 8), None)), right: Some(((6, 8), Some("NVIDIA GeForce RTX 5070 Ti"))). The test catches a lost card line.

  • C. The PR's main.rs and play.rs, with main's streamline.rs (highest_shader_model back on EnumAdapters1(0), no game_adapter). 3 runs: 1 passed, 0 failed, 0 ignored each. On that build, victory shader-model printed card NVIDIA GeForce RTX 3070 and 6.8, the same as on the merge. The test passes without the adapter change, which is the PR's key change.

  • Arm. On the full merge, I put panic! as the first line of highest_shader_model and of game_adapter:

    • the PR test: 1 passed, 0 failed, 0 ignored;
    • cargo test -p victory --locked: 30 passed and 2 passed (tests/census), 0 failed;
    • cargo test -p victory-gpu --lib --locked: 550 passed, 0 failed, 43 ignored.

    No test in either crate reaches game_adapter or highest_shader_model. Only victory shader-model above runs them.

Suites of the touched crates (hardware, once each)

merge a952fae main 923e38cc8
cargo test -p victory-gpu --lib --locked 550 passed, 0 failed, 43 ignored (13.1 s) 550 passed, 0 failed, 43 ignored (12.7 s)
cargo test -p victory --locked (bin) 30 passed, 0 failed, 0 ignored 29 passed, 0 failed, 0 ignored
cargo test -p victory --locked (tests/census) 2 passed, 0 failed, 0 ignored 2 passed, 0 failed, 0 ignored

The one extra pass is the new test, and there were no failures. Both builds give the same warning counts (victory-gpu 6, victory-shader 1), so the PR adds no new warnings. The logs are r1080-hw.log, r1080-warp.log, r1080-lib-merge.log and r1080-lib-main.log.

CI

gh pr checks reports no checks on the PR's branch (fix/shader-model-on-the-game-card).

Not tested

  • A PC whose first adapter is not the game's card (an integrated GPU plus a discrete card, a laptop, or two discrete cards). On this PC both choices give the same adapter and the same 6.8, so nothing here can tell them apart.
  • A device made on the second 3070 entry by game_adapter. pick_adapter never chose it here.
  • The refusal messages with on <card>. On a 6.8 card the check never refuses, and I did not run victory play.
  • The frame generation, MFG Unlocker and FSR 3 notices that read adapter_name().
  • An older victory.exe answer read by this one, beyond the test's fixed string.
  • Clippy, the release build, --features diagnostics, and the rest of the workspace.
  • The game.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

**@⁠upipibi** on GitHub · 2026-11-28 20:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1080#issuecomment-7245485649) Tested on Ampere: RTX 3070 (`10de:2484`), driver 616.56, native Windows 11 Pro 10.0.26100, rustc 1.98.1. Debug test profile. The system WARP is the one that ships with Windows, and the D3D12 runtime in every run was `C:\Windows\SYSTEM32\D3D12Core.dll`. - Head `f206d29cc`, merged onto main `923e38cc8` (`--no-ff`, clean, merge `a952fae`). The PR's base is `63b902f`. The merge changes the same three files by the same amounts as the PR: `main.rs` +4/-0, `play.rs` +33/-12, `streamline.rs` +17/-8. The head was still `f206d29cc` when I finished. - This PC has one GPU. It cannot test the case the PR is for, where Windows' first adapter is an integrated GPU and the game plays on another card. All it can show is that the check asks this card and names it. **`play::tests::the_shader_model_answer_names_its_card`** (crate `victory`, `apps/victory/src/play.rs`) ``` cargo test -p victory --locked the_shader_model_answer_names_its_card -- --nocapture ``` - 3 runs: 1 passed, 0 failed, 0 ignored each (0.00 s). - `read_shader_model` and `game_adapter` are functions, not tests. The new test is the only one the PR adds. - The test parses fixed strings. It never opens a device, so hardware against WARP makes no difference to it, and I did not run a WARP version of it. **`victory shader-model`, the changed code itself** ``` target-1080/debug/victory.exe shader-model # merge, 3 runs VICTORY_ADAPTER=nvidia | nosuchcard victory shader-model # merge, once each VICTORY_WARP=1 VICTORY_D3D12_WARP=1 victory shader-model # merge, once target-main/debug/victory.exe shader-model # main, once ``` The merge printed the same output in every run and with every variable: ``` card NVIDIA GeForce RTX 3070 runtime C:\Windows\SYSTEM32\D3D12Core.dll 6.8 ``` Main prints the same `runtime` and `6.8` lines, without the `card` line. **Adapters and shader models** You can't force WARP through `game_adapter`. `hardware_adapter` skips software adapters, so `VICTORY_ADAPTER=Microsoft` still picks the 3070. `VICTORY_WARP` and `VICTORY_D3D12_WARP` are not read on this path. To get WARP's answer, I added a temporary test to `streamline.rs` and removed it afterwards. It prints `game_adapter()`, `highest_shader_model()` and `adapter_name()`. Then it makes a device on every `EnumAdapters1` entry and on `EnumWarpAdapter`, and reads each one's shader model. 3 runs, plus 1 with `VICTORY_WARP=1 VICTORY_D3D12_WARP=1 VICTORY_ADAPTER=Microsoft`, all gave the same output: | source | adapter | vendor:device | flags | own memory | output | shader model | |---|---|---|---|---|---|---| | `game_adapter()` | NVIDIA GeForce RTX 3070 | `10de:2484` | `0x0` | | | `highest_shader_model()` 6.8 | | `EnumAdapters1(0)` | NVIDIA GeForce RTX 3070 | `10de:2484` | `0x0` | 8017 MiB | yes | 6.8 | | `EnumAdapters1(1)` | NVIDIA GeForce RTX 3070 | `10de:2484` | `0x0` | 8017 MiB | no | 6.8 | | `EnumAdapters1(2)` | Microsoft Basic Render Driver | `1414:008c` | `0x2` (software) | 0 | no | 6.8 | | `EnumWarpAdapter` | Microsoft Basic Render Driver | `1414:008c` | `0x2` (software) | 0 | no | 6.8 | - DXGI lists the 3070 twice, and only the first entry has an output. This machine has virtual-display drivers installed, so the second entry is probably the card as one of those drivers presents it (a guess, not checked). `pick_adapter` took entry 0, the one with the monitor, which is also Windows' first adapter. So here the PR's choice and main's choice are the same adapter. - The 3070 and WARP both report 6.8. Even if Windows' first adapter were WARP, the answer here would not change. **Negative control** The log is in `r1080-control.log`. - **A. Main's code in all three files, the test kept.** `git diff --stat 923e38cc8 -- apps crates`: `play.rs | 13 +` (the test). It does not compile: `error[E0425]: cannot find function read_shader_model in this scope` (4 times). - **B. A, plus a 4-line `read_shader_model` stub with main's parse and no card**, so that it builds. `play.rs | 18 +`. 3 runs: **0 passed, 1 failed, 0 ignored each**, at `play.rs:1270`: `left: Some(((6, 8), None))`, `right: Some(((6, 8), Some("NVIDIA GeForce RTX 5070 Ti")))`. The test catches a lost `card` line. - **C. The PR's `main.rs` and `play.rs`, with main's `streamline.rs`** (`highest_shader_model` back on `EnumAdapters1(0)`, no `game_adapter`). 3 runs: **1 passed, 0 failed, 0 ignored each.** On that build, `victory shader-model` printed `card NVIDIA GeForce RTX 3070` and `6.8`, the same as on the merge. **The test passes without the adapter change, which is the PR's key change.** - **Arm.** On the full merge, I put `panic!` as the first line of `highest_shader_model` and of `game_adapter`: - the PR test: 1 passed, 0 failed, 0 ignored; - `cargo test -p victory --locked`: 30 passed and 2 passed (`tests/census`), 0 failed; - `cargo test -p victory-gpu --lib --locked`: 550 passed, 0 failed, 43 ignored. **No test in either crate reaches `game_adapter` or `highest_shader_model`.** Only `victory shader-model` above runs them. **Suites of the touched crates** (hardware, once each) | | merge `a952fae` | main `923e38cc8` | |---|---|---| | `cargo test -p victory-gpu --lib --locked` | 550 passed, 0 failed, 43 ignored (13.1 s) | 550 passed, 0 failed, 43 ignored (12.7 s) | | `cargo test -p victory --locked` (bin) | 30 passed, 0 failed, 0 ignored | 29 passed, 0 failed, 0 ignored | | `cargo test -p victory --locked` (`tests/census`) | 2 passed, 0 failed, 0 ignored | 2 passed, 0 failed, 0 ignored | The one extra pass is the new test, and there were no failures. Both builds give the same warning counts (`victory-gpu` 6, `victory-shader` 1), so the PR adds no new warnings. The logs are `r1080-hw.log`, `r1080-warp.log`, `r1080-lib-merge.log` and `r1080-lib-main.log`. **CI** `gh pr checks` reports no checks on the PR's branch (`fix/shader-model-on-the-game-card`). **Not tested** - A PC whose first adapter is not the game's card (an integrated GPU plus a discrete card, a laptop, or two discrete cards). On this PC both choices give the same adapter and the same 6.8, so nothing here can tell them apart. - A device made on the second 3070 entry by `game_adapter`. `pick_adapter` never chose it here. - The refusal messages with `on <card>`. On a 6.8 card the check never refuses, and I did not run `victory play`. - The frame generation, MFG Unlocker and FSR 3 notices that read `adapter_name()`. - An older `victory.exe` answer read by this one, beyond the test's fixed string. - Clippy, the release build, `--features diagnostics`, and the rest of the workspace. - The game. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 21:16 UTC · original

@⁠upipibi, thank you, that's a careful run, and control C is the honest limit of this PR's test: it covers the card line, not the choice of adapter. On a one-GPU PC both choices are the same card, so nothing there can tell them apart. I've added your results to the description.

What's left needs a PC where Windows' first adapter isn't the game's card, such as a laptop with an integrated GPU and an RTX. On such a PC, before this PR, victory shader-model answers for the integrated GPU. With it, the card line should name the RTX, and its shader model should be the RTX's.

**@⁠kibagami-nc** on GitHub · 2026-11-28 21:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1080#issuecomment-7245902642) @⁠upipibi, thank you, that's a careful run, and control C is the honest limit of this PR's test: it covers the `card` line, not the choice of adapter. On a one-GPU PC both choices are the same card, so nothing there can tell them apart. I've added your results to the description. What's left needs a PC where Windows' first adapter isn't the game's card, such as a laptop with an integrated GPU and an RTX. On such a PC, before this PR, `victory shader-model` answers for the integrated GPU. With it, the `card` line should name the RTX, and its shader model should be the RTX's.
github manually merged commit 5db162cd0f into main 2026-11-29 08:22:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
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
github/trustno1-coder--VIctory-NVIDIA!1080
No description provided.