shader: include HRESULT and API context in host D3D12 errors #277
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/277"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
ff5dc9bfails 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 basecd8dfc0and 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.
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 --lib302 passed, 0 failed, 4 ignored, the same ascd8dfc0on this card.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.