You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
amd-dev: RX 6800 reaches the world, then 0xc0000005 at game+0x501eb50 in sparse memory #2582
Game and package version
GTA VI (Xbox Series X|S package), 1.0.2.1
What happens
On the amd-dev branch the title now reaches the world on an RX 6800: the offline precompile (xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only, XCL_PIPELINE_THREADS=11) finished in 488 s (565 pipelines made, 0 refused, 290 held back by XCL_RT_GATE=hold), and xcl run gets to the title's Game State: Game Running in about 2 minutes at 18-27 fps with no late pipelines.
About 2 minutes later (frame ~2300) it crashes, the same way in three runs:
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x501eb50 (write at address 0x46eb25920)
rcx=0x2e000 rdi=0x46eb25920 rbx=0xffffffff
+0x501eb50 is the first store of a loop that clears 128 entries of 0x5c0 bytes (0x2e000 in all, the rcx above). It reads the table's address from a global, so the title was given that memory and its pages are not mapped when it first writes them.
The address is in the sparse windows, just above where the outside-UMA backing from 2af0155 goes (highest logged: sparse UMA 0x46e8c3400).
Runs 13 and 14 at 04e0b95 wrote to 0x46eb25920. Run 15 at aa5dbf7 (without 04e0b95) wrote to 0x46eb45920, so 04e0b95 is not the cause.
With XCL_OUTSIDE_BUFFERS=0 (run 16) it did not get there: GPU queue waits timed out (fence stuck at 0), then the device was removed (0x887a0006) around frame 1200. That did not isolate it.
Env for every run: XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1, no other XCL_* variables.
XCL version amd-dev at 04e0b95 (runs 13, 14, 16) and aa5dbf7 (run 15), release build
GPU and driver version
AMD Radeon RX 6800, 32.0.21045.29003; Ryzen 5 5600X3D, 64 GB
Windows version
Windows 11 Pro 26200
report.json and xcl.log
I have the full logs of all four runs and can attach them.
Console output
See above.
Tested and written up with Claude Code (Claude Opus 5.5). I checked it before posting.
Follow-up: xcl's sparse allocator never handed out the range the title writes to.
With a local diagnostic (not part of the branch) that logs every take, release, commit and decommit in the gpu::uma sparse allocator and in d3d12x::sparse over 0x46ea00000-0x46ec00000, run 18 crashed at 0x46eb15920 with nothing logged for that range. The outside-UMA backing tops out below it (0x46e879000, Recompiler: f16 add / sub / fma rounded once under a directed mode (#… #128).
XCL_TRACE_MEM (run 17) shows no title allocation of 64 KiB or more covering it either; the title's sparse graphics allocations end around 0x469a….
Across five runs the crash address varies (0x46ead9920, 0x46eb15920, 0x46eb25920 twice, 0x46eb45920) and the frame count varies too (about 1 200 to 5 100), always at the same entry offset (…920). So the title computes a base pointer into sparse VA that nothing allocated. The loop loads that base from a global: +0x501eb33 add rdi, [rip+0x5afbb8e].
Same hardware and env as above, amd-dev at 04e0b95. Tested and written up with Claude Code (Claude Opus 5.5); checked by @bobosneefdev before posting.
1,809 presents; 48 graphics PSO builds, 424 s total; one compute waited 392 s at the gate; no crash
bf02341f, warm .plib
600 s
1,964 presents; still stops after the key-art loading screen
bf02341f, XCL_HUGE_PSO_CONCURRENCY=4
600 s
device removed 0x887a0006 at 184 s
6a0bb5b4 (with e4b66e57)
600 s
1,775 presents, last frame 1700; exit 0; no crash
On 6a0bb5b4 the 0xc0000005 at game+0x501eb50 did not reproduce, but the title never
reached Game State: Game Running, so the fix is not exercised up to that point. The title
stops presenting at ~179 s and stays idle (0 presents/submits/draws/dispatches). On bf02341f, a thread dump at 130/140/160 s showed only xcl-pso-0 active in amdxc64.dll;
no queue.Wait timeout and no device removal.
From 453 s on 6a0bb5b4 the log repeats unified memory is full; at 564 s it reports coherent 4095/4095 MB, 47757 draws with translated pipelines (65536 skipped) and 628 blocks held for 344 allocators. The full coherent window is visible after the stall,
so it may be a consequence as much as a cause.
Not tested: 64 GB RAM, other GPUs, debug build.
AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the results and crash lines were checked against the run logs.
XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, A pressed through the menus.
Six runs, all removed with 0x887a0006 at world load (416–510 s), after the loading-art frames:
run
difference
removed at
b
XCL_GPU_VIEW_BUFFERS=1
509 s
c
+ XCL_GPU_CULPRIT=1
509.9 s
d
+ XCL_AMBIENT=0
416.8 s
e
+ XCL_INDIRECT_PRELUDE=0 (instead of the ambient switch)
473 s
f
+ XCL_DRED=1
460 s
g
DRED, XCL_GPU_VIEW_BUFFERS=0
432 s
XCL_GPU_CULPRIT=1: 0 lists with a dispatch started and not done, both at the removal and in the 6-s reports before it. I made stop_if_device_removed call culprit::on_watchdog_release() locally for this.
DRED (f, g):
page fault at GPU VA 0x178391000; allocations there: []; recently freed: [], then 0x13d8d8000, likewise with nothing. Neither address is in a UMA window.
Every list DRED reports is at 0 of N operations done (op 46, BEGIN_COMMAND_LIST): queued behind the fault, not the one that made it.
The pipelines bound in those lists differ between the two runs; only cs d79af1d04922a49b is in both.
Ruled out:
the ambient stand-in passes (d hangs without them);
the indirect prelude (e hangs with it inline);
the GPU-view buffers (g hangs with them off).
The removal comes about 0.1 s after an indirect prelude batch line in b–d, as the title resumes submitting after waiting on compute builds.
Test suite layer, Linux/Wine on RDNA3: on current amd-dev the suite itself cannot finish. Same branch, no game needed.
We run xcl's own test suite under Wine on an RX 7900 XT, no title involved. On amd-devb5c0275f the non-gpu suite aborts in two consecutive full runs (test host exit status 5), both around list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit. Solo, that test fails deterministically, 5/5, with:
dispatch 17 waited for the build (9.9706821s)
at list_x.rs:8253. The same test, same machine, same env, same day, solo with --exact:
tree
result
mainb49be183
pass 2/2, finished in 0.47 s
nvidia-devaf2cecc4
pass 2/2, finished in 0.48 s
amd-devb5c0275f
fail 5/5, waited ~10.1 s then panicked; host aborts in full runs
So the pipeline the test holds open mid-build never lands on this branch and eats the whole wait budget, while main and nvidia-dev land it under half a second.
This is a different subsystem from the sparse VA writes above (here it is PSO build completion at submit, and the non-gpu suite does no real GPU submissions), so we are not claiming it is the same bug. We are flagging that amd-dev is broken at the test level too, on Linux/Wine, right now: the whole non-gpu suite runs in about 15 s, so it is a cheap smoke gate before committing to 10-minute world-load runs. Related: our #2688 comment covers amd-dev aborting the suite and three branch-new nvidia-dev reds in this same lane.
Tested: Linux, Arch, kernel 7.2.15, RX 7900 XT 20 GB (Navi 31), Mesa 26.2.5 RADV, wine-11.0 (Proton), standard lane env (d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b overrides, official DXC kit, VKD3D_CONFIG=ignore_shared_fence). Solo runs above: 2 per branch fresh, amd-dev 5 total including earlier reproductions.
Not tested: Windows native, and whether this test also fails for Windows amd-dev lanes. If someone with a Windows amd-dev lane runs: cargo test -p xcl --lib -- hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit --exact
that one line settles whether this is Wine-only or branch-wide.
AI use: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.
A related crash on RDNA4. It's in the same class: the title writes into VA that XCL never committed. The address follows the end of the coherent window(s) wherever they are.
Setup: RX 9070 XT, i7-9700K, 32 GB, Windows 10 22H2 with the Agility SDK v620 through XCL_D3D12_DIR, amd-dev b5c0275 (release). Base env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=360000 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3. No offline precompile on this build. uma_coherent.txt holds 4,804,771,840 (4,582 MB).
The crash: the intro and menu are fine. In the world loading screen, at 112–134 s: unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at …), rbx=0x800, rdi=0x1800
on the stack: xcl.exe+0x6bbd00, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0, game+0x56e1962
That's a memcpy the title starts. It's not +0x501eb50, but the pattern looks the same.
So making the coherent space larger doesn't help. The write moves with the layout and always lands a few MB to ~2.2 GB past the end of the last coherent window. It looks like the base pointer you described above: the title computes an address relative to its memory, and nothing allocated it.
One more note: with the default layout, the title's recorded coherent need (4,582 MB) is larger than the single 4,095 MB coherent window that the 4-window layout allows. I don't know if that's related, but it's the only size mismatch I can see.
Tested and written up with Claude (Claude Opus 5.5). I can rerun with XCL_TRACE_MEM or any other switch that would help.
Edit: it's still there on amd-dev c32c91a (the arena, UMA-full fallback and sparse commits from today), after a fresh --precompile --only cs --pipelines --used-only (573 made, 0 refused). Default layout, same env. Crash at 107 s, write at 0x84fa3a940, rdi=0x2800. Same game stack, the xcl frame is now xcl.exe+0x55bfaf.
Found it: my crash above is XG CopyFromSubresource, not sparse memory. It's the argument shift from #662, which amd-dev doesn't handle yet.
Symbolized with the build's own xcl.pdb (amd-dev c32c91a), the frame xcl.exe+0x55bfaf is xcl::hle::xg::copy_from (xg.rs:731), in its row copy_nonoverlapping.
The title passes one slot more than copy_from(p, dst, plane, sub, src, row_pitch, slice_pitch) takes. Logged with the fix below: (dst 0x73321ec50, plane 0, sub 0, 0x700000000, 0xc45999000, 0x800, 0x40000) for 128×128 × 16 B, and (…, 0x700000000, 0xc46147000, 0x100, 0x2000) for 32×32 × 8 B. So amd-dev uses 0x700000000 as src, 0xc45999000 as the row pitch and so on. With 128 rows, the row writes land GBs past dst, which is the "just past the coherent window" address I saw in every layout.
The slots after sub are read as (a5, a6, a7, a8). The first layout is used when a6 can be a row pitch, otherwise (a6, a7, a8).
The destination is checked with VirtualQuery or in_committed_window before any write. If it isn't writable, nothing is written and a warning is logged.
The lazy::ensure guards are held across the reads and writes.
With that, the memcpy crash is gone. The two calls above copy from "the later slots" at 110 s, and the title keeps presenting.
The next wall on this machine is pipelines. At 122 s the graphics pipeline wait window (12,000 ms) is spent. ExecuteIndirect and Dispatch with pipelines that are still being built, or that have no translated console shader, get skipped. Then device removed 0x887a0006 at 147 s. I'm warming the graphics cache with more runs next.
I can open a PR with the xg.rs change against amd-dev if that helps.
Follow-up on the RX 9070 XT, amd-dev c32c91a plus the xg.rs change from my last comment. With the RT gate open, the next wall is ray-tracing compute pipelines over about 1.2 MB of DXIL: the AMD driver never finishes them.
With XCL_RT_GATE=hold (the default), 2 of 4 runs ended with device removed (0x887a0006) at 144–150 s. That was right after ExecuteIndirect/Dispatch with "no translated console shader" was skipped, which fits the held BVH traversal programs.
With XCL_RT_GATE=auto, there was no device removal in 3 of 5 runs. The title instead waits on BVH and image-only programs that are still being built.
xcl shaders … --precompile --only cs --pipelines --used-only with XCL_RT_GATE=0 built the held-back ones offline: 767 made, 0 refused, ~60 s each for the ~1.0–1.1 MB ones. Three records never finished. Each one stalled the driver compile for 9–27 minutes, until I closed the process:
95cc13288a27a96e (2,456,664 B DXIL)
02a31c25862c1c63 (1,272,048 B DXIL)
73dc0d51029621e8 (1,215,844 B DXIL)
With XCL_PIPELINE_MAX_KB=1150, the precompile finished and left 35 pipelines (42 MiB of DXIL) to the runtime.
The game run after that, with XCL_RT_GATE=auto, presented until 128 s, its furthest yet. It then waited on 84eee477d68b6fdf (1,306,064 B DXIL, "driver blob absent"), which hadn't finished after 230 s, until the 360 s timer. There was no crash and no device removal. Commit was 27 GB.
On this driver it looks like a size threshold. Every ray-tracing compute program from ~1.2 MB of DXIL up stalls, and everything at 1.1 MB and below builds in about 60 s. Is there a way to split these BVH programs, or to put them in the compact form (#2088 workstreams 2/3), so they get under that size? I'm happy to test it.
RX 9070 XT, amd-dev 71b8e6e plus the xg.rs change, XCL_RT_GATE=miss:
miss makes the RT programs small enough for the AMD driver. In the launch preparation, 95cc13288a27a96e logs 15017 KB of HLSL would compile unoptimised – direct DXIL instead (231 KB). With hold/auto the same record was 2,456,664 B and never finished. Others there came out at 1027, 1062 and 1256 KB.
The launch preparation translated all 26,503 records in about 2.9 h. The compute pipeline pass (4 workers) then stopped moving at 23,963 of 26,503 for 47 min, so I closed it. I couldn't see which record it was on.
A run with XCL_PREPARE=0 presented until 114 s. At 178 s the AMD driver itself crashed, while it was compiling a mesh-shader pipeline: unhandled exception 0xc0000005 in amdxc64.dll+0xe3d80a (read at address 0x4)
on the thread of driver compile start #283: MS PSO, 340328 B DXIL. A second MS PSO (329,648 B) had started 7 ms after it. Commit was 22 GB.
I'll run bf7c82e next (driver crash records + big compile gating) so the log names the pipeline, and post what it shows.
Follow-up on bf7c82e as promised. RX 9070 XT 16 GB, Windows 10 22H2 (19045), i7-9700K, 32 GB RAM. amd-dev bf7c82e plus the xg.rs CopyFromSubresource change (#662), release build. XCL_D3D12_DIR points at the Agility SDK, plus XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RT_GATE=miss XCL_PREPARE=0 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_PSO_WAIT_MS=360000. Warm cache from an earlier launch preparation with XCL_PIPELINE_MAX_KB=1150 (compute pass finished in 1347 s, 0 failed).
1. The amdxc64.dll crash is gone. The amdxc64.dll+0xe3d80a crash on MS PSO builds did not come back in any bf7c82e run, so the big-compile gating fixes it here.
2. The wall with a warm cache, 900 s run. The title presented until 110 s. Compile #124: compute PSO, 1306064 B DXIL, record 84eee477d68b6fdf started at 157 s and had not finished when the 900 s timer stopped the run. There was no crash and no device removal.
3. Same run plus XCL_PSO_MAX_KB=1150. XCL refused 22 compute records at 114–116 s (over XCL_PSO_MAX_KB and without a saved blob). They are all 1.17–1.36 MB of DXIL, even with XCL_RT_GATE=miss:
The title got past the wait and kept rendering (25,301 draws with translated pipelines, 7,988 dispatches with 51 skipped). The last frame was at 112 s. At 133.5 s the device was removed (0x887a0006). The flight record shows the title queue at done 6 of 7, with no movement for 7.8 s, and the sparse readback queue at done 1230 of 1233. My guess is that the skipped dispatches leave their outputs unwritten and a later pass hangs on them, but I haven't confirmed that.
So on this driver, miss gets the biggest record (95cc…) down to 231 KB, but this family of 22 stays above ~1.2 MB. Every one I have tried at that size never finishes in the driver compiler. Waiting stalls the title, and skipping hangs the GPU. A way to make these records smaller, or a safe "no-op" output for a skipped dispatch, would let me test past this point. I'm happy to run either.
Tested and written up with Claude Code (Claude Opus 5.5). The numbers are from the run logs.
RDNA3 data point: RX 7600 XT 16 GB on amd-dev7c795f5e. The title reached the world in 3 of 10 runs, and no run stayed there.
Every run ended one of three ways, before the world or soon after reaching it:
run
ended after
how
Game State: Game Running in the title's crash report
peak local video memory
1
17.5 min
0x80000003 at game+0x3bf4
yes
11,318 MB
2
87 s
device removed 0x887a0006
–
7,625 MB
3
7.2 min
0x80000003 at game+0x63966f
yes
13,799 MB
4
285 s
device removed 0x887a0020 (Close → 0x887a0005 just before)
–
14,401 MB
5
226 s
0x887a0006
–
11,877 MB
6
109 s
0x887a0006
–
9,598 MB
7
278 s
0x887a0020, then 0x80000003 at game+0x2474606
yes
14,602 MB
8
140 s
0x887a0006
–
8,957 MB
9
114 s
0x887a0006
–
7,723 MB
10
186 s
0x887a0020
–
13,945 MB
"–" in the Game Running column means the title wrote no crash report, because XCL stopped it after the device removal.
0x887a0006 (5 runs): every time in the first 1.5–4 min, before the world, with local video memory between 7.6 and 11.9 GB.
0x887a0020 (3 runs): every time with local video memory at or near the budget, 13.9–14.6 GB of 14,464 MB.
The title's own breakpoint (runs 1 and 3): in the world, with the player placed and SRL fbk_stry000_FBK_STRY000_INTRO in Prestream. Its INSTANCE_LIST pool was at 42,632 / 45,000 (run 1) and 45,000 / 45,000 (run 3), and Game Physical at 2.21 of 2.31 GB both times. Run 7's report shows 33,145 / 45,000.
Before the world: 22–30 fps in the menus. In the world, about 1–2 fps, with about 1,800 draws per present.
No +0x501eb50 write: none of these runs ended with the sparse-memory crash in this issue's first post.
Tested
AMD Radeon RX 7600 XT 16 GB (RDNA3), driver 32.0.31041.1004, Ryzen 5 9600X, 15.1 GB RAM, page file 64 GB on NVMe (the first 7 runs also had a 4 GB one on a SATA SSD), Windows 11 Home 26200.9974, rustc 1.99.1.
amd-dev7c795f5e, release build (cargo build --release -p xcl) from a clean worktree, no local changes.
Before the runs: xcl shaders shaders.rpf --precompile --only cs --pipelines --used-only with XCL_RT_GATE=miss, with a used-pipelines.txt of 1,089 keys from earlier runs of main and of Recompiler: the compact form's larger tables on a 64-lane GPU with heap windows #2375 that did not reach the world. 2,261 pipelines made, 0 refused, 1,965 compute programs passed over, 11 min.
Every run: XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, the same DXIL cache, retail 1.0.2.1. Runs 5–10 also had XCL_PRESS_A_AT every 4 s from 6 s; runs 1–4 had no scripted presses.
Process memory peaked at 23–32 GB, against 15.1 GB of RAM.
Not tested
Whether runs 4 and 10 were in the world (run 10 had up to 14,065 draws in 2 s). Whether the picture of the world was right: I have no screen capture from inside it.
A run that came between runs 7 and 8 above (not in the table) froze Windows after about 10 min. Windows logged 234 disk 51 errors ("during a paging operation") on the SATA SSD that held the 4 GB page file, then the whole system stalled. Total memory (commit) never ran out, so a guard that watches only that does not catch this.
After removing that page file, runs 8–10 above showed no freeze and no disk errors.
The title's crash reporter also tries to upload a 30 MB minidump on each of its breakpoints. XCL_NETWORK=0 refused it (WinHttpConnect fails).
AI use
Claude Code (Claude Opus 5.5) built the branch, ran the precompile and the ten runs on this machine, and wrote this comment from their logs.
Follow-up to my RX 7600 XT comment above: 28 more runs on the same machine, same title and same amd-dev7c795f5e.
DRED puts most of the early 0x887a0006 hangs at XCL's indirect draw guard. With the guard's caps tightened, those resets went from 9 in 16 runs to 4 in 16. The runs that get past that now nearly all end in 0x887a0020 at 3–4 min.
1. Where 0x887a0006 hangs (XCL_DRED=1, runs 11–16)
Four of these six runs lost the device with 0x887a0006. DRED's partly finished list:
run
DRED
the operation not done
12
list on a title queue of type 0 (direct), 8 of 12 operations done, around: 0 15 0 >6 15 0
the Dispatch with xcl guard_draw_args bound; next bound: vs 511ad8fb83b419db ps 0250fd04c33aa079 (a decal pass)
the same: xcl guard_draw_args; next bound: vs ad15e1aa74265919 ps 7381166e806847c9 (a particle-effect pass)
16
169 of 194 operations done, the same list contents as run 15
the same as run 15
14
list 0x0 on XCL's gpu-awake queue, 1 of 2 done, around: 46 >6; DRED page fault at GPU VA 0x191200000; allocations there: []
an XCL dispatch, likely only in flight when the fault came
Draw sizes: I checked only the decal pair. The decal PS's main program is 160 bytes of RDNA2 code, and neither translation has a loop beyond fixed-count unrolled helpers. So for that pass the time is likely in how much it draws, not in the shaders.
The guard's caps: they zero a record only at ≥ 2^23 vertices per instance or > 2^26 in total.
My reading: arguments left over in a record are let through up to 67 M vertices, enough for a draw to run past the TDR timeout. This is not proven: DRED's done count can lag behind the GPU.
2. Tighter caps, as a test (local change, not a PR)
hle/d3d12x/bind.rs on 7c795f5e: the four guard shaders (GUARD_DRAW_ARGS_HLSL, GUARD_DRAW_ARGS_HEAP_HLSL, PRELUDE_DRAW_GUARD_HLSL, PRELUDE_DRAW_GUARD_HEAP_HLSL) and the two test constants:
Game State: Game Running in the title's crash report
7c795f5e as it is (runs 1–16)
16
9
5
2
3
with the tighter caps (runs 17–22, 29–38)
16
4
12
0
5
Runs 23–28 (tighter caps plus XCL_TEXTURE_LEVEL_PAGES=1) are left out above. They ended: 3 × 0x887a0006, 3 × 0x887a0020.
What else differed in the first row: runs 11–16 had XCL_DRED=1 and runs 14–16 also had XCL_COHERENT_MB=512. Runs 1–4 had no scripted presses. Runs 1–10 alone, with neither variable: 5 × 0x887a0006 in 10.
How sure this is: 16 runs a side. It points one way, but it isn't proof. The tighter caps could also zero a large legitimate draw: I didn't check the picture, and I didn't run the test suite on the change.
3. The 0x887a0020 that's left
How it starts: all 20 runs that ended in 0x887a0020 logged command list … Close → 0x887a0005 just before the removal. None of the 16 0x887a0006 runs did.
Memory at that moment (XCL's flight: line, all 20 runs):
local video memory: 13,698–14,559 MB of a 14,441–14,783 MB budget. In runs 4 and 7 it was over budget: 14479 of 14464 MB OVER and 14544 of 14441 MB OVER.
non-local: 5,811–6,486 MB of 6,787–6,795 MB.
What DRED shows (runs 11 and 13): no partly finished list. The page-fault line gives VA 0x0, as it does in most of the 0x887a0006 runs.
Owners in run 31, just before the removal:
video memory 14,393 of 14,779 MB: target pages 2,851, sparse tiles 3,414, arenas 270, committed textures 415, other 7,264;
non-local 6,006 of 6,792 MB: UMA window 4,095, other 1,910.
XCL_TEXTURE_LEVEL_PAGES=1 (runs 23–28): it worked as described: 26735 textures standing for 16478 MB have pages for 521 MB. Peak local video memory stayed the same, though: 13,840–14,267 MB in its runs that reached 0x887a0020, against 13,647–14,148 MB in runs 18–22.
XCL_COHERENT_MB=512 (runs 14–16): no result for this error, since all three ended earlier in 0x887a0006.
release builds, retail 1.0.2.1, the precompiled pipelines from my first comment.
Every run: XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, plus the variables named above. From run 5 on, XCL_PRESS_A_AT every 4 s from 6 s.
From run 8 on, the page file was only the 64 GB one on NVMe.
Not tested
The rendered picture with the tighter caps.
cargo test on the change.
Which draw record actually runs long: I didn't read the guarded arguments back.
XCL_COHERENT_MB=512 against 0x887a0020.
Any other GPU.
AI use
Claude Code (Claude Opus 5.5) ran the 28 runs on this machine, made the local change, and wrote this comment from the runs' logs.
@cindertheblue, I tried your recipe (precompile --precompile --only cs --pipelines --used-only plus XCL_RT_GATE=miss, XCL_PREPARE=0, XCL_NETWORK=0, XCL_ACTIVITY=1, scripted A press every 4 s from 6 s) on an RX 7800 XT 16 GB, driver 32.0.31035.1003, Windows 11 26200, unmodified amd-dev7c795f5e: 2 runs of 360 s each.
0 removals (0x887a0006 / 0x887a0020), 0 crashes. Peak local video memory 10.3 / 10.5 GB of a 13,343 MB budget; peak commit 27.5 / 27.3 GB.
Presenting in minutes 0–2 (up to 93 / 65 presents per 2 s), then about 1 present per minute while the 2 s profile shows 50–60 s of graphics pipeline waits per window and 3–5 driver compiles still going. I could not confirm that either run reached the world.
Details and the memory breakdown are in my #2996 comment. Aggregates only; one more data point that this recipe ends differently on a 7800 XT than on your 7600 XT (no removal in 2 runs, but a stall).
AI use: Gemini 4 Neon ran the setup and GPU runs; Claude Sonnet 5.5 analysed and wrote this.
Second follow-up from the RX 7600 XT: 8 more runs (39–46) with the tighter draw-guard caps from my last comment plus XCL_COHERENT_MB=512.
No run ended in 0x887a0020: 6 of 8 ran to my 30 min limit, against 12 of 16 runs with that error at 3–4 min with the default 4,095 MB window. The title most likely reaches the world in these runs, but what XCL presents there is black, with one frame of broken geometry.
1. How the runs ended (same build: 7c795f5e with the tighter caps, XCL_COHERENT_MB=512)
runs
0x887a0006
0x887a0020
stopped at my 30 min limit
stopped by my free-RAM guard
tighter caps, default window (runs 17–22, 29–38, from my last comment)
16
4
12
0
0
tighter caps, XCL_COHERENT_MB=512 (runs 39–46)
8
1 (run 39, at 163 s)
0
6 (runs 40–45)
1 (run 46, at 710 s)
No Close → 0x887a0005: none of runs 39–46 logged it. All 20 earlier 0x887a0020 runs logged it just before the removal.
Local video memory was over budget most of the time and the device stayed up: the peak was 15,213–15,625 MB of a 14,605–14,842 MB budget in runs 41–46, and 17,960 of 14,605 MB in run 40.
Non-local peaked at 2,848–3,471 MB of a 6,755–7,090 MB budget, against 5,811–6,486 of 6,787–6,795 MB at the earlier 0x887a0020 removals.
Coherent window use: the summary line read coherent 116/512 MB in runs 40, 45 and 46, against coherent 3998/4095 MB in run 31.
Frame rate: about 20–30 fps in the menus. After that, 0.8–4.8 fps (mostly about 2) to the end of each run, never back above 5.
Process memory: it peaked at 34–39 GB in runs 40–46. In run 46, free RAM stayed under 300 MB for 60 s and my guard stopped the title.
2. What the title shows in the world (XCL_FRAME_DUMP, runs 45 and 46)
Run 45 dumped every 600th frame and run 46 every 30th. Run 46's frames, with XCL's own N of 518400 samples not black count:
frames (run 46)
samples not black
what the frame shows
200–1370
517,959–518,400
not black (the frames from this stretch that I looked at in run 45: the publisher logo, then a loading screen)
1400
460,800
dark grey with black bars at the top and bottom
1490
517,736
nearly uniform dark grey
1640
442,431
broken geometry: wide grey gradient bands and one long thin triangle running from the left edge to the bottom right corner; at the left, a two-line prompt box whose second line ends in "camera"
1670, 1730
5,365 and 5,408
black except the same prompt box
1760–2510 (every dump to the end)
0
black
Run 45 shows the same picture: frame 1820 was black except the prompt box, and frames 2420–4820 were black.
The title kept running underneath. The person at the machine heard the game's audio while the screen was black. The prompt box shows the title drawing its UI.
Draws were not being dropped: run 44's log has 8388608 draws with translated pipelines (11640 skipped …). So the black is not a case of the draws being skipped.
Window screenshots: every PrintWindow capture of the title's window I took was black, so the evidence here is the frame dumps.
Tested
The same machine and setup as in my earlier comments:
AMD Radeon RX 7600 XT 16 GB, driver 32.0.31041.1004, Ryzen 5 9600X, 15.1 GB RAM, page file 64 GB on NVMe, Windows 11 Home 26200.9974, rustc 1.99.1;
release build of amd-dev7c795f5e with the tighter caps (local, uncommitted), retail 1.0.2.1, the same precompiled pipelines.
Every run: XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_COHERENT_MB=512, and XCL_PRESS_A_AT every 4 s from 6 s. Runs 45 and 46 also had XCL_FRAME_DUMP=600 and =30.
The log line UMA: 3 sparse VRAM window(s) (12 GiB VA) + 1 coherent window(s) (512 MB) confirms the setting took effect in each run.
Not tested
XCL_COHERENT_MB=512 without the tighter caps, and on amd-dev as it is.
Whether the black world also happens with the default window: those runs ended at 3–4 min and had no frame dumps.
Which pass draws the broken geometry or leaves the frame black: I didn't capture a frame with PIX or RenderDoc.
Whether the prompt box means the player is in control: only that frame and the audio point to the world, since the title wrote no crash report for runs it didn't end itself.
Any other GPU.
AI use
Claude Code (Claude Opus 5.5) ran runs 39–46 on this machine and wrote this comment from their logs and frame dumps. The person at the machine reported the audio.
Correction to my last comment: the black world came from XCL_COHERENT_MB=512 itself. With the default coherent window, the same build draws the world. I made 7 more runs on the same 7600 XT machine to check this, with the same tighter-caps build, settings and scripted presses as before. Every run dumped a frame every 30 frames (XCL_FRAME_DUMP=30).
1. One setting changed per run (7 min each)
A frame counts as "drawn" below when more than half of XCL's samples in it are not black. The table counts frames from 1600 on, after the switch into the world.
run
setting
frames drawn
all black
two-pass ExecuteIndirect skipped: … not in a console buffer in unified memory
47
default window (4,095 MB)
20 of 21
0
0
48
512 MB + XCL_AMBIENT=sky
0 of 17
14
8
49
512 MB + XCL_RT_GATE=hold
1 of 30
25
8
50
512 MB + XCL_BVH_BUILDER=1
0 of 16
13
8
Run 47's world frames: a sunset scene with sky, a low sun and terrain, low on detail, with a few garbled blocks in some frames.
Coherent use: XCL's uma_coherent.txt for this title records 4,804,771,840 bytes asked for. The default window was full: coherent 3998/4095 MB in runs 47 and 51–53, against coherent 116/512 MB with the 512 MB window.
The ExecuteIndirect skip: 8 lines in each 512 MB run (and in runs 45 and 46), 0 in each default-window run.
So the lighting stand-in, the ray-tracing gate and the BVH builder settings did not change the black picture; the window size did. The "black world, one frame of broken geometry" in my last comment describes runs with the 512 MB window only.
2. Default window, 15 min each (runs 51–53)
run
how it ended
frames drawn (from 1600)
51
after 386 s, my free-RAM guard stopped the title
20 of 20
52
0x887a0007 about 10.3 min after XCL started (device removed at 617560 ms). The title's crash report says Game State: Game Running
22 of 22
53
0x887a0007 at 874694 ms, about 14.6 min
36 of 37
At both removals, XCL's report shows title queues and its gpu-awake queue with work pending. They had last moved 13–115 ms before in run 52, and 2,118 ms before in run 53. Memory in XCL's report after the removal:
run 52: local video memory 15,815 of 14,838 MB, non-local 6,410 of 6,797 MB;
run 53: local video memory 15,636 of 14,816 MB, non-local 6,595 of 6,797 MB.
No 0x887a0020 and no Close → 0x887a0005 in runs 47 and 51–53. Before, without frame dumps, 12 of 16 runs with this build and the default window ended in 0x887a0020 at 3–4 min.
A possible reason: the PresentRing comment in present.rs says XCL_FRAME_DUMP readbacks "drain all slots", so XCL may keep less GPU work in flight while dumping. That would fit the longer runs, but it is 4 runs against 16 and I didn't test it directly.
What changes from my last comment
Don't use XCL_COHERENT_MB=512 for this title: it stops the 0x887a0020 removals, but the title then draws its world black.
With the default window, the world draws. With frame dumps on, the runs lasted 6–15 min and ended in 0x887a0007 with video memory over budget, or in my RAM guard.
Tested
AMD Radeon RX 7600 XT 16 GB, driver 32.0.31041.1004, Ryzen 5 9600X, 15.1 GB RAM, page file 64 GB on NVMe, Windows 11 Home 26200.9974, rustc 1.99.1.
Release build of amd-dev7c795f5e with the tighter draw-guard caps from my earlier comment (local, uncommitted), retail 1.0.2.1, the same precompiled pipelines.
Every run: XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=30 and XCL_PRESS_A_AT every 4 s from 6 s, plus the variables in the tables (run 49 had XCL_RT_GATE=hold instead of miss).
Not tested
Default-window runs without frame dumps since the earlier 16, so the frame-dump effect on the removals is not separated from chance.
The default window on amd-dev without the tighter caps, with frame dumps.
Coherent sizes between 512 and 4,095 MB.
Moving in the world: the scripted presses only press A, and the view stayed the same through each run.
Any other GPU.
AI use
Claude Code (Claude Opus 5.5) ran runs 47–53 on this machine and wrote this comment from their logs, frame dumps and the title's crash report.
Activity
bobosneefdev commentedon Nov 26, 2026
Follow-up: xcl's sparse allocator never handed out the range the title writes to.
gpu::umasparse allocator and ind3d12x::sparseover0x46ea00000-0x46ec00000, run 18 crashed at0x46eb15920with nothing logged for that range. The outside-UMA backing tops out below it (0x46e879000, Recompiler: f16 add / sub / fma rounded once under a directed mode (#… #128).XCL_TRACE_MEM(run 17) shows no title allocation of 64 KiB or more covering it either; the title's sparse graphics allocations end around0x469a….0x46ead9920,0x46eb15920,0x46eb25920twice,0x46eb45920) and the frame count varies too (about 1 200 to 5 100), always at the same entry offset (…920). So the title computes a base pointer into sparse VA that nothing allocated. The loop loads that base from a global:+0x501eb33 add rdi, [rip+0x5afbb8e].Same hardware and env as above,
amd-devat04e0b95. Tested and written up with Claude Code (Claude Opus 5.5); checked by @bobosneefdev before posting.D3D12.X / KernelX: lazy-commit alloc_vram_only sparse buffers on CPU …
relativespace2K commentedon Nov 26, 2026
Tested - 32 GB machine, amd-dev heads
04e0b95,bf02341f,6a0bb5b4, retail GTA6 1.0.2.1Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17.
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=...; no other XCL_* variablesunless named below.
bf02341f:xcl shaders shaders.rpf --precompile --only cs --pipelines --used-onlywith
XCL_PIPELINE_THREADS=11: 516 pipelines made, 0 refused, 150 held byXCL_RT_GATE=hold.04e0b95bf02341fbf02341f, warm.plibbf02341f,XCL_HUGE_PSO_CONCURRENCY=40x887a0006at 184 s6a0bb5b4(withe4b66e57)On
6a0bb5b4the0xc0000005atgame+0x501eb50did not reproduce, but the title neverreached
Game State: Game Running, so the fix is not exercised up to that point. The titlestops presenting at ~179 s and stays idle (0 presents/submits/draws/dispatches). On
bf02341f, a thread dump at 130/140/160 s showed onlyxcl-pso-0active inamdxc64.dll;no
queue.Waittimeout and no device removal.From 453 s on
6a0bb5b4the log repeatsunified memory is full; at 564 s it reportscoherent 4095/4095 MB,47757 draws with translated pipelines (65536 skipped)and628 blocks held for 344 allocators. The full coherent window is visible after the stall,so it may be a consequence as much as a cause.
Not tested: 64 GB RAM, other GPUs, debug build.
AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the results and crash lines were checked against the run logs.
madaraXor commentedon Nov 26, 2026
Another RDNA2 data point for
amd-dev: a GPU page fault at an address with no allocation, at world load, in every run.Setup
amd-devb5c0275+ D3D12.X: XG CopyInto/FromSubresource take the newer library's added argument #1435 (XG argument fix) + a localXCL_SPLIT_CS(one program in the split wave64 form, as AMD's compiler crashes on its native wave64 DXIL). So not plainamd-dev.XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, A pressed through the menus.Six runs, all removed with
0x887a0006at world load (416–510 s), after the loading-art frames:XCL_GPU_VIEW_BUFFERS=1XCL_GPU_CULPRIT=1XCL_AMBIENT=0XCL_INDIRECT_PRELUDE=0(instead of the ambient switch)XCL_DRED=1XCL_GPU_VIEW_BUFFERS=0XCL_GPU_CULPRIT=1: 0 lists with a dispatch started and not done, both at the removal and in the 6-s reports before it. I madestop_if_device_removedcallculprit::on_watchdog_release()locally for this.page fault at GPU VA 0x178391000; allocations there: []; recently freed: [], then0x13d8d8000, likewise with nothing. Neither address is in a UMA window.0 of N operations done(op 46,BEGIN_COMMAND_LIST): queued behind the fault, not the one that made it.cs d79af1d04922a49bis in both.indirect prelude batchline in b–d, as the title resumes submitting after waiting on compute builds.main65fc114with D3D12.X: shaders that index the heaps themselves get the heaps' addresses #1803/Recompiler: loads through s_getpc_b64 read the constant data after the program #2229/D3D12.X: shaders read buffers in a GPU view of the title's memory #2384/D3D12.X: clamp ExecuteIndirect argument records and total work on the GPU #1795 never got this removal on this card; it stood still on driver compiles instead.I can run more switches or a build with a diagnostic if someone wants a specific one. Logs are kept here.
Claude Code (Claude Opus 5.5): ran the runs and read the logs; counts, times, addresses and hashes only.
SlopTart commentedon Nov 26, 2026
Test suite layer, Linux/Wine on RDNA3: on current
amd-devthe suite itself cannot finish. Same branch, no game needed.We run xcl's own test suite under Wine on an RX 7900 XT, no title involved. On
amd-devb5c0275fthe non-gpu suite aborts in two consecutive full runs (test host exit status 5), both aroundlist_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit. Solo, that test fails deterministically, 5/5, with:at
list_x.rs:8253. The same test, same machine, same env, same day, solo with--exact:mainb49be183nvidia-devaf2cecc4amd-devb5c0275fSo the pipeline the test holds open mid-build never lands on this branch and eats the whole wait budget, while main and nvidia-dev land it under half a second.
This is a different subsystem from the sparse VA writes above (here it is PSO build completion at submit, and the non-gpu suite does no real GPU submissions), so we are not claiming it is the same bug. We are flagging that
amd-devis broken at the test level too, on Linux/Wine, right now: the whole non-gpu suite runs in about 15 s, so it is a cheap smoke gate before committing to 10-minute world-load runs. Related: our #2688 comment coversamd-devaborting the suite and three branch-newnvidia-devreds in this same lane.Tested: Linux, Arch, kernel 7.2.15, RX 7900 XT 20 GB (Navi 31), Mesa 26.2.5 RADV, wine-11.0 (Proton), standard lane env (
d3d12,d3d12core,dxgi,d3d11,d3d10core=n,boverrides, official DXC kit,VKD3D_CONFIG=ignore_shared_fence). Solo runs above: 2 per branch fresh, amd-dev 5 total including earlier reproductions.Not tested: Windows native, and whether this test also fails for Windows
amd-devlanes. If someone with a Windows amd-dev lane runs:cargo test -p xcl --lib -- hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit --exactthat one line settles whether this is Wine-only or branch-wide.
AI use: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.
spicbully-star commentedon Nov 26, 2026
A related crash on RDNA4. It's in the same class: the title writes into VA that XCL never committed. The address follows the end of the coherent window(s) wherever they are.
Setup: RX 9070 XT, i7-9700K, 32 GB, Windows 10 22H2 with the Agility SDK v620 through
XCL_D3D12_DIR, amd-devb5c0275(release). Base env:XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=360000 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3. No offline precompile on this build.uma_coherent.txtholds 4,804,771,840 (4,582 MB).The crash: the intro and menu are fine. In the world loading screen, at 112–134 s:
unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at …), rbx=0x800, rdi=0x1800on the stack:
xcl.exe+0x6bbd00, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0, game+0x56e1962That's a memcpy the title starts. It's not
+0x501eb50, but the pattern looks the same.XCL_VRAM_SMALL=0XCL_VRAM_IO=0XCL_VRAM_ARENAS=1XCL_UMA_WINDOWS=8XCL_UMA_WINDOWS=8 XCL_COHERENT_MB=8192So making the coherent space larger doesn't help. The write moves with the layout and always lands a few MB to ~2.2 GB past the end of the last coherent window. It looks like the base pointer you described above: the title computes an address relative to its memory, and nothing allocated it.
One more note: with the default layout, the title's recorded coherent need (4,582 MB) is larger than the single 4,095 MB coherent window that the 4-window layout allows. I don't know if that's related, but it's the only size mismatch I can see.
Tested and written up with Claude (Claude Opus 5.5). I can rerun with
XCL_TRACE_MEMor any other switch that would help.Edit: it's still there on amd-dev
c32c91a(the arena, UMA-full fallback and sparse commits from today), after a fresh--precompile --only cs --pipelines --used-only(573 made, 0 refused). Default layout, same env. Crash at 107 s, write at 0x84fa3a940, rdi=0x2800. Same game stack, the xcl frame is nowxcl.exe+0x55bfaf.spicbully-star commentedon Nov 26, 2026
Found it: my crash above is XG
CopyFromSubresource, not sparse memory. It's the argument shift from #662, which amd-dev doesn't handle yet.xcl.pdb(amd-devc32c91a), the framexcl.exe+0x55bfafisxcl::hle::xg::copy_from(xg.rs:731), in its rowcopy_nonoverlapping.copy_from(p, dst, plane, sub, src, row_pitch, slice_pitch)takes. Logged with the fix below:(dst 0x73321ec50, plane 0, sub 0, 0x700000000, 0xc45999000, 0x800, 0x40000)for 128×128 × 16 B, and(…, 0x700000000, 0xc46147000, 0x100, 0x2000)for 32×32 × 8 B. So amd-dev uses 0x700000000 assrc, 0xc45999000 as the row pitch and so on. With 128 rows, the row writes land GBs pastdst, which is the "just past the coherent window" address I saw in every layout.c32c91a's xg.rs:subare read as (a5, a6, a7, a8). The first layout is used when a6 can be a row pitch, otherwise (a6, a7, a8).in_committed_windowbefore any write. If it isn't writable, nothing is written and a warning is logged.lazy::ensureguards are held across the reads and writes.With that, the memcpy crash is gone. The two calls above copy from "the later slots" at 110 s, and the title keeps presenting.
I can open a PR with the xg.rs change against amd-dev if that helps.
spicbully-star commentedon Nov 26, 2026
Follow-up on the RX 9070 XT, amd-dev
c32c91aplus the xg.rs change from my last comment. With the RT gate open, the next wall is ray-tracing compute pipelines over about 1.2 MB of DXIL: the AMD driver never finishes them.XCL_RT_GATE=hold(the default), 2 of 4 runs ended with device removed (0x887a0006) at 144–150 s. That was right afterExecuteIndirect/Dispatchwith "no translated console shader" was skipped, which fits the held BVH traversal programs.XCL_RT_GATE=auto, there was no device removal in 3 of 5 runs. The title instead waits on BVH and image-only programs that are still being built.xcl shaders … --precompile --only cs --pipelines --used-onlywithXCL_RT_GATE=0built the held-back ones offline: 767 made, 0 refused, ~60 s each for the ~1.0–1.1 MB ones. Three records never finished. Each one stalled the driver compile for 9–27 minutes, until I closed the process:95cc13288a27a96e(2,456,664 B DXIL)02a31c25862c1c63(1,272,048 B DXIL)73dc0d51029621e8(1,215,844 B DXIL)With
XCL_PIPELINE_MAX_KB=1150, the precompile finished and left 35 pipelines (42 MiB of DXIL) to the runtime.XCL_RT_GATE=auto, presented until 128 s, its furthest yet. It then waited on84eee477d68b6fdf(1,306,064 B DXIL, "driver blob absent"), which hadn't finished after 230 s, until the 360 s timer. There was no crash and no device removal. Commit was 27 GB.On this driver it looks like a size threshold. Every ray-tracing compute program from ~1.2 MB of DXIL up stalls, and everything at 1.1 MB and below builds in about 60 s. Is there a way to split these BVH programs, or to put them in the compact form (#2088 workstreams 2/3), so they get under that size? I'm happy to test it.
spicbully-star commentedon Nov 27, 2026
RX 9070 XT, amd-dev
71b8e6eplus the xg.rs change,XCL_RT_GATE=miss:missmakes the RT programs small enough for the AMD driver. In the launch preparation,95cc13288a27a96elogs15017 KB of HLSL would compile unoptimised – direct DXIL instead (231 KB). Withhold/autothe same record was 2,456,664 B and never finished. Others there came out at 1027, 1062 and 1256 KB.XCL_PREPARE=0presented until 114 s. At 178 s the AMD driver itself crashed, while it was compiling a mesh-shader pipeline:unhandled exception 0xc0000005 in amdxc64.dll+0xe3d80a (read at address 0x4)on the thread of
driver compile start #283: MS PSO, 340328 B DXIL. A second MS PSO (329,648 B) had started 7 ms after it. Commit was 22 GB.I'll run
bf7c82enext (driver crash records + big compile gating) so the log names the pipeline, and post what it shows.spicbully-star commentedon Nov 27, 2026
Follow-up on bf7c82e as promised. RX 9070 XT 16 GB, Windows 10 22H2 (19045), i7-9700K, 32 GB RAM. amd-dev bf7c82e plus the xg.rs CopyFromSubresource change (#662), release build.
XCL_D3D12_DIRpoints at the Agility SDK, plusXCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RT_GATE=miss XCL_PREPARE=0 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_PSO_WAIT_MS=360000. Warm cache from an earlier launch preparation withXCL_PIPELINE_MAX_KB=1150(compute pass finished in 1347 s, 0 failed).1. The amdxc64.dll crash is gone. The
amdxc64.dll+0xe3d80acrash on MS PSO builds did not come back in any bf7c82e run, so the big-compile gating fixes it here.2. The wall with a warm cache, 900 s run. The title presented until 110 s. Compile
#124: compute PSO, 1306064 B DXIL, record 84eee477d68b6fdfstarted at 157 s and had not finished when the 900 s timer stopped the run. There was no crash and no device removal.3. Same run plus
XCL_PSO_MAX_KB=1150. XCL refused 22 compute records at 114–116 s (over XCL_PSO_MAX_KB and without a saved blob). They are all 1.17–1.36 MB of DXIL, even withXCL_RT_GATE=miss:The title got past the wait and kept rendering (25,301 draws with translated pipelines, 7,988 dispatches with 51 skipped). The last frame was at 112 s. At 133.5 s the device was removed (
0x887a0006). The flight record shows the title queue at done 6 of 7, with no movement for 7.8 s, and the sparse readback queue at done 1230 of 1233. My guess is that the skipped dispatches leave their outputs unwritten and a later pass hangs on them, but I haven't confirmed that.So on this driver,
missgets the biggest record (95cc…) down to 231 KB, but this family of 22 stays above ~1.2 MB. Every one I have tried at that size never finishes in the driver compiler. Waiting stalls the title, and skipping hangs the GPU. A way to make these records smaller, or a safe "no-op" output for a skipped dispatch, would let me test past this point. I'm happy to run either.Tested and written up with Claude Code (Claude Opus 5.5). The numbers are from the run logs.
cindertheblue commentedon Nov 28, 2026
RDNA3 data point: RX 7600 XT 16 GB on
amd-dev7c795f5e. The title reached the world in 3 of 10 runs, and no run stayed there.Every run ended one of three ways, before the world or soon after reaching it:
Game State: Game Runningin the title's crash report0x80000003atgame+0x3bf40x887a00060x80000003atgame+0x63966f0x887a0020(Close → 0x887a0005just before)0x887a00060x887a00060x887a0020, then0x80000003atgame+0x24746060x887a00060x887a00060x887a0020"–" in the Game Running column means the title wrote no crash report, because XCL stopped it after the device removal.
0x887a0006(5 runs): every time in the first 1.5–4 min, before the world, with local video memory between 7.6 and 11.9 GB.0x887a0020(3 runs): every time with local video memory at or near the budget, 13.9–14.6 GB of 14,464 MB.fbk_stry000_FBK_STRY000_INTROinPrestream. ItsINSTANCE_LISTpool was at 42,632 / 45,000 (run 1) and 45,000 / 45,000 (run 3), andGame Physicalat 2.21 of 2.31 GB both times. Run 7's report shows 33,145 / 45,000.+0x501eb50write: none of these runs ended with the sparse-memory crash in this issue's first post.Tested
amd-dev7c795f5e, release build (cargo build --release -p xcl) from a clean worktree, no local changes.xcl shaders shaders.rpf --precompile --only cs --pipelines --used-onlywithXCL_RT_GATE=miss, with aused-pipelines.txtof 1,089 keys from earlier runs ofmainand of Recompiler: the compact form's larger tables on a 64-lane GPU with heap windows #2375 that did not reach the world. 2,261 pipelines made, 0 refused, 1,965 compute programs passed over, 11 min.XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, the same DXIL cache, retail 1.0.2.1. Runs 5–10 also hadXCL_PRESS_A_ATevery 4 s from 6 s; runs 1–4 had no scripted presses.Not tested
CopyFromSubresourcechange) on top of this branch. Any variable beyond the ones above.Note for 16 GB machines
disk51 errors ("during a paging operation") on the SATA SSD that held the 4 GB page file, then the whole system stalled. Total memory (commit) never ran out, so a guard that watches only that does not catch this.XCL_NETWORK=0refused it (WinHttpConnect fails).AI use
cindertheblue commentedon Nov 28, 2026
Follow-up to my RX 7600 XT comment above: 28 more runs on the same machine, same title and same
amd-dev7c795f5e.DRED puts most of the early
0x887a0006hangs at XCL's indirect draw guard. With the guard's caps tightened, those resets went from 9 in 16 runs to 4 in 16. The runs that get past that now nearly all end in0x887a0020at 3–4 min.1. Where
0x887a0006hangs (XCL_DRED=1, runs 11–16)Four of these six runs lost the device with
0x887a0006. DRED's partly finished list:around: 0 15 0 >6 15 0Dispatchwithxcl guard_draw_argsbound; next bound:vs 511ad8fb83b419db ps 0250fd04c33aa079(a decal pass)around: 0 15 0 >6 15 0xcl guard_draw_args; next bound:vs ad15e1aa74265919 ps 7381166e806847c9(a particle-effect pass)list 0x0on XCL's gpu-awake queue, 1 of 2 done,around: 46 >6;DRED page fault at GPU VA 0x191200000; allocations there: []2. Tighter caps, as a test (local change, not a PR)
hle/d3d12x/bind.rson7c795f5e: the four guard shaders (GUARD_DRAW_ARGS_HLSL,GUARD_DRAW_ARGS_HEAP_HLSL,PRELUDE_DRAW_GUARD_HLSL,PRELUDE_DRAW_GUARD_HEAP_HLSL) and the two test constants:0x887a00060x887a00200x80000003, no device removalGame State: Game Runningin the title's crash report7c795f5eas it is (runs 1–16)XCL_TEXTURE_LEVEL_PAGES=1) are left out above. They ended: 3 ×0x887a0006, 3 ×0x887a0020.XCL_DRED=1and runs 14–16 also hadXCL_COHERENT_MB=512. Runs 1–4 had no scripted presses. Runs 1–10 alone, with neither variable: 5 ×0x887a0006in 10.3. The
0x887a0020that's left0x887a0020loggedcommand list … Close → 0x887a0005just before the removal. None of the 160x887a0006runs did.flight:line, all 20 runs):14479 of 14464 MB OVERand14544 of 14441 MB OVER.0x0, as it does in most of the0x887a0006runs.XCL_TEXTURE_LEVEL_PAGES=1(runs 23–28): it worked as described:26735 textures standing for 16478 MB have pages for 521 MB. Peak local video memory stayed the same, though: 13,840–14,267 MB in its runs that reached0x887a0020, against 13,647–14,148 MB in runs 18–22.XCL_COHERENT_MB=512(runs 14–16): no result for this error, since all three ended earlier in0x887a0006.Tested
XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, plus the variables named above. From run 5 on,XCL_PRESS_A_ATevery 4 s from 6 s.Not tested
cargo teston the change.XCL_COHERENT_MB=512against0x887a0020.AI use
oni-swr commentedon Nov 28, 2026
@cindertheblue, I tried your recipe (precompile
--precompile --only cs --pipelines --used-onlyplusXCL_RT_GATE=miss,XCL_PREPARE=0,XCL_NETWORK=0,XCL_ACTIVITY=1, scripted A press every 4 s from 6 s) on an RX 7800 XT 16 GB, driver 32.0.31035.1003, Windows 11 26200, unmodifiedamd-dev7c795f5e: 2 runs of 360 s each.0x887a0006/0x887a0020), 0 crashes. Peak local video memory 10.3 / 10.5 GB of a 13,343 MB budget; peak commit 27.5 / 27.3 GB.Details and the memory breakdown are in my #2996 comment. Aggregates only; one more data point that this recipe ends differently on a 7800 XT than on your 7600 XT (no removal in 2 runs, but a stall).
AI use: Gemini 4 Neon ran the setup and GPU runs; Claude Sonnet 5.5 analysed and wrote this.
cindertheblue commentedon Nov 28, 2026
Second follow-up from the RX 7600 XT: 8 more runs (39–46) with the tighter draw-guard caps from my last comment plus
XCL_COHERENT_MB=512.No run ended in
0x887a0020: 6 of 8 ran to my 30 min limit, against 12 of 16 runs with that error at 3–4 min with the default 4,095 MB window. The title most likely reaches the world in these runs, but what XCL presents there is black, with one frame of broken geometry.1. How the runs ended (same build:
7c795f5ewith the tighter caps,XCL_COHERENT_MB=512)0x887a00060x887a0020XCL_COHERENT_MB=512(runs 39–46)Close → 0x887a0005: none of runs 39–46 logged it. All 20 earlier0x887a0020runs logged it just before the removal.0x887a0020removals.coherent 116/512 MBin runs 40, 45 and 46, againstcoherent 3998/4095 MBin run 31.2. What the title shows in the world (
XCL_FRAME_DUMP, runs 45 and 46)Run 45 dumped every 600th frame and run 46 every 30th. Run 46's frames, with XCL's own
N of 518400 samples not blackcount:8388608 draws with translated pipelines (11640 skipped …). So the black is not a case of the draws being skipped.PrintWindowcapture of the title's window I took was black, so the evidence here is the frame dumps.Tested
amd-dev7c795f5ewith the tighter caps (local, uncommitted), retail 1.0.2.1, the same precompiled pipelines.XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_COHERENT_MB=512, andXCL_PRESS_A_ATevery 4 s from 6 s. Runs 45 and 46 also hadXCL_FRAME_DUMP=600and=30.UMA: 3 sparse VRAM window(s) (12 GiB VA) + 1 coherent window(s) (512 MB)confirms the setting took effect in each run.Not tested
XCL_COHERENT_MB=512without the tighter caps, and onamd-devas it is.AI use
cindertheblue commentedon Nov 28, 2026
Correction to my last comment: the black world came from
XCL_COHERENT_MB=512itself. With the default coherent window, the same build draws the world. I made 7 more runs on the same 7600 XT machine to check this, with the same tighter-caps build, settings and scripted presses as before. Every run dumped a frame every 30 frames (XCL_FRAME_DUMP=30).1. One setting changed per run (7 min each)
A frame counts as "drawn" below when more than half of XCL's samples in it are not black. The table counts frames from 1600 on, after the switch into the world.
two-pass ExecuteIndirect skipped: … not in a console buffer in unified memoryXCL_AMBIENT=skyXCL_RT_GATE=holdXCL_BVH_BUILDER=1uma_coherent.txtfor this title records 4,804,771,840 bytes asked for. The default window was full:coherent 3998/4095 MBin runs 47 and 51–53, againstcoherent 116/512 MBwith the 512 MB window.ExecuteIndirectskip: 8 lines in each 512 MB run (and in runs 45 and 46), 0 in each default-window run.2. Default window, 15 min each (runs 51–53)
0x887a0007about 10.3 min after XCL started (device removed at 617560 ms). The title's crash report saysGame State: Game Running0x887a0007at874694 ms, about 14.6 min0x887a0020and noClose → 0x887a0005in runs 47 and 51–53. Before, without frame dumps, 12 of 16 runs with this build and the default window ended in0x887a0020at 3–4 min.PresentRingcomment inpresent.rssaysXCL_FRAME_DUMPreadbacks "drain all slots", so XCL may keep less GPU work in flight while dumping. That would fit the longer runs, but it is 4 runs against 16 and I didn't test it directly.What changes from my last comment
XCL_COHERENT_MB=512for this title: it stops the0x887a0020removals, but the title then draws its world black.0x887a0007with video memory over budget, or in my RAM guard.Tested
amd-dev7c795f5ewith the tighter draw-guard caps from my earlier comment (local, uncommitted), retail 1.0.2.1, the same precompiled pipelines.XCL_RT_GATE=miss XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=30andXCL_PRESS_A_ATevery 4 s from 6 s, plus the variables in the tables (run 49 hadXCL_RT_GATE=holdinstead ofmiss).Not tested
amd-devwithout the tighter caps, with frame dumps.AI use