Tests: identify native compute PSO crashes before HRESULT handling #418

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

@⁠VlREX on GitHub · 2026-11-27 00:34 UTC · original
VlREX:virex/compute-pso-crash-diagnostics → a-publier · +21 −1 · 1 files · 1 commits · open

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:

  • GPU: AMD Radeon RX 9070 GRE
  • OS: Windows 10 build 19045
  • Driver: 32.0.32029.2010
  • Faulting module: amdxc64.dll
  • Exception: 0xC0000005
  • Fault offset: 0x861B9F

Related to #339 and complementary to #277.

Validation

  • Source diff verified.
  • No shader translation or game-runtime changes.
  • Windows compilation and GPU validation of this patch pending.
**@⁠VlREX** on GitHub · 2026-11-27 00:34 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418) `VlREX:virex/compute-pso-crash-diagnostics` → `a-publier` · +21 −1 · 1 files · 1 commits · open ## 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: - GPU: AMD Radeon RX 9070 GRE - OS: Windows 10 build 19045 - Driver: 32.0.32029.2010 - Faulting module: amdxc64.dll - Exception: 0xC0000005 - Fault offset: 0x861B9F Related to #339 and complementary to #277. ## Validation - Source diff verified. - No shader translation or game-runtime changes. - Windows compilation and GPU validation of this patch pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:59:37 +00:00
Author
Owner

@⁠VlREX on GitHub · 2026-11-27 00:41 UTC · original

Hardware validation update — VIREX Test Studio

Tested the PR #418 diagnostic changes on top of PR #360 (Agility SDK 1.620.2).

  • GPU: AMD Radeon RX 9070 GRE
  • Driver: 32.0.32029.2010
  • OS: Windows 10 build 19045
  • Validation commit: d598552ef23588b727cb62cb3e3a942bcbad6306

The diagnostic output successfully isolated the native crash:

creating compute root signature (2252 DXIL bytes)
entering CreateComputePipelineState (2252 DXIL bytes)
0xc0000005 STATUS_ACCESS_VIOLATION

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.

**@⁠VlREX** on GitHub · 2026-11-27 00:41 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#issuecomment-7206672677) **Hardware validation update — VIREX Test Studio** Tested the PR #418 diagnostic changes on top of PR #360 (Agility SDK 1.620.2). - GPU: AMD Radeon RX 9070 GRE - Driver: 32.0.32029.2010 - OS: Windows 10 build 19045 - Validation commit: d598552ef23588b727cb62cb3e3a942bcbad6306 The diagnostic output successfully isolated the native crash: ``` creating compute root signature (2252 DXIL bytes) entering CreateComputePipelineState (2252 DXIL bytes) 0xc0000005 STATUS_ACCESS_VIOLATION ``` 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.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 02:26 UTC · original

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 --lib 303 passed, 0 failed, 4 ignored.

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

**@⁠MamaLeVrai** on GitHub · 2026-11-27 02:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#issuecomment-7208130005) 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 --lib` 303 passed, 0 failed, 4 ignored. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠lvndrpup on GitHub · 2026-11-27 03:31 UTC · original · reviewed

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.dll does):

run line printed before the crash
cargo test no
cargo test -- --test-threads=1 no, but libtest prints test crashes_in_the_driver ... before the test runs
cargo test -- --nocapture yes

So --test-threads=1 already 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 first eprintln!) that a crash hunt runs with cargo test -p victory-shader --lib -- --nocapture --test-threads=1.

**@⁠lvndrpup** on GitHub · 2026-11-27 03:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#pullrequestreview-6083088442) · **reviewed** 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.dll` does): | run | line printed before the crash | |---|---| | `cargo test` | no | | `cargo test -- --test-threads=1` | no, but libtest prints `test crashes_in_the_driver ...` before the test runs | | `cargo test -- --nocapture` | yes | So `--test-threads=1` already 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 first `eprintln!`) that a crash hunt runs with `cargo test -p victory-shader --lib -- --nocapture --test-threads=1`.
This pull request can be merged automatically.
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/418/head:github-bot/gh-418'
git switch 'github-bot/gh-418'

Merge

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