Tests: identify native compute PSO crashes before HRESULT handling #418
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/418"
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 VlREX on 2026-11-27T00:34:38Z.
Improvement
Add test-only diagnostics around native D3D12 compute pipeline creation to identify driver crashes before HRESULT handling.
VIREX Test Studio findings
Baseline crash reproduced on Belobug PR #360:
Related to #339 and complementary to #277.
Validation
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by VlREX on 2026-11-27T00:41:37Z.
Hardware validation update — VIREX Test Studio
Tested the PR #418 diagnostic changes on top of PR #360 (Agility SDK 1.620.2).
The diagnostic output successfully isolated the native crash:
The native pipeline call never returned. Previous Windows event logs identified amdxc64.dll at offset 0x861B9F.
The crash diagnostic functionality is confirmed on physical AMD hardware. This patch does not claim to fix the underlying driver crash.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by MamaLeVrai on 2026-11-27T02:26:41Z.
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
4bba225:cargo test --release -p victory-shader --lib303 passed, 0 failed, 4 ignored.AI-assisted (Claude Code); no game data.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by lvndrpup on 2026-11-27T03:31:53Z.
Review: COMMENTED
One thing to check before relying on these lines: libtest keeps each test's
eprintln!output in a buffer and prints it only when the test ends and fails. A driver fault ends the process first, so the lines are lost unless the run has--nocapture.I checked with a throwaway crate on Windows 11 (Rust 1.98.1). It had one test that prints a line and then writes through a null pointer (0xC0000005, as
amdxc64.dlldoes):cargo testcargo test -- --test-threads=1test crashes_in_the_driver ...before the test runscargo test -- --nocaptureSo
--test-threads=1already names the test that crashed. What these lines add is which call was under way, and only with--nocapture. It may help to say in the PR (or in a comment beside the firsteprintln!) that a crash hunt runs withcargo test -p victory-shader --lib -- --nocapture --test-threads=1.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.