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

Open
VlREX wants to merge 1 commit from upstream-pr/418 into a-publier
VlREX commented 2026-11-27 00:34:38 +00:00 (Migrated from github.com)

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:

  • 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.
<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:5519146128 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418). Originally posted by [VlREX](https://github.com/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: - 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 commented 2026-11-27 00:41:37 +00:00 (Migrated from github.com)

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).

  • 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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7206672677 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#issuecomment-7206672677). Originally posted by [VlREX](https://github.com/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). - 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.
MamaLeVrai commented 2026-11-27 02:26:41 +00:00 (Migrated from github.com)

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

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

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7208130005 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#issuecomment-7208130005). Originally posted by [MamaLeVrai](https://github.com/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 --lib` 303 passed, 0 failed, 4 ignored. AI-assisted (Claude Code); no game data.
lvndrpup commented 2026-11-27 03:31:53 +00:00 (Migrated from github.com)

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.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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:review:6083088442 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/418#pullrequestreview-6083088442). Originally posted by [lvndrpup](https://github.com/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.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 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/418:upstream-pr/418'
git switch 'upstream-pr/418'

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/418'
git switch 'upstream-pr/418'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'upstream-pr/418'
git switch 'upstream-pr/418'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'upstream-pr/418'
git switch 'a-publier'
git merge --squash 'upstream-pr/418'
git switch 'a-publier'
git merge --ff-only 'upstream-pr/418'
git switch 'a-publier'
git merge 'upstream-pr/418'
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!418
No description provided.