shader: include HRESULT and API context in host D3D12 errors #277

Open
github-bot wants to merge 1 commit from github-bot/gh-277 into a-publier AGit
Owner

@⁠LeonnnY on GitHub · 2026-11-26 18:47 UTC · original
LeonnnY:codex/shader-host-error-context → a-publier · +10 −6 · 1 files · 1 commits · draft

Offline D3D12 shader checks currently discard the HRESULT and return only the localized Windows message. Preserve a fixed-width hexadecimal HRESULT and identify failures in root-signature serialization/creation and compute, graphics, and mesh pipeline creation. Compute debug-layer messages remain appended.

This changes diagnostics only; it does not change shader lowering or pipeline behavior.

The motivation was a synthetic NVIDIA repro from #236: the 10x10x1 case at ff5dc9b fails during CreateComputePipelineState with HRESULT 0x8007000E. The same case fails on its parent (4f62c2a), so this is not a regression introduced by #236. This PR does not fix that failure or establish its underlying cause.

Validation

Windows 11 build 26200, RTX 4080 SUPER 16 GB, NVIDIA 610.88, i9-14900K, 64 GB RAM; Rust 1.98.1, MSVC 14.44.35207, Windows SDK 10.0.26100.0. NVIDIA selected explicitly; GPU tests run serially.

  • cargo test -p victory-shader --all-features --locked -- --test-threads=1 --nocapture: 302 passed, 0 failed, 4 ignored, both on base cd8dfc0 and with this change. Some tests return early without console/PC compilers or RDNA hardware; WARP also skips unsupported subcases. These totals are not a count of hardware GPU tests.
  • cargo clippy -p victory-shader --all-features --all-targets --locked -- -D warnings: passed.
  • cargo xtask policy: passed, 269 files.
  • git diff --check: passed.
  • cargo fmt -p victory-shader -- --check: existing formatting differences on both base and this branch; diagnostics are identical after removing location headers.

No full-workspace test run or game runtime validation. Only public source and synthetic tests were used for this contribution. The published file was fetched back and compared byte-for-byte with the tested local change.

Prepared with Codex; validation executed locally on the hardware above.

**@⁠LeonnnY** on GitHub · 2026-11-26 18:47 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/277) `LeonnnY:codex/shader-host-error-context` → `a-publier` · +10 −6 · 1 files · 1 commits · draft Offline D3D12 shader checks currently discard the HRESULT and return only the localized Windows message. Preserve a fixed-width hexadecimal HRESULT and identify failures in root-signature serialization/creation and compute, graphics, and mesh pipeline creation. Compute debug-layer messages remain appended. This changes diagnostics only; it does not change shader lowering or pipeline behavior. The motivation was a synthetic NVIDIA repro from #236: the 10x10x1 case at ff5dc9b fails during CreateComputePipelineState with HRESULT 0x8007000E. The same case fails on its parent (4f62c2a), so this is not a regression introduced by #236. This PR does not fix that failure or establish its underlying cause. ### Validation Windows 11 build 26200, RTX 4080 SUPER 16 GB, NVIDIA 610.88, i9-14900K, 64 GB RAM; Rust 1.98.1, MSVC 14.44.35207, Windows SDK 10.0.26100.0. NVIDIA selected explicitly; GPU tests run serially. - `cargo test -p victory-shader --all-features --locked -- --test-threads=1 --nocapture`: **302 passed, 0 failed, 4 ignored**, both on base cd8dfc0 and with this change. Some tests return early without console/PC compilers or RDNA hardware; WARP also skips unsupported subcases. These totals are not a count of hardware GPU tests. - `cargo clippy -p victory-shader --all-features --all-targets --locked -- -D warnings`: passed. - `cargo xtask policy`: passed, 269 files. - `git diff --check`: passed. - `cargo fmt -p victory-shader -- --check`: existing formatting differences on both base and this branch; diagnostics are identical after removing location headers. No full-workspace test run or game runtime validation. Only public source and synthetic tests were used for this contribution. The published file was fetched back and compared byte-for-byte with the tested local change. Prepared with Codex; validation executed locally on the hardware above.
Preserve the HRESULT alongside localized Windows messages and identify root-signature and pipeline creation calls. Keep compute debug-layer messages intact.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:52:43 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-26 20:45 UTC · original

Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at 4c2b35f: cargo test --release -p victory-shader --lib 302 passed, 0 failed, 4 ignored, the same as cd8dfc0 on this card.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-26 20:45 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/277#issuecomment-7203047674) Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at `4c2b35f`: `cargo test --release -p victory-shader --lib` 302 passed, 0 failed, 4 ignored, the same as `cd8dfc0` on this card. AI-assisted (Claude Code); no game data.
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/277/head:github-bot/gh-277'
git switch 'github-bot/gh-277'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-277'
git switch 'github-bot/gh-277'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-277'
git switch 'github-bot/gh-277'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-277'
git switch 'a-publier'
git merge --squash 'github-bot/gh-277'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-277'
git switch 'a-publier'
git merge 'github-bot/gh-277'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.