CLI: report the Windows GPU and its D3D12 capabilities #3786

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3786 into main
andrewpozdnakov7-jpg commented 2026-11-28 19:52:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T19:52:59Z.


Add victory gpu-info [--warp] to collect a Windows adapter report before starting a title. The command prints the adapter kind, D3D feature level, Shader Model through 6.6, resource binding tier, wave lane range and mesh shader support. WARP uses the existing software-adapter check. An unknown Shader Model request is retried at older versions; other HRESULTs are reported. D3D12 capability queries · Shader Model query contract

I ran the actual command on Windows. The default adapter reported feature level 11.0 and Shader Model 6.5. System WARP reported feature level 12.1 and Shader Model 6.2 and was identified as software. Both invocations exited successfully, and command help included the WARP option. The fallback/error test, all 18 CLI tests, both strict Clippy configurations and the asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5543995055 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3786). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T19:52:59Z. --- Add `victory gpu-info [--warp]` to collect a Windows adapter report before starting a title. The command prints the adapter kind, D3D feature level, Shader Model through 6.6, resource binding tier, wave lane range and mesh shader support. WARP uses the existing software-adapter check. An unknown Shader Model request is retried at older versions; other HRESULTs are reported. [D3D12 capability queries](https://learn.microsoft.com/en-us/windows/win32/direct3d12/capability-querying) · [Shader Model query contract](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_feature_data_shader_model) I ran the actual command on Windows. The default adapter reported feature level 11.0 and Shader Model 6.5. System WARP reported feature level 12.1 and Shader Model 6.2 and was identified as software. Both invocations exited successfully, and command help included the WARP option. The fallback/error test, all 18 CLI tests, both strict Clippy configurations and the asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 20:01:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T20:01:15Z.


Windows CI passed on 09261c1, including both Clippy configurations and the workspace tests. On Windows, the actual CLI queried the default adapter (feature level 11.0, Shader Model 6.5) and system WARP (12.1, 6.2, identified as software). Both invocations returned the capability report. The Shader Model fallback and error propagation test passed locally as well.

The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7244975469 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3786#issuecomment-7244975469). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T20:01:15Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46183467739/job/141098034463) passed on 09261c1, including both Clippy configurations and the workspace tests. On Windows, the actual CLI queried the default adapter (feature level 11.0, Shader Model 6.5) and system WARP (12.1, 6.2, identified as software). Both invocations returned the capability report. The Shader Model fallback and error propagation test passed locally as well. The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
ColorMeBoom commented 2026-11-28 23:21:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T23:21:27Z.


Hardware run of victory gpu-info at 09261c1, release build, on an RX 5700 XT (Navi 10, RDNA1, driver 32.0.21045.29003), Windows 11 26200:

Adapter: AMD Radeon RX 5700 XT (hardware)
D3D feature level: 12.1
Shader Model (up to 6.6): 6.6
Resource binding tier: 3
Wave operations: 32-64 lanes
Mesh shaders: unsupported

--warp on the same machine:

Adapter: Microsoft Basic Render Driver (software)
D3D feature level: 12.1
Shader Model (up to 6.6): 6.6
Resource binding tier: 3
Wave operations: 4-4 lanes
Mesh shaders: tier 1

Both exit 0. The hardware lines match what the shader tests see on this card: 32–64-lane waves, and no mesh shaders on RDNA1, which is also what the game's host mesh shader support log line says. shader_model_retries_only_versions_the_runtime_does_not_know passes.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7247375846 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3786#issuecomment-7247375846). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T23:21:27Z. --- Hardware run of `victory gpu-info` at `09261c1`, release build, on an RX 5700 XT (Navi 10, RDNA1, driver 32.0.21045.29003), Windows 11 26200: ``` Adapter: AMD Radeon RX 5700 XT (hardware) D3D feature level: 12.1 Shader Model (up to 6.6): 6.6 Resource binding tier: 3 Wave operations: 32-64 lanes Mesh shaders: unsupported ``` `--warp` on the same machine: ``` Adapter: Microsoft Basic Render Driver (software) D3D feature level: 12.1 Shader Model (up to 6.6): 6.6 Resource binding tier: 3 Wave operations: 4-4 lanes Mesh shaders: tier 1 ``` Both exit 0. The hardware lines match what the shader tests see on this card: 32–64-lane waves, and no mesh shaders on RDNA1, which is also what the game's `host mesh shader support` log line says. `shader_model_retries_only_versions_the_runtime_does_not_know` passes. AI use: Claude Code (Claude Opus 5.5).
cloph-dsp commented 2026-11-30 11:59:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-30T11:59:03Z.


AI-assisted verification (Hy4 flash) — Windows / rustc 1.100.0 / MSVC, synthetic input only, no game data, GPU/driver N/A (CPU-only unit test).

git grep -F shader_model_retries_only_versions_the_runtime_does_not_know 63bcca43c6a00a758510398fa43096ce7e4f7df0 -- '*.rs' → exit 1 (test is new on base). git diff --check 63bcca43..HEAD → exit 0.

CARGO_TARGET_DIR=D:\Victory-Contrib\target-3786 cargo test --locked -p victory-gpu --lib -- host_info::tests::shader_model_retries_only_versions_the_runtime_does_not_know --exact --test-threads=1 --quiet

→ test result: ok. 1 passed; 0 failed; 232 filtered out, exit 0. Dedicated per-worktree CARGO_TARGET_DIR used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7277785235 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3786#issuecomment-7277785235). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-30T11:59:03Z. --- AI-assisted verification (Hy4 flash) — Windows / rustc 1.100.0 / MSVC, synthetic input only, no game data, GPU/driver N/A (CPU-only unit test). `git grep -F shader_model_retries_only_versions_the_runtime_does_not_know 63bcca43c6a00a758510398fa43096ce7e4f7df0 -- '*.rs'` → exit 1 (test is new on base). `git diff --check 63bcca43..HEAD` → exit 0. ``` CARGO_TARGET_DIR=D:\Victory-Contrib\target-3786 cargo test --locked -p victory-gpu --lib -- host_info::tests::shader_model_retries_only_versions_the_runtime_does_not_know --exact --test-threads=1 --quiet ``` → `test result: ok. 1 passed; 0 failed; 232 filtered out`, exit 0. Dedicated per-worktree `CARGO_TARGET_DIR` used.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3786:upstream-pr/3786'
git switch 'upstream-pr/3786'

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 'upstream-pr/3786'
git switch 'upstream-pr/3786'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3786'
git switch 'upstream-pr/3786'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3786'
git switch 'main'
git merge --squash 'upstream-pr/3786'
git switch 'main'
git merge --ff-only 'upstream-pr/3786'
git switch 'main'
git merge 'upstream-pr/3786'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!3786
No description provided.