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

Open
LeonnnY wants to merge 1 commit from upstream-pr/277 into a-publier
LeonnnY commented 2026-11-26 18:47:41 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by LeonnnY on 2026-11-26T18:47:41Z.


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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:5515509460 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/277). Originally posted by [LeonnnY](https://github.com/LeonnnY) on 2026-11-26T18:47:41Z. --- 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.
MamaLeVrai commented 2026-11-26 20:45:49 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by MamaLeVrai on 2026-11-26T20:45:49Z.


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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7203047674 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/277#issuecomment-7203047674). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-26T20:45:49Z. --- 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 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/277:upstream-pr/277'
git switch 'upstream-pr/277'

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 'a-publier'
git merge --no-ff 'upstream-pr/277'
git switch 'upstream-pr/277'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'upstream-pr/277'
git switch 'upstream-pr/277'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'upstream-pr/277'
git switch 'a-publier'
git merge --squash 'upstream-pr/277'
git switch 'a-publier'
git merge --ff-only 'upstream-pr/277'
git switch 'a-publier'
git merge 'upstream-pr/277'
git push origin 'a-publier'
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
Belobug/VIctory-Belobug-AMD!277
No description provided.