Shaders: explain D3D12 pipeline preflight failures #3788

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3788 into main
andrewpozdnakov7-jpg commented 2026-11-28 20:13:42 +00:00 (Migrated from github.com)

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


Make the Windows host checks report the failing stage when translate --pipelines starts. A D3D12 device creation failure names the feature level 12.0 requirement. The Shader Model check reports the adapter's version when it is below 6.6 and identifies a rejected query separately. D3D12 device creation · Shader Model query contract

I ran the real CLI with an empty generated fixture directory. The default adapter stopped at D3D12 feature level 12.0. System WARP reported Shader Model 6.2 and the 6.6 requirement. Translation without pipeline creation exited successfully. App-local WARP 1.0.22 with Agility 1.620.2 passed the device check and was identified as software. The status regression, both strict shader 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:5544163182 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3788). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T20:13:42Z. --- Make the Windows host checks report the failing stage when `translate --pipelines` starts. A D3D12 device creation failure names the feature level 12.0 requirement. The Shader Model check reports the adapter's version when it is below 6.6 and identifies a rejected query separately. [D3D12 device creation](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-d3d12createdevice) · [Shader Model query contract](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_feature_data_shader_model) I ran the real CLI with an empty generated fixture directory. The default adapter stopped at D3D12 feature level 12.0. System WARP reported Shader Model 6.2 and the 6.6 requirement. Translation without pipeline creation exited successfully. App-local WARP 1.0.22 with Agility 1.620.2 passed the device check and was identified as software. The status regression, both strict shader 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:16:56 +00:00 (Migrated from github.com)

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


Windows CI passed on 811e7e7, including both Clippy configurations and the workspace tests. The real pipeline CLI identified the local D3D12 feature-level refusal and system WARP's Shader Model 6.2. Translation without pipeline creation returned success. The app-local WARP 1.0.22 / Agility 1.620.2 fixture accepted the Shader Model 6.6 query.

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:7245170807 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3788#issuecomment-7245170807). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T20:16:56Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46185280369/job/141103684963) passed on 811e7e7, including both Clippy configurations and the workspace tests. The real pipeline CLI identified the local D3D12 feature-level refusal and system WARP's Shader Model 6.2. Translation without pipeline creation returned success. The app-local WARP 1.0.22 / Agility 1.620.2 fixture accepted the Shader Model 6.6 query. 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.
cloph-dsp commented 2026-11-28 23:24:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T23:24:21Z.


Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):

  • PR #3788 at head 811e7e75a8ebc51638c58d8c3487532d260339b7, base/parent 63bcca43c6a00a758510398fa43096ce7e4f7df0.
  • cargo test --locked -p victory-shader --lib -- emit::host::tests::shader_model_errors_distinguish_the_runtime_from_the_adapter --exact --test-threads=1 --quiet → 1 passed, 0 failed, 305 filtered, exit 0.
  • git grep -F for the test name on the parent returned no match (test is new on this PR); git diff --check HEAD^ HEAD clean (1 file, +65/-20).
  • Used a per-worktree CARGO_TARGET_DIR (never shared) with CARGO_BUILD_JOBS=2.
  • Only the named synthetic test was replayed; the full workspace suite and clippy were not run locally.
  • GPU/driver: N/A (CPU-only emit/host error-classification test). No game data, assets, extracted shaders, DRM or decrypt involved.

AI-assisted (Hy4 flash).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7247408574 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3788#issuecomment-7247408574). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-28T23:24:21Z. --- Independent local verification (Windows, Rust 1.100.0/MSVC, no game data): - PR #3788 at head `811e7e75a8ebc51638c58d8c3487532d260339b7`, base/parent `63bcca43c6a00a758510398fa43096ce7e4f7df0`. - `cargo test --locked -p victory-shader --lib -- emit::host::tests::shader_model_errors_distinguish_the_runtime_from_the_adapter --exact --test-threads=1 --quiet` → 1 passed, 0 failed, 305 filtered, exit 0. - `git grep -F` for the test name on the parent returned no match (test is new on this PR); `git diff --check HEAD^ HEAD` clean (1 file, +65/-20). - Used a per-worktree `CARGO_TARGET_DIR` (never shared) with `CARGO_BUILD_JOBS=2`. - Only the named synthetic test was replayed; the full workspace suite and clippy were not run locally. - GPU/driver: N/A (CPU-only emit/host error-classification test). No game data, assets, extracted shaders, DRM or decrypt involved. AI-assisted (Hy4 flash).
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/3788:upstream-pr/3788'
git switch 'upstream-pr/3788'

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/3788'
git switch 'upstream-pr/3788'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3788'
git switch 'upstream-pr/3788'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3788'
git switch 'main'
git merge --squash 'upstream-pr/3788'
git switch 'main'
git merge --ff-only 'upstream-pr/3788'
git switch 'main'
git merge 'upstream-pr/3788'
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!3788
No description provided.