AMD RX 9070 XT (RDNA4): two compute shaders crash the AMD shader compiler (amdxc64.dll+0x861b9f) after the main menu #120

Open
opened 2026-11-26 03:36:27 +00:00 by github-bot · 7 comments
Owner

@⁠Arvi23 on GitHub · 2026-11-24 21:38 UTC · original

AMD RX 9070 XT (RDNA4): two compute shaders crash the AMD shader compiler (amdxc64.dll+0x861b9f) right after the main menu

What happens
The game gets through boot and the menus (about 500 frames), then dies about 30 s in, as story000.rpf opens: 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8) while a pipeline is being built. Same offset in 2 of 2 runs.

The two shaders (the hash your logs use)
Building each compute shader on its own outside the game (VICTORY_TRANSLATE_ONLY=<hash> victory translate --pipelines --jobs 1, one process each), from the shaders that were still being built when the game crashed in both runs:

shader fork, pipeline fork, --validate upstream ffe310e, pipeline
a73284b60aa303ed crashes (process killed) validates did not finish in 15 min (stopped)
a1266cc7391ae0d6 crashes (process killed) validates stuck (little CPU used), stopped
1512b6b81c4072ed, 39f0e9aeb156a61c, d4343b9a6e4f2717, d6e3a104264dd4c6 built – –

So the fork's output for these two is valid DXIL, and the AMD driver crashes compiling it. Upstream's version of the same two does not crash, but it does not finish either.

Setup

  • AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 26.11.2; Ryzen 7 5800X3D; 32 GB RAM.
  • Windows 10 IoT Enterprise LTSC 21H2 (19044). The fork alone stops at Game Init on Windows 10 (root signature flags c01, upstream #598 / #828), so I merged upstream PR #175 and put the Agility SDK 1.620.2 runtime next to victory.exe. With that it boots and reaches the menus.
  • Fork at 4e17478 + upstream PR #175, release build, Rust 1.98.1, Series X profile.

Not tested

  • Other AMD cards or drivers (RDNA2 / RDNA3).
  • Which change in the fork makes the difference for these two shaders.
  • Windows 11.

AI use: Claude Code (Claude Opus 5.5) narrowed the crash down to the two shaders, ran the isolation and wrote this report. The game runs and builds were on the machine above.

**@⁠Arvi23** on GitHub · 2026-11-24 21:38 UTC · [original](https://github.com/fxceless/victory-fork/issues/120) **AMD RX 9070 XT (RDNA4): two compute shaders crash the AMD shader compiler (`amdxc64.dll+0x861b9f`) right after the main menu** **What happens** The game gets through boot and the menus (about 500 frames), then dies about 30 s in, as `story000.rpf` opens: `0xc0000005` at `amdxc64.dll+0x861b9f` (read 0x8) while a pipeline is being built. Same offset in 2 of 2 runs. **The two shaders** (the hash your logs use) Building each compute shader on its own outside the game (`VICTORY_TRANSLATE_ONLY=<hash> victory translate --pipelines --jobs 1`, one process each), from the shaders that were still being built when the game crashed in both runs: | shader | fork, pipeline | fork, `--validate` | upstream `ffe310e`, pipeline | |---|---|---|---| | `a73284b60aa303ed` | **crashes** (process killed) | validates | did not finish in 15 min (stopped) | | `a1266cc7391ae0d6` | **crashes** (process killed) | validates | stuck (little CPU used), stopped | | `1512b6b81c4072ed`, `39f0e9aeb156a61c`, `d4343b9a6e4f2717`, `d6e3a104264dd4c6` | built | – | – | So the fork's output for these two is valid DXIL, and the AMD driver crashes compiling it. Upstream's version of the same two does not crash, but it does not finish either. **Setup** - AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 26.11.2; Ryzen 7 5800X3D; 32 GB RAM. - Windows 10 IoT Enterprise LTSC 21H2 (19044). The fork alone stops at Game Init on Windows 10 (root signature flags c01, upstream #598 / #828), so I merged upstream PR #175 and put the Agility SDK 1.620.2 runtime next to `victory.exe`. With that it boots and reaches the menus. - Fork at `4e17478` + upstream PR #175, release build, Rust 1.98.1, Series X profile. **Not tested** - Other AMD cards or drivers (RDNA2 / RDNA3). - Which change in the fork makes the difference for these two shaders. - Windows 11. AI use: Claude Code (Claude Opus 5.5) narrowed the crash down to the two shaders, ran the isolation and wrote this report. The game runs and builds were on the machine above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:27 +00:00
Author
Owner

@⁠EdouardSence on GitHub · 2026-11-24 21:41 UTC · original

A data point from the same GPU on Linux: on RADV, both shaders build and run.

RX 9070 XT (RDNA4), Mesa 26.2.6 RADV, Wine 11.22 with vkd3d-proton master and DXVK's dxgi, fork at 4e17478 (no upstream PR merged), release and diag builds, Series X files, title 1.0.2.1.

In all 5 of my runs that got that far (2 release, 3 diag), a73284b60aa303ed and a1266cc7391ae0d6 reached shader translated and then host pipeline shaders=[compute …] around frame 1,100-1,500, with no failure or refusal logged after them. The game carried on into the world. The one device loss I had (see #6) came later and was a scalar load from address 0, not a compile.

RADV never goes through amdxc64.dll: vkd3d-proton turns the DXIL into SPIR-V (dxil-spirv) and Mesa compiles that with ACO. So the fork's DXIL for these two is fine for at least one other compiler, which points at the Windows AMD compiler, as you suspected, rather than at the translation. It doesn't say whether the output is correct, only that the pipelines get built.

Possibly useful for narrowing it down: in the diag runs, VIctory's own translation of a73284b60aa303ed alone took 1-18 s from first bind to shader translated (71,008-byte program, 4 user-data tables, 7 samplers), so it is a big program even before the driver sees it.

No game data: hashes and log lines only.

AI-assisted (Claude Code): log search and this comment by the model, from runs on my machine with my own copy of the title.

**@⁠EdouardSence** on GitHub · 2026-11-24 21:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7145258876) A data point from the same GPU on Linux: on RADV, both shaders build and run. RX 9070 XT (RDNA4), Mesa 26.2.6 RADV, Wine 11.22 with vkd3d-proton master and DXVK's `dxgi`, fork at `4e17478` (no upstream PR merged), release and diag builds, Series X files, title 1.0.2.1. In all 5 of my runs that got that far (2 release, 3 diag), `a73284b60aa303ed` and `a1266cc7391ae0d6` reached `shader translated` and then `host pipeline shaders=[compute …]` around frame 1,100-1,500, with no failure or refusal logged after them. The game carried on into the world. The one device loss I had (see #6) came later and was a scalar load from address 0, not a compile. RADV never goes through `amdxc64.dll`: vkd3d-proton turns the DXIL into SPIR-V (dxil-spirv) and Mesa compiles that with ACO. So the fork's DXIL for these two is fine for at least one other compiler, which points at the Windows AMD compiler, as you suspected, rather than at the translation. It doesn't say whether the output is correct, only that the pipelines get built. Possibly useful for narrowing it down: in the diag runs, VIctory's own translation of `a73284b60aa303ed` alone took 1-18 s from `first bind` to `shader translated` (71,008-byte program, 4 user-data tables, 7 samplers), so it is a big program even before the driver sees it. No game data: hashes and log lines only. _AI-assisted (Claude Code): log search and this comment by the model, from runs on my machine with my own copy of the title._
Author
Owner

@⁠Arvi23 on GitHub · 2026-11-24 22:13 UTC · original

Cause found, with a fix: clean-up pass 4 (REUSE) shares resource handles across the whole program, and the AMD Windows driver crashes compiling that. With the patch below, both shaders build, and the game plays on this RX 9070 XT (prologue, ~2 fps, dark shadows as on NVIDIA).

How it was narrowed down (each line: VICTORY_TRANSLATE_ONLY=<hash> victory translate --pipelines --jobs 1, one process per run; exit 0 = built, 139 = the driver crashed):

  • VICTORY_SHADER_OPT=0 (no clean-up passes): a73284b60aa303ed builds.
  • One pass at a time on a73284b60aa303ed: 1, 2, 8, 16, 32 build; 4 alone crashes. a1266cc7391ae0d6 with 4 alone: crashes too.
  • merge() with REUSE merges every Pure instruction along the dominator tree, and effect() makes readnone calls Pure, so createHandleFromHeap / annotateHandle made once early are reused across most of a 14 000-instruction program. DXC's GVN doing the same (handle phis) is a known way to get pipelines refused on NVIDIA. Here AMD's compiler faults instead.

This also fits @⁠EdouardSence's RADV result above: Linux's driver takes these shaders; the crash is the AMD Windows driver's.

Fix: handles are reused within their own block only (like the LOADS reads); everything else in REUSE is unchanged. Patch against 4e17478 (opt.rs hasn't changed since, so it applies to 2119b0e):

diff --git a/crates/victory-shader/src/emit/bitcode/opt.rs b/crates/victory-shader/src/emit/bitcode/opt.rs
index 13551c3..17c4528 100644
--- a/crates/victory-shader/src/emit/bitcode/opt.rs
+++ b/crates/victory-shader/src/emit/bitcode/opt.rs
@@ -604,6 +604,14 @@ impl Module {
         }
     }
 
+    /// Whether `i` makes a resource handle (`dx.op.createHandle*`, `dx.op.annotateHandle`).
+    fn is_handle(&self, i: u32) -> bool {
+        matches!(&self.insts[i as usize].op, Op::Call(f, _) if {
+            let name = &self.funcs[*f as usize].name;
+            name.starts_with("dx.op.createHandle") || name.starts_with("dx.op.annotateHandle")
+        })
+    }
+
     /// What kind of instruction `i` is for merging.
     fn class(&self, effects: &[Effect], i: u32) -> Effect {
         match &self.insts[i as usize].op {
@@ -805,8 +813,14 @@ impl Module {
                     continue;
                 }
                 let class = self.class(&effects, i);
+                // A resource handle is reused within its block only: one made early and
+                // used across most of a large program crashes AMD's shader compiler
+                // (amdxc64, RDNA4) in CreateComputePipelineState, as DXC's GVN making
+                // handle phis gets pipelines refused on NVIDIA.
+                let handle = self.is_handle(i);
                 if passes & REUSE != 0
                     && class == Effect::Pure
+                    && !handle
                     && let Some(key) = self.key(i)
                 {
                     if let Some(&first) = known.get(&key) {
@@ -819,8 +833,8 @@ impl Module {
                 }
                 // Reads of memory, and wave operations (the same lanes run
                 // the whole block): the block's own earlier one.
-                if passes & LOADS != 0
-                    && matches!(class, Effect::Reads | Effect::Lanes)
+                if (passes & LOADS != 0 && matches!(class, Effect::Reads | Effect::Lanes)
+                    || passes & REUSE != 0 && handle)
                     && let Some(key) = self.key(i)
                 {
                     if let Some(&first) = read.get(&key) {

Tested (RX 9070 XT, driver 26.11.2, Windows 10 21H2 with upstream PR #175 + Agility SDK 1.620.2, release):

  • Both shaders, all passes on: pipelines built (exit 0); --validate: 2 of 2 validate.
  • cargo test -p victory-shader -- bitcode::opt: 11 passed, 0 failed.
  • The game: past the point where it crashed before, into the prologue and playable at 1–3 fps (403 ms/frame, ~7 000 draws/frame).

Not tested: NVIDIA (whether handles reused only within a block cost anything there), other AMD generations, the instruction-count gain of the pass with this change (it should lose very little: only handle calls change).

AI use: Claude Code (Claude Opus 5.5) bisected the passes, wrote the patch and this comment. The runs are on the machine above.

**@⁠Arvi23** on GitHub · 2026-11-24 22:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7145972071) **Cause found, with a fix: clean-up pass 4 (`REUSE`) shares resource handles across the whole program, and the AMD Windows driver crashes compiling that.** With the patch below, both shaders build, and the game plays on this RX 9070 XT (prologue, ~2 fps, dark shadows as on NVIDIA). **How it was narrowed down** (each line: `VICTORY_TRANSLATE_ONLY=<hash> victory translate --pipelines --jobs 1`, one process per run; exit 0 = built, 139 = the driver crashed): - `VICTORY_SHADER_OPT=0` (no clean-up passes): `a73284b60aa303ed` builds. - One pass at a time on `a73284b60aa303ed`: 1, 2, 8, 16, 32 build; **4 alone crashes**. `a1266cc7391ae0d6` with 4 alone: crashes too. - `merge()` with `REUSE` merges every `Pure` instruction along the dominator tree, and `effect()` makes `readnone` calls `Pure`, so `createHandleFromHeap` / `annotateHandle` made once early are reused across most of a 14 000-instruction program. DXC's GVN doing the same (handle phis) is a known way to get pipelines refused on NVIDIA. Here AMD's compiler faults instead. This also fits @⁠EdouardSence's RADV result above: Linux's driver takes these shaders; the crash is the AMD Windows driver's. **Fix:** handles are reused within their own block only (like the `LOADS` reads); everything else in `REUSE` is unchanged. Patch against `4e17478` (`opt.rs` hasn't changed since, so it applies to `2119b0e`): ```diff diff --git a/crates/victory-shader/src/emit/bitcode/opt.rs b/crates/victory-shader/src/emit/bitcode/opt.rs index 13551c3..17c4528 100644 --- a/crates/victory-shader/src/emit/bitcode/opt.rs +++ b/crates/victory-shader/src/emit/bitcode/opt.rs @@ -604,6 +604,14 @@ impl Module { } } + /// Whether `i` makes a resource handle (`dx.op.createHandle*`, `dx.op.annotateHandle`). + fn is_handle(&self, i: u32) -> bool { + matches!(&self.insts[i as usize].op, Op::Call(f, _) if { + let name = &self.funcs[*f as usize].name; + name.starts_with("dx.op.createHandle") || name.starts_with("dx.op.annotateHandle") + }) + } + /// What kind of instruction `i` is for merging. fn class(&self, effects: &[Effect], i: u32) -> Effect { match &self.insts[i as usize].op { @@ -805,8 +813,14 @@ impl Module { continue; } let class = self.class(&effects, i); + // A resource handle is reused within its block only: one made early and + // used across most of a large program crashes AMD's shader compiler + // (amdxc64, RDNA4) in CreateComputePipelineState, as DXC's GVN making + // handle phis gets pipelines refused on NVIDIA. + let handle = self.is_handle(i); if passes & REUSE != 0 && class == Effect::Pure + && !handle && let Some(key) = self.key(i) { if let Some(&first) = known.get(&key) { @@ -819,8 +833,8 @@ impl Module { } // Reads of memory, and wave operations (the same lanes run // the whole block): the block's own earlier one. - if passes & LOADS != 0 - && matches!(class, Effect::Reads | Effect::Lanes) + if (passes & LOADS != 0 && matches!(class, Effect::Reads | Effect::Lanes) + || passes & REUSE != 0 && handle) && let Some(key) = self.key(i) { if let Some(&first) = read.get(&key) { ``` **Tested** (RX 9070 XT, driver 26.11.2, Windows 10 21H2 with upstream PR #175 + Agility SDK 1.620.2, release): - Both shaders, all passes on: pipelines built (exit 0); `--validate`: 2 of 2 validate. - `cargo test -p victory-shader -- bitcode::opt`: 11 passed, 0 failed. - The game: past the point where it crashed before, into the prologue and playable at 1–3 fps (403 ms/frame, ~7 000 draws/frame). **Not tested**: NVIDIA (whether handles reused only within a block cost anything there), other AMD generations, the instruction-count gain of the pass with this change (it should lose very little: only handle calls change). AI use: Claude Code (Claude Opus 5.5) bisected the passes, wrote the patch and this comment. The runs are on the machine above.
Author
Owner

@⁠thefafu on GitHub · 2026-11-24 22:27 UTC · original · edited 2026-11-24 23:12 UTC

Same crash on an RX 9060 XT. This confirms @⁠Arvi23's finding above from a second card, measured separately: it is clean-up pass 4 (VICTORY_SHADER_OPT bit 4). With that pass off the title runs here without any skip list. (Edited to add the speed-switch runs at the end.)

Setup: RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010, Ryzen 7 7800X3D, 32 GB RAM, Windows 11 26300. Fork at 4e17478, unmodified, --profile diag --features diagnostics, Rust 1.98.1, Series X profile, own 1.0.2.1 copy.

Offline, one process per shader (VICTORY_TRANSLATE_ONLY=<hash> victory translate <pack> --pipelines --list --jobs 1), on 072f5fe96efd27e1 (from #3's list), a1266cc7391ae0d6 and a73284b60aa303ed:

VICTORY_SHADER_OPT passes result, all three shaders
unset all crash, amdxc64.dll+0x861b9f
0 none pipeline created
1, 2, 8, 16, 32 one pass each pipeline created
4 "one instruction for one value" alone crash
59 all but 4 pipeline created
31, 47, 55, 61, 62 every set that has 4 crash

No exceptions in 39 runs: the driver's compiler crashes exactly when bit 4 is on. A control shader (970c4fbb3b017c0e) and 12 other CS_RaytracingResolve variants that were being built at the crash build fine with every pass on.

In the game:

run switches result
1 none, cold cache 0xc0000005 at amdxc64.dll+0x861b9f after 4 min, 25 s into the first world frames
2 none same crash 21 s after launch (see the side effect below)
3 VICTORY_SHADER_OPT=59, cold cache start-up passes, the three shaders get host pipelines; a different driver crash after 2.5 min, amdxc64.dll+0x3391b32 (read 0xffffffffffffffff), also under pipeline creation
4 VICTORY_SHADER_OPT=59 VICTORY_TEXTURE_GUARD=0 19 min (14 in the world), no crash, no device removal; I closed it

Run 4 in the world: 1.0-2.7 fps while pipelines were being made (about 8 min). With none left to make, 4.1-4.6 fps in a light scene (about 2,570 draws/frame) and 2.7-2.9 fps in a heavy one (5,800-7,500 draws/frame). 24.9 GB private.

Over runs 3 and 4, 14 of #3's 41 shaders were asked for and all 14 got host pipelines; the other 27 never came up. fc5e66f8f873d3bb, 39f0e9aeb156a61c and eeed82b877b44b5f also got host pipelines and ran with no hang or fault, so on this card VICTORY_SKIP_PIPELINES was not needed at all.

The run-3 crash did not come back: the 7 compute shaders and 1 pixel shader that had been translated but not made at that moment each build fine on their own with VICTORY_SHADER_OPT=59, and no later run hit it. Seen once; not isolated.

A side effect worth knowing: after one such crash, every later launch crashed about 20 s in, before the menus. early-pipelines.txt (1,571 entries here) lists the pipeline that killed the run, since a pipeline is noted as used before it is made, and the next start builds it at once. From reading the code (not tested in a run): VICTORY_SKIP_PIPELINES is only checked on the draw path, so the early start would build a skipped shader too. Deleting that file, or running with VICTORY_SHADER_OPT=59, gets past it.

Smaller things:

  • A driver crash inside pipeline creation does not say which pipeline it was. The pipeline library already tracks the calls running (the device-removed report prints them); printing the same list in the crash report would name the shader directly.
  • With Windows' default page file (2 GB here, system-managed) run 1 was down to 1 GB left to commit at 19 GB private. Every later run used a fixed 32 GB page file.
  • #39 on RDNA4: the start-up animation and the boot screens jumped back and forth in runs 1 and 3 (also at 30 fps); with VICTORY_TEXTURE_GUARD=0 from run 4 on they played smoothly.

Speed switches (runs 5-7 all have run 4's two switches as well; the opening cutscene was skipped in every run from 4 on). "Settled" is the median over 5 s samples with 4,500-7,500 draws/frame and few draws dropped:

run added switches in the world settled ms/frame wait for the card result
4 none 14 min 369 (best 312) 160 ms clean
5 VICTORY_RELAY=2 11 min 171 (best 151) 15 ms clean
6 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 under 1 min – – device removed, 0x887A0006 "after 9 submissions sent ahead (VICTORY_LATE_WAIT=1) of 67 lists", no pipeline being made, no DRED
7 run 6's + VICTORY_D3D12_DRED=1 10 min 220 (best 177) 58 ms no removal; black bars and surfaces flickering in and out
  • VICTORY_RELAY=2 is the clear win here: 2.2 times the frame rate of run 4, no device removal in 11 min (unlike #60's RX 7800 XT) and none of #89's missing skin or overlapping subtitles.
  • The LATE_WAIT group removed the device in one run of two, the same shape as #60. The run that survived had DRED on, so I can't tell chance from timing.
  • Only run 7 logged a wait for a memory value was not met at a present (3 times) and a queue still held a submission at a present: its fence was not reached (once), and only run 7 showed the flickering black bars. That looks like frames presented before work sent ahead had landed.
  • Runs 5 and 7 ended at 28.6 and 28.3 GB private against run 4's 24.9 GB. I also went further into the game in both.

Picture (described, no captures): cutscenes and gameplay are lit and textured where the sun reaches. In runs 4 and 5 surfaces out of direct sun were dark and nearly colourless (clothes that are orange at a window were grey in a dark room), which fits the missing bounce light the README describes; in run 7 the first gameplay room's interior was drawn and had colour in shadow, where run 4 had not drawn it (the README lists that room as intermittent, so I can't put it down to the switches). In every run: eyes glow white, some characters are missing their upper body, dark surfaces and distant characters have a speckled bright pattern, and there are bright blocky patches near the frame edge. One interior in run 5 was washed out and over-bright with characters glowing white.

Not tested: other drivers, a release build, the LATE_WAIT group's switches one at a time.

AI-assisted (Claude Code Fable 5.2): it read the logs and wrote the test loops and this comment; the runs were on the machine above. No game data here.

**@⁠thefafu** on GitHub · 2026-11-24 22:27 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7146245179) · edited 2026-11-24 23:12 UTC Same crash on an RX 9060 XT. This confirms @⁠Arvi23's finding above from a second card, measured separately: it is clean-up pass 4 (`VICTORY_SHADER_OPT` bit 4). With that pass off the title runs here without any skip list. (Edited to add the speed-switch runs at the end.) **Setup:** RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010, Ryzen 7 7800X3D, 32 GB RAM, Windows 11 26300. Fork at `4e17478`, unmodified, `--profile diag --features diagnostics`, Rust 1.98.1, Series X profile, own 1.0.2.1 copy. **Offline, one process per shader** (`VICTORY_TRANSLATE_ONLY=<hash> victory translate <pack> --pipelines --list --jobs 1`), on `072f5fe96efd27e1` (from #3's list), `a1266cc7391ae0d6` and `a73284b60aa303ed`: | `VICTORY_SHADER_OPT` | passes | result, all three shaders | |---|---|---| | unset | all | crash, `amdxc64.dll+0x861b9f` | | `0` | none | pipeline created | | `1`, `2`, `8`, `16`, `32` | one pass each | pipeline created | | `4` | "one instruction for one value" alone | crash | | `59` | all but 4 | pipeline created | | `31`, `47`, `55`, `61`, `62` | every set that has 4 | crash | No exceptions in 39 runs: the driver's compiler crashes exactly when bit 4 is on. A control shader (`970c4fbb3b017c0e`) and 12 other `CS_RaytracingResolve` variants that were being built at the crash build fine with every pass on. **In the game:** | run | switches | result | |---|---|---| | 1 | none, cold cache | `0xc0000005` at `amdxc64.dll+0x861b9f` after 4 min, 25 s into the first world frames | | 2 | none | same crash 21 s after launch (see the side effect below) | | 3 | `VICTORY_SHADER_OPT=59`, cold cache | start-up passes, the three shaders get host pipelines; a different driver crash after 2.5 min, `amdxc64.dll+0x3391b32` (read `0xffffffffffffffff`), also under pipeline creation | | 4 | `VICTORY_SHADER_OPT=59 VICTORY_TEXTURE_GUARD=0` | 19 min (14 in the world), no crash, no device removal; I closed it | Run 4 in the world: 1.0-2.7 fps while pipelines were being made (about 8 min). With none left to make, 4.1-4.6 fps in a light scene (about 2,570 draws/frame) and 2.7-2.9 fps in a heavy one (5,800-7,500 draws/frame). 24.9 GB private. Over runs 3 and 4, 14 of #3's 41 shaders were asked for and all 14 got host pipelines; the other 27 never came up. `fc5e66f8f873d3bb`, `39f0e9aeb156a61c` and `eeed82b877b44b5f` also got host pipelines and ran with no hang or fault, so on this card `VICTORY_SKIP_PIPELINES` was not needed at all. The run-3 crash did not come back: the 7 compute shaders and 1 pixel shader that had been translated but not made at that moment each build fine on their own with `VICTORY_SHADER_OPT=59`, and no later run hit it. Seen once; not isolated. **A side effect worth knowing:** after one such crash, every later launch crashed about 20 s in, before the menus. `early-pipelines.txt` (1,571 entries here) lists the pipeline that killed the run, since a pipeline is noted as used before it is made, and the next start builds it at once. From reading the code (not tested in a run): `VICTORY_SKIP_PIPELINES` is only checked on the draw path, so the early start would build a skipped shader too. Deleting that file, or running with `VICTORY_SHADER_OPT=59`, gets past it. **Smaller things:** - A driver crash inside pipeline creation does not say which pipeline it was. The pipeline library already tracks the calls running (the device-removed report prints them); printing the same list in the crash report would name the shader directly. - With Windows' default page file (2 GB here, system-managed) run 1 was down to 1 GB left to commit at 19 GB private. Every later run used a fixed 32 GB page file. - #39 on RDNA4: the start-up animation and the boot screens jumped back and forth in runs 1 and 3 (also at 30 fps); with `VICTORY_TEXTURE_GUARD=0` from run 4 on they played smoothly. **Speed switches** (runs 5-7 all have run 4's two switches as well; the opening cutscene was skipped in every run from 4 on). "Settled" is the median over 5 s samples with 4,500-7,500 draws/frame and few draws dropped: | run | added switches | in the world | settled ms/frame | wait for the card | result | |---|---|---|---|---|---| | 4 | none | 14 min | 369 (best 312) | 160 ms | clean | | 5 | `VICTORY_RELAY=2` | 11 min | 171 (best 151) | 15 ms | clean | | 6 | `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` | under 1 min | – | – | device removed, `0x887A0006` "after 9 submissions sent ahead (VICTORY_LATE_WAIT=1) of 67 lists", no pipeline being made, no DRED | | 7 | run 6's + `VICTORY_D3D12_DRED=1` | 10 min | 220 (best 177) | 58 ms | no removal; black bars and surfaces flickering in and out | - `VICTORY_RELAY=2` is the clear win here: 2.2 times the frame rate of run 4, no device removal in 11 min (unlike #60's RX 7800 XT) and none of #89's missing skin or overlapping subtitles. - The `LATE_WAIT` group removed the device in one run of two, the same shape as #60. The run that survived had DRED on, so I can't tell chance from timing. - Only run 7 logged `a wait for a memory value was not met at a present` (3 times) and `a queue still held a submission at a present: its fence was not reached` (once), and only run 7 showed the flickering black bars. That looks like frames presented before work sent ahead had landed. - Runs 5 and 7 ended at 28.6 and 28.3 GB private against run 4's 24.9 GB. I also went further into the game in both. **Picture** (described, no captures): cutscenes and gameplay are lit and textured where the sun reaches. In runs 4 and 5 surfaces out of direct sun were dark and nearly colourless (clothes that are orange at a window were grey in a dark room), which fits the missing bounce light the README describes; in run 7 the first gameplay room's interior was drawn and had colour in shadow, where run 4 had not drawn it (the README lists that room as intermittent, so I can't put it down to the switches). In every run: eyes glow white, some characters are missing their upper body, dark surfaces and distant characters have a speckled bright pattern, and there are bright blocky patches near the frame edge. One interior in run 5 was washed out and over-bright with characters glowing white. Not tested: other drivers, a release build, the `LATE_WAIT` group's switches one at a time. AI-assisted (Claude Code Fable 5.2): it read the logs and wrote the test loops and this comment; the runs were on the machine above. No game data here.
Author
Owner

@⁠Arvi23 on GitHub · 2026-11-24 23:14 UTC · original

Update: the patch above fixes 66 of the 70 crashing programs from #145; the last 2 pass-4 crashes are an AMD compiler bug on one ordinary integer merge.

Each of the 68 pass-4 crashers from @⁠hashdev512's list on #145 (all but c1eee35dbc50a9ef and f16876929fa64f9f, which crash with every pass off), one process per program, victory translate --pipelines --jobs 1, fork 2119b0e + #58 + upstream PR #175 + the patch above, every clean-up pass on:

result programs
pipeline built 66
driver crash (amdxc64.dll+0x861b9f) 2: a567b9ef845fb680, 878933b499cfa14d

The 2 left:

  • They build with pass 4 off (VICTORY_SHADER_OPT=59).
  • They still crash with every dx.op call kept block-local, and with REUSE limited to one block for everything. So it is not handle sharing.
  • By kind of merged value: only integer binary ops crash them (bin split into int / float: int crashes both, float builds both; cast, cmp, select, extract, call, gep, load each build).
  • Capping the number of integer merges on a567b9ef845fb680 (a local counter, not for a PR): the first 39 merges build, the 40th crashes. That merge is an ordinary lshr i32 %17, 14 reusing an identical earlier one (merge 39 is the same kind of shift, of another value). Nothing about it is wrong, so this looks like an AMD Windows driver bug that this program's shape trips. RADV builds them (@⁠EdouardSence above).

So: the handle patch is worth taking for the 66 (most of the world's programs on AMD). For the 2, a narrow workaround (pass 4 off for those programs, or for integer merges in them) is all I can offer without the full module. The prologue doesn't use them: it plays on this RX 9070 XT with the patch.

AI use: Claude Code (Claude Opus 5.5) ran the per-program sweep and the bisection, and wrote this.

**@⁠Arvi23** on GitHub · 2026-11-24 23:14 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7147169431) **Update: the patch above fixes 66 of the 70 crashing programs from #145; the last 2 pass-4 crashes are an AMD compiler bug on one ordinary integer merge.** Each of the 68 pass-4 crashers from @⁠hashdev512's list on #145 (all but `c1eee35dbc50a9ef` and `f16876929fa64f9f`, which crash with every pass off), one process per program, `victory translate --pipelines --jobs 1`, fork `2119b0e` + #58 + upstream PR #175 + the patch above, every clean-up pass on: | result | programs | |---|---| | pipeline built | **66** | | driver crash (`amdxc64.dll+0x861b9f`) | **2**: `a567b9ef845fb680`, `878933b499cfa14d` | The 2 left: - They build with pass 4 off (`VICTORY_SHADER_OPT=59`). - They still crash with every dx.op call kept block-local, and with `REUSE` limited to one block for everything. So it is not handle sharing. - By kind of merged value: only **integer binary ops** crash them (`bin` split into int / float: int crashes both, float builds both; cast, cmp, select, extract, call, gep, load each build). - Capping the number of integer merges on `a567b9ef845fb680` (a local counter, not for a PR): the first 39 merges build, **the 40th crashes**. That merge is an ordinary `lshr i32 %17, 14` reusing an identical earlier one (merge 39 is the same kind of shift, of another value). Nothing about it is wrong, so this looks like an AMD Windows driver bug that this program's shape trips. RADV builds them (@⁠EdouardSence above). So: the handle patch is worth taking for the 66 (most of the world's programs on AMD). For the 2, a narrow workaround (pass 4 off for those programs, or for integer merges in them) is all I can offer without the full module. The prologue doesn't use them: it plays on this RX 9070 XT with the patch. AI use: Claude Code (Claude Opus 5.5) ran the per-program sweep and the bisection, and wrote this.
Author
Owner

@⁠thefafu on GitHub · 2026-11-24 23:21 UTC · original

@⁠Arvi23 the same four on a second RDNA4 card, unpatched fork at 4e17478, one process per program (VICTORY_TRANSLATE_ONLY=<hash> victory translate <pack> --pipelines --list --jobs 1), RX 9060 XT 16 GB, driver 32.0.32029.2010, Windows 11 26300, diag build:

program all passes VICTORY_SHADER_OPT=59 VICTORY_SHADER_OPT=0
a567b9ef845fb680 crash pipeline created pipeline created
878933b499cfa14d crash pipeline created pipeline created
c1eee35dbc50a9ef crash crash crash
f16876929fa64f9f crash crash crash

All 8 crashes are 0xc0000005 at amdxc64.dll+0x861b9f (driver file version 32.0.32029.2010, from the Windows application log), the same offset as the pass-4 crashes. So your split holds on this card and driver too: two need pass 4, two crash with every pass off, and the two that need no pass still land on the same instruction in the driver.

None of the four was asked for in any of my seven game runs (boot through the prologue and some way past it), which matches your note that the prologue does not use them.

Not tested: your patch. These runs are the fork as it is.

AI-assisted (Claude Code): it wrote the loop and read the results; the runs were on the machine above. No game data here.

**@⁠thefafu** on GitHub · 2026-11-24 23:21 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7147308224) @⁠Arvi23 the same four on a second RDNA4 card, unpatched fork at `4e17478`, one process per program (`VICTORY_TRANSLATE_ONLY=<hash> victory translate <pack> --pipelines --list --jobs 1`), RX 9060 XT 16 GB, driver 32.0.32029.2010, Windows 11 26300, diag build: | program | all passes | `VICTORY_SHADER_OPT=59` | `VICTORY_SHADER_OPT=0` | |---|---|---|---| | `a567b9ef845fb680` | crash | pipeline created | pipeline created | | `878933b499cfa14d` | crash | pipeline created | pipeline created | | `c1eee35dbc50a9ef` | crash | crash | crash | | `f16876929fa64f9f` | crash | crash | crash | All 8 crashes are `0xc0000005` at `amdxc64.dll+0x861b9f` (driver file version 32.0.32029.2010, from the Windows application log), the same offset as the pass-4 crashes. So your split holds on this card and driver too: two need pass 4, two crash with every pass off, and the two that need no pass still land on the same instruction in the driver. None of the four was asked for in any of my seven game runs (boot through the prologue and some way past it), which matches your note that the prologue does not use them. Not tested: your patch. These runs are the fork as it is. AI-assisted (Claude Code): it wrote the loop and read the results; the runs were on the machine above. No game data here.
Author
Owner

@⁠Arvi23 on GitHub · 2026-11-25 01:10 UTC · original

Update: with the patch above, three runs on this RX 9070 XT reach the prologue with no compiler crash. With #51 and #203 on top, nothing is dropped for translation or refused by the driver.

Setup: RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 5800X3D, 32 GB, Windows 10 IoT Enterprise LTSC 21H2 (19044), release builds, Series X profile, no VICTORY_* switches, every clean-up pass on.

Windows 10 needs the Agility SDK runtime (#420; without it every root signature is refused, flags c01/c00, and the title crashes about 2 s in). All runs below have it.

run tree untranslated refused pipelines compiler crash notes
1 31714de + Agility SDK + this patch + #58 8 1 mesh pipeline none prologue plays; characters' torsos black
2 run 1 + #51 + #203 0 0 none the main character's jacket and torso are drawn
3 a803c87 + #420 + this patch + #58 + #51 + #203 + #411 0 0 none ~380 ms/frame (the card ~48 % busy by the log's own count)
  • The 8 in run 1 are all ones #203 fixes: six PS_PuddleDetect pixel programs ("a descriptor read only as data": 2fd01fca16993001, 6b6db9f1a526daeb, abc6a80d46edc294, 8660e9822ebe4b62, c8df7216c69cecbd, 7d0f14ce44746d7e), b22a16a178976e1b and ceb5eb68cd99cb07. The refused mesh pipeline is f5e50eb2108c425b + ce3f0432a08f1d35, which #51 fixes.
  • Which of #51 and #203 brought the torso back isn't separated: one run each, and the README notes the first room varies between launches.
  • cargo test --workspace on run 3's tree: 509 passed, 0 failed. #420's second commit gives the shader tests the Agility runtime, so the 23 card tests stop failing with "no SM 6.6 device" on Windows 10, and #411 fixes the loader's unwind test there.

Next to this patch there are #195 (no REUSE for any compute program) and #317 (annotateHandle kept within its block, reporting 1,000 of 1,000 CS_RaytracingResolve programs built on an RX 9070). This patch also keeps createHandle* block-local. I haven't compared the three on the 68 pass-4 programs from #145.

Not tested: NVIDIA, other AMD generations, the 2 programs that need pass 4 off (a567b9ef845fb680, 878933b499cfa14d) and the 2 that crash with every pass off (c1eee35dbc50a9ef, f16876929fa64f9f), none of which came up in these runs.

No game data: hashes, counts and timings only.

AI use: Claude Code (Claude Opus 5.5) assembled the tree, read the logs and wrote this; the runs are on the machine above.

**@⁠Arvi23** on GitHub · 2026-11-25 01:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7149282296) **Update: with the patch above, three runs on this RX 9070 XT reach the prologue with no compiler crash. With #51 and #203 on top, nothing is dropped for translation or refused by the driver.** Setup: RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 5800X3D, 32 GB, Windows 10 IoT Enterprise LTSC 21H2 (19044), release builds, Series X profile, no `VICTORY_*` switches, every clean-up pass on. Windows 10 needs the Agility SDK runtime (#420; without it every root signature is refused, `flags c01`/`c00`, and the title crashes about 2 s in). All runs below have it. | run | tree | untranslated | refused pipelines | compiler crash | notes | |---|---|---|---|---|---| | 1 | `31714de` + Agility SDK + this patch + #58 | 8 | 1 mesh pipeline | none | prologue plays; characters' torsos black | | 2 | run 1 + #51 + #203 | 0 | 0 | none | the main character's jacket and torso are drawn | | 3 | `a803c87` + #420 + this patch + #58 + #51 + #203 + #411 | 0 | 0 | none | ~380 ms/frame (the card ~48 % busy by the log's own count) | - The 8 in run 1 are all ones #203 fixes: six `PS_PuddleDetect` pixel programs ("a descriptor read only as data": `2fd01fca16993001`, `6b6db9f1a526daeb`, `abc6a80d46edc294`, `8660e9822ebe4b62`, `c8df7216c69cecbd`, `7d0f14ce44746d7e`), `b22a16a178976e1b` and `ceb5eb68cd99cb07`. The refused mesh pipeline is `f5e50eb2108c425b` + `ce3f0432a08f1d35`, which #51 fixes. - Which of #51 and #203 brought the torso back isn't separated: one run each, and the README notes the first room varies between launches. - `cargo test --workspace` on run 3's tree: 509 passed, 0 failed. #420's second commit gives the shader tests the Agility runtime, so the 23 card tests stop failing with "no SM 6.6 device" on Windows 10, and #411 fixes the loader's unwind test there. Next to this patch there are #195 (no `REUSE` for any compute program) and #317 (`annotateHandle` kept within its block, reporting 1,000 of 1,000 `CS_RaytracingResolve` programs built on an RX 9070). This patch also keeps `createHandle*` block-local. I haven't compared the three on the 68 pass-4 programs from #145. Not tested: NVIDIA, other AMD generations, the 2 programs that need pass 4 off (`a567b9ef845fb680`, `878933b499cfa14d`) and the 2 that crash with every pass off (`c1eee35dbc50a9ef`, `f16876929fa64f9f`), none of which came up in these runs. No game data: hashes, counts and timings only. AI use: Claude Code (Claude Opus 5.5) assembled the tree, read the logs and wrote this; the runs are on the machine above.
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 21:17 UTC · original

RDNA3 data for the programs named here: on a Radeon RX 7900 XTX with Adrenalin 32.0.32015.7029 (the driver build of #422), Windows 10, fxceless main d510ee4 + #402, every pass on, victory translate --validate --pipelines validated and created all 24 of them, and the rest of the title's 25,636 pipelines, without a crash in amdxc64.dll. Details and the table for all five reports are in #422 (#422).

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 21:17 UTC · [original](https://github.com/fxceless/victory-fork/issues/120#issuecomment-7174886867) RDNA3 data for the programs named here: on a Radeon RX 7900 XTX with Adrenalin 32.0.32015.7029 (the driver build of #422), Windows 10, fxceless `main` `d510ee4` + #402, every pass on, `victory translate --validate --pipelines` validated and created all 24 of them, and the rest of the title's 25,636 pipelines, without a crash in `amdxc64.dll`. Details and the table for all five reports are in #422 (https://git.gtahub.st/github/fxceless--victory-fork/issues/422).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#120
No description provided.