Pipeline preload (#690) starts a compute build that never ends at the title screen; memory grows until it runs out (Linux: #611) #1035

Open
opened 2026-11-26 04:41:18 +00:00 by github-bot · 12 comments
Owner

@⁠GreemSC on GitHub · 2026-11-24 10:39 UTC · original

With the pipeline preload from #690 on (the default), the retail title's process grows by tens of MB a second at its title screen. It does not stop until memory runs out.

Cause, on Linux: one preload worker is building a world compute pipeline that never finishes. This is #611: v3.1's dxil-spirv loops on 2e0055c25f49848a_Compute, and its thread allocator frees nothing. The program is in used-pipelines.txt because an earlier run reached world loading.

The Windows report on #690 (committed memory climbs at the account picker until the commit limit, flat with XCL_PSO_PRELOAD=0) and the Wine report on #889 (+7–10 GB of host memory with compute pipelines built ahead) look like the same pattern. In both, a compute build stuck in the compiler would explain it. I have not checked those setups.

Seen

  • Setup:
    • RX 7900 XT (RADV, Mesa 26.2.5), i7-12700K, 16 GB RAM, CachyOS (kernel 7.3.5).
    • Proton-CachyOS Wine, with its vkd3d-proton 0bb64c5 (dxil-spirv 8434b06).
    • XCL main 09940bb + #871 + #684, release.
    • Series package 1.0.2.1.
    • used-pipelines.txt: 52 keys.
  • Each run is 120 s with no input: the intro, then the title screen.
  • Memory is the game's cgroup (memory.current + memory.swap.current). Frame times come from MangoHud.
p99 frame time frames > 100 ms RAM + swap at 120 s
preload on (default) 400 / 1072 ms 67 / 169 19.6 / 19.9 GB, still growing
XCL_PSO_PRELOAD=0 34.8 / 34.0 ms 1 / 1 5.2 / 5.0 GB, flat

(Two runs each. The one frame over 100 ms left with the preload off is the title's ~14 s load after the intro.)

  • A 240 s run with the preload on reached 29 GB and was still growing (~60 MB/s at the end).
  • On 16 GB the kernel pushes this out to swap. The hitches come from that.
  • XCL's log is silent while memory grows. Its own counters (video memory, pools, arenas) stay flat, and the preload's count never reaches 2048 in 240 s. So this is one build that does not end, not many builds.

How it was found

  • smaps snapshots: the growth is contiguous anonymous memory, every page written.
  • An LD_PRELOAD shim on mmap (thread name and Windows thread id from the TEB) put all of it on one thread, xcl-pso-pre-0. That thread called NtAllocateVirtualMemory for 4 MiB pieces, about 20 a second, and never freed one.

With dxil-spirv 53aac41 (dxil-spirv #371, what #775 builds)

  • I rebuilt the same vkd3d-proton 0bb64c5 with only the submodule moved, with -Db_ndebug=true.
  • With the preload on, RAM + swap stays flat at 4.8 GB from 40 s to 120 s.
  • The 299 988 B compute program builds in 2.2 s on a cold run and 12 ms from the driver cache after that.
  • Frame times in that run: p99 33.7 ms, the same as XCL_PSO_PRELOAD=0.
  • Caveat: my own vkd3d-proton builds (Arch mingw GCC 16, and Debian trixie mingw GCC 14 with msvcrt) crash the title at +0x2215c35 (#232) at 48.7–49.8 s. That happened in 6 of 9 runs, with the old dxil-spirv as well as the new one. Proton's prebuilt DLL of the same commit had 0 such crashes in 21 runs. So the crash is in how I built it, not in the dxil-spirv change. But the result above rests on the runs that got through: memory was flat in all of them up to the crash.

Possible directions (none tested here)

  • #775: a dxil-spirv that finishes these programs. It fixes the Linux side.
  • #828's XCL_PSO_PRELOAD=graphics would leave this compute program to its first bind.
  • A budget or time limit on compute builds started by the preload, as suggested on #889. A build that does not end then costs one worker, not all of memory.
  • Workaround today: XCL_PSO_PRELOAD=0. As noted on #889, this also turns off the graphics preload.

Not known: whether the Windows and #889 cases are the same program; world loading (this setup stops at #505); NVIDIA.

AI use: Claude Code (Claude Opus 5.5) ran the measurements, wrote the shim and the builds, and wrote this report.

**@⁠GreemSC** on GitHub · 2026-11-24 10:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035) With the pipeline preload from #690 on (the default), the retail title's process grows by tens of MB a second at its title screen. It does not stop until memory runs out. **Cause, on Linux:** one preload worker is building a world compute pipeline that never finishes. This is #611: v3.1's dxil-spirv loops on `2e0055c25f49848a_Compute`, and its thread allocator frees nothing. The program is in `used-pipelines.txt` because an earlier run reached world loading. The Windows report on #690 (committed memory climbs at the account picker until the commit limit, flat with `XCL_PSO_PRELOAD=0`) and the Wine report on #889 (+7–10 GB of host memory with compute pipelines built ahead) look like the same pattern. In both, a compute build stuck in the compiler would explain it. I have not checked those setups. **Seen** - Setup: - RX 7900 XT (RADV, Mesa 26.2.5), i7-12700K, 16 GB RAM, CachyOS (kernel 7.3.5). - Proton-CachyOS Wine, with its vkd3d-proton `0bb64c5` (dxil-spirv `8434b06`). - XCL `main` `09940bb` + #871 + #684, release. - Series package 1.0.2.1. - `used-pipelines.txt`: 52 keys. - Each run is 120 s with no input: the intro, then the title screen. - Memory is the game's cgroup (`memory.current` + `memory.swap.current`). Frame times come from MangoHud. | | p99 frame time | frames > 100 ms | RAM + swap at 120 s | |---|---|---|---| | preload on (default) | 400 / 1072 ms | 67 / 169 | 19.6 / 19.9 GB, still growing | | `XCL_PSO_PRELOAD=0` | 34.8 / 34.0 ms | 1 / 1 | 5.2 / 5.0 GB, flat | (Two runs each. The one frame over 100 ms left with the preload off is the title's ~14 s load after the intro.) - A 240 s run with the preload on reached 29 GB and was still growing (~60 MB/s at the end). - On 16 GB the kernel pushes this out to swap. The hitches come from that. - XCL's log is silent while memory grows. Its own counters (video memory, pools, arenas) stay flat, and the preload's count never reaches 2048 in 240 s. So this is one build that does not end, not many builds. **How it was found** - `smaps` snapshots: the growth is contiguous anonymous memory, every page written. - An `LD_PRELOAD` shim on `mmap` (thread name and Windows thread id from the TEB) put all of it on one thread, `xcl-pso-pre-0`. That thread called `NtAllocateVirtualMemory` for 4 MiB pieces, about 20 a second, and never freed one. **With dxil-spirv `53aac41` (dxil-spirv #371, what #775 builds)** - I rebuilt the same vkd3d-proton `0bb64c5` with only the submodule moved, with `-Db_ndebug=true`. - With the preload on, RAM + swap stays flat at 4.8 GB from 40 s to 120 s. - The 299 988 B compute program builds in 2.2 s on a cold run and 12 ms from the driver cache after that. - Frame times in that run: p99 33.7 ms, the same as `XCL_PSO_PRELOAD=0`. - Caveat: my own vkd3d-proton builds (Arch mingw GCC 16, and Debian trixie mingw GCC 14 with msvcrt) crash the title at `+0x2215c35` (#232) at 48.7–49.8 s. That happened in 6 of 9 runs, with the old dxil-spirv as well as the new one. Proton's prebuilt DLL of the same commit had 0 such crashes in 21 runs. So the crash is in how I built it, not in the dxil-spirv change. But the result above rests on the runs that got through: memory was flat in all of them up to the crash. **Possible directions** (none tested here) - #775: a dxil-spirv that finishes these programs. It fixes the Linux side. - #828's `XCL_PSO_PRELOAD=graphics` would leave this compute program to its first bind. - A budget or time limit on compute builds started by the preload, as suggested on #889. A build that does not end then costs one worker, not all of memory. - Workaround today: `XCL_PSO_PRELOAD=0`. As noted on #889, this also turns off the graphics preload. **Not known:** whether the Windows and #889 cases are the same program; world loading (this setup stops at #505); NVIDIA. AI use: Claude Code (Claude Opus 5.5) ran the measurements, wrote the shim and the builds, and wrote this report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:18 +00:00
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 11:35 UTC · original

A Windows data point for "I have not checked those setups" (native D3D12, no Wine): RTX 3060 12 GB (581.80), Windows 11 26200, release build of main f4ce27c + #640 / #628 / #708, retail title's world loading. Thread dumps every 5 s (details on #754) show xcl-pso-pre-0 inside nvwgf2umx.dll's compiler in every dump from 50 s to 105 s, its last log line at 7.8 s, while the other three preload threads idle. So on this setup too one preload compute build runs for over 100 s.

What I did not measure: that thread's own allocations, so I cannot say whether its memory grows the way yours does. For what it is worth, scripts/smoke.ps1 peak commit on this machine (preload on, 60 s with A presses into world loading) went from 14.7 GB on dd2ae9a to 25.4 GB on 67a3735; I have not split that by thread or by commit.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-24 11:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7130285011) A Windows data point for "I have not checked those setups" (native D3D12, no Wine): RTX 3060 12 GB (581.80), Windows 11 26200, release build of `main` `f4ce27c` + #640 / #628 / #708, retail title's world loading. Thread dumps every 5 s (details on #754) show `xcl-pso-pre-0` inside `nvwgf2umx.dll`'s compiler in every dump from 50 s to 105 s, its last log line at 7.8 s, while the other three preload threads idle. So on this setup too one preload compute build runs for over 100 s. What I did not measure: that thread's own allocations, so I cannot say whether its memory grows the way yours does. For what it is worth, `scripts/smoke.ps1` peak commit on this machine (preload on, 60 s with A presses into world loading) went from 14.7 GB on `dd2ae9a` to 25.4 GB on `67a3735`; I have not split that by thread or by commit. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠emirduran707 on GitHub · 2026-11-24 11:35 UTC · original

A Windows / AMD data point for the "Not known" part: with a used-pipelines.txt that includes world-loading compute programs, the preload does not grow memory without end here.

Setup:

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.31044.16; Ryzen 5 5600, 32 GB; Windows 11 Pro 26300 (native D3D12, no vkd3d-proton).
  • main 47efa2e, release.
  • The retail title of #505, 1.0.2.1.
  • used-pipelines.txt: 1 092 shader sets. Earlier runs that day reached world loading on this machine, so its long compute programs are in the list. The driver-blob cache (#634) is warm from those runs.

Each run is 240 s with no input (intro, then the title's first screen), XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=240. The log has no gamepad presses in either run. Process commit is from XCL's 2 s memory lines.

commit at 20 / 60 / 100 / 140 / 180 / 220 s highest end
preload on (default) 16.2 / 17.5 / 18.6 / 17.5 / 18.5 / 16.0 GB 22.1 GB (short peaks while it builds) exit 0
XCL_PSO_PRELOAD=0 14.8 GB, flat 14.8 GB exit 0
  • With the preload on, the log counts 512 pipelines built ahead in the first ~5 s. After that, commit goes up and down around 16–18.6 GB, and it was lower at 220 s than at 100 s.
  • So on this driver the preload costs 1–4 GB while builds run, with peaks up to ~7 GB. Nothing grows steadily, and no build fails to end. That fits the Linux cause being dxil-spirv (#611 / #775), not the preload.
  • Side note for whoever touches this: the line "the pipelines of N shader sets an earlier run used are built ahead of their first use" is logged with XCL_PSO_PRELOAD=0 too, even though nothing is built ahead then.

Not tested: the account picker or a cold driver cache (where the Windows report on #690 saw growth); NVIDIA; more than one run each. (A first preload-off run got controller input by accident partway through, left the title screen, and is not counted.)

Measured and written with Claude Code (Claude Opus 5.5). The runs were made on my machine.

**@⁠emirduran707** on GitHub · 2026-11-24 11:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7130301952) A Windows / AMD data point for the "Not known" part: with a `used-pipelines.txt` that includes world-loading compute programs, the preload does **not** grow memory without end here. **Setup:** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.31044.16; Ryzen 5 5600, 32 GB; Windows 11 Pro 26300 (native D3D12, no vkd3d-proton). - `main` 47efa2e, release. - The retail title of #505, 1.0.2.1. - `used-pipelines.txt`: 1 092 shader sets. Earlier runs that day reached world loading on this machine, so its long compute programs are in the list. The driver-blob cache (#634) is warm from those runs. Each run is 240 s with no input (intro, then the title's first screen), `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=240`. The log has no gamepad presses in either run. Process commit is from XCL's 2 s memory lines. | | commit at 20 / 60 / 100 / 140 / 180 / 220 s | highest | end | |---|---|---|---| | preload on (default) | 16.2 / 17.5 / 18.6 / 17.5 / 18.5 / 16.0 GB | 22.1 GB (short peaks while it builds) | exit 0 | | `XCL_PSO_PRELOAD=0` | 14.8 GB, flat | 14.8 GB | exit 0 | - With the preload on, the log counts 512 pipelines built ahead in the first ~5 s. After that, commit goes up and down around 16–18.6 GB, and it was lower at 220 s than at 100 s. - So on this driver the preload costs 1–4 GB while builds run, with peaks up to ~7 GB. Nothing grows steadily, and no build fails to end. That fits the Linux cause being dxil-spirv (#611 / #775), not the preload. - Side note for whoever touches this: the line "the pipelines of N shader sets an earlier run used are built ahead of their first use" is logged with `XCL_PSO_PRELOAD=0` too, even though nothing is built ahead then. **Not tested:** the account picker or a cold driver cache (where the Windows report on #690 saw growth); NVIDIA; more than one run each. (A first preload-off run got controller input by accident partway through, left the title screen, and is not counted.) Measured and written with Claude Code (Claude Opus 5.5). The runs were made on my machine.
Author
Owner

@⁠ClosetPie107 on GitHub · 2026-11-24 11:45 UTC · original · edited 2026-11-24 12:14 UTC

Linux with the dxil-spirv fix already in: the preload still runs out of memory, now inside RADV, once the list holds the title's world-loading compute programs.

@⁠GreemSC's 52-key list stopped at #505. Mine has 1 175 shader sets, from runs that got into world loading, and my vkd3d-proton already has dxil-spirv 53aac418 (#775). With that, the 300 KB program builds normally here too, but the bigger ones do not.

In the game. One xcl-pso-pre-N thread at ~100 % of a core, the XCL host process (game_scarlett_master.exe) growing 0.35–0.5 GB/s to ~20 GB resident within 60–100 s, until my run script's 2 GB guard stops it. perf on the whole run (no call stacks available here) puts that thread's time in libvulkan_radeon.so and libc's allocator; d3d12core.dll (vkd3d-proton, with dxil-spirv) is ~0.1–2 %. XCL's log line when one finished: compute PSO with the translated console CS (931624 B DXIL, 56550 ms), with driver blobs … (this one: 56544 ms).

One pipeline, outside the game. A Fossilize capture of a run (Steam's VK_LAYER_VALVE_steam_fossilize, FOSSILIZE_DUMP_SYNC=1) replayed with fossilize_replay --compute-pipeline-range, in a cgroup with MemoryMax: every compute pipeline replays in milliseconds except one.

that compute pipeline (1 094 136 B DXIL → 5 077 268 B SPIR-V) RADV 26.3.1 RADV 26.2.6 (the cached package, via VK_DRIVER_FILES)
fossilize_replay 59.99 s 59.65 s
peak RSS 15.9 GB 15.9 GB
  • The shader dump (VKD3D_SHADER_DUMP_PATH) of a 60 s run has 7 compute programs of 3.7–8.0 MB SPIR-V. The 4.2 MB one (the 931 624 B DXIL program above, also one of the slow ones) is valid SPIR-V (spirv-val --target-env vulkan1.3): one function, 10 377 blocks, 13 110 OpPhi, mostly OpCompositeExtract / OpBitcast / OpSelect / OpIAddCarry.
  • Not a Mesa 26.3 regression (same on 26.2.6). RADV_DEBUG=llvm is ignored by release builds, and this Mesa build has no symbols on the Arch or CachyOS debuginfod, so I cannot say whether it is ACO or the shared NIR passes.
  • Not #610 or #1043: the same on main alone, and #1043 gives byte-identical DXIL (all 428 dumped programs of a run have the same hashes).

So on Linux there are two layers: dxil-spirv (#611, fixed by #775) for the ~300 KB programs, and RADV itself for some of the ~1 MB ones (edited: not all of them, see below): about a minute and 16 GB each, two preload workers at a time. That is the RADV counterpart of @⁠brothernog's #1096 (~100 s per 18k-instruction CS in NVIDIA's driver), and it would also explain @⁠Anon64's 100 s build. @⁠emirduran707's Windows / RX 9060 XT run did not grow, so AMD's Windows driver handles them. A budget or time limit on preload compute builds, or XCL_PSO_PRELOAD=graphics (#828), would keep this from taking all memory; XCL_PSO_PRELOAD=0 only moves the build to the first bind.

Edited – only a few programs are slow, and RADV's disk cache gets around them:

  • Once one of these has been built, RADV's on-disk cache serves it: the 5 MB-SPIR-V pipeline above replays in 0.004 s the second time. The title and fossilize_replay share that cache (pipelines the title had built replay from it in milliseconds).
  • With the two slow programs found so far in the cache (931 624 B DXIL, built once in the game in 56.5 s, and the 1 094 136 B one, built once by the replay), a 90 s run on main 384f7f7 had no runaway: seven other compute programs of 869 588–1 200 756 B DXIL built in 4.6–6.9 s each, the first #101 came at 83.6 s as before, and the host process was at 16.4 GB with 6.1 GB of RAM free at the end. So it is a few pathological programs, not the size class.
  • Workaround on Linux until this is fixed: capture a run with Fossilize and FOSSILIZE_DUMP_SYNC=1 (it records a pipeline before the driver compiles it, so a run that runs out of memory mid-build still has it), replay the capture one compute pipeline at a time (--compute-pipeline-range i i+1, ~60 s / ~16 GB for a slow one), with MESA_SHADER_CACHE_MAX_SIZE raised (the 1 GB default can evict them). The cache is per driver build, so a Mesa update needs it again, and so does any XCL change that alters the emitted programs.

The capture contains translated game code, so it is not attached; I can replay it with other settings (DXC levels for #1096's question, other Mesa versions) if that helps.

Tested: AMD Radeon RX 9070 16 GB (RADV GFX1201, Mesa 26.3.1 and 26.2.6), Ryzen 5 9600X, 30 GB RAM (zram); CachyOS, kernel 7.3.5; Proton Experimental's Wine, vkd3d-proton v3.1 + #257's patch + dxil-spirv 53aac418, DXC 1.9.2609.5; XCL main 384f7f7, x86_64-pc-windows-gnu release; retail 1.0.2.1. fossilize_replay from Steam's ubuntu12_64.

Not tested: XCL_PSO_PRELOAD=0 or =graphics on this list, a debug Mesa build, other RDNA generations, Windows on this card.

AI use: T3 Code (Claude Opus 5.5) ran the captures and replays and wrote this comment from the logs; I checked it before posting.

**@⁠ClosetPie107** on GitHub · 2026-11-24 11:45 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7130504750) · edited 2026-11-24 12:14 UTC **Linux with the dxil-spirv fix already in: the preload still runs out of memory, now inside RADV**, once the list holds the title's world-loading compute programs. @⁠GreemSC's 52-key list stopped at #505. Mine has 1 175 shader sets, from runs that got into world loading, and my vkd3d-proton already has dxil-spirv `53aac418` (#775). With that, the 300 KB program builds normally here too, but the bigger ones do not. **In the game.** One `xcl-pso-pre-N` thread at ~100 % of a core, the XCL host process (`game_scarlett_master.exe`) growing 0.35–0.5 GB/s to ~20 GB resident within 60–100 s, until my run script's 2 GB guard stops it. `perf` on the whole run (no call stacks available here) puts that thread's time in `libvulkan_radeon.so` and libc's allocator; `d3d12core.dll` (vkd3d-proton, with dxil-spirv) is ~0.1–2 %. XCL's log line when one finished: `compute PSO with the translated console CS (931624 B DXIL, 56550 ms)`, with `driver blobs … (this one: 56544 ms)`. **One pipeline, outside the game.** A Fossilize capture of a run (Steam's `VK_LAYER_VALVE_steam_fossilize`, `FOSSILIZE_DUMP_SYNC=1`) replayed with `fossilize_replay --compute-pipeline-range`, in a cgroup with `MemoryMax`: every compute pipeline replays in milliseconds except one. | that compute pipeline (1 094 136 B DXIL → 5 077 268 B SPIR-V) | RADV 26.3.1 | RADV 26.2.6 (the cached package, via `VK_DRIVER_FILES`) | |---|---|---| | `fossilize_replay` | 59.99 s | 59.65 s | | peak RSS | 15.9 GB | 15.9 GB | - The shader dump (`VKD3D_SHADER_DUMP_PATH`) of a 60 s run has 7 compute programs of 3.7–8.0 MB SPIR-V. The 4.2 MB one (the 931 624 B DXIL program above, also one of the slow ones) is valid SPIR-V (`spirv-val --target-env vulkan1.3`): **one function, 10 377 blocks, 13 110 `OpPhi`**, mostly `OpCompositeExtract` / `OpBitcast` / `OpSelect` / `OpIAddCarry`. - Not a Mesa 26.3 regression (same on 26.2.6). `RADV_DEBUG=llvm` is ignored by release builds, and this Mesa build has no symbols on the Arch or CachyOS debuginfod, so I cannot say whether it is ACO or the shared NIR passes. - Not #610 or #1043: the same on `main` alone, and #1043 gives byte-identical DXIL (all 428 dumped programs of a run have the same hashes). So on Linux there are two layers: dxil-spirv (#611, fixed by #775) for the ~300 KB programs, and RADV itself for some of the ~1 MB ones (**edited:** not all of them, see below): about a minute and 16 GB each, two preload workers at a time. That is the RADV counterpart of @⁠brothernog's #1096 (~100 s per 18k-instruction CS in NVIDIA's driver), and it would also explain @⁠Anon64's 100 s build. @⁠emirduran707's Windows / RX 9060 XT run did not grow, so AMD's Windows driver handles them. A budget or time limit on preload compute builds, or `XCL_PSO_PRELOAD=graphics` (#828), would keep this from taking all memory; `XCL_PSO_PRELOAD=0` only moves the build to the first bind. **Edited – only a few programs are slow, and RADV's disk cache gets around them:** - Once one of these has been built, RADV's on-disk cache serves it: the 5 MB-SPIR-V pipeline above replays in 0.004 s the second time. The title and `fossilize_replay` share that cache (pipelines the title had built replay from it in milliseconds). - With the two slow programs found so far in the cache (931 624 B DXIL, built once in the game in 56.5 s, and the 1 094 136 B one, built once by the replay), a 90 s run on `main` `384f7f7` had no runaway: seven other compute programs of 869 588–1 200 756 B DXIL built in **4.6–6.9 s each**, the first `#101` came at 83.6 s as before, and the host process was at 16.4 GB with 6.1 GB of RAM free at the end. So it is a few pathological programs, not the size class. - Workaround on Linux until this is fixed: capture a run with Fossilize and `FOSSILIZE_DUMP_SYNC=1` (it records a pipeline before the driver compiles it, so a run that runs out of memory mid-build still has it), replay the capture one compute pipeline at a time (`--compute-pipeline-range i i+1`, ~60 s / ~16 GB for a slow one), with `MESA_SHADER_CACHE_MAX_SIZE` raised (the 1 GB default can evict them). The cache is per driver build, so a Mesa update needs it again, and so does any XCL change that alters the emitted programs. The capture contains translated game code, so it is not attached; I can replay it with other settings (DXC levels for #1096's question, other Mesa versions) if that helps. **Tested:** AMD Radeon RX 9070 16 GB (RADV GFX1201, Mesa 26.3.1 and 26.2.6), Ryzen 5 9600X, 30 GB RAM (zram); CachyOS, kernel 7.3.5; Proton Experimental's Wine, vkd3d-proton v3.1 + #257's patch + dxil-spirv `53aac418`, DXC 1.9.2609.5; XCL `main` `384f7f7`, `x86_64-pc-windows-gnu` release; retail 1.0.2.1. `fossilize_replay` from Steam's `ubuntu12_64`. **Not tested:** `XCL_PSO_PRELOAD=0` or `=graphics` on this list, a debug Mesa build, other RDNA generations, Windows on this card. **AI use:** T3 Code (Claude Opus 5.5) ran the captures and replays and wrote this comment from the logs; I checked it before posting.
Author
Owner

@⁠madaraXor on GitHub · 2026-11-24 13:04 UTC · original

Windows / AMD RDNA2 data point: the preload does grow memory without end here, inside amdxc64.dll

Setup: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003 (older than @⁠emirduran707's 32.0.31044.16), Ryzen 5 5600X, 16 GB RAM, Windows 10 Pro 22H2 (19045.6466) with the Agility SDK 1.620.2. Native D3D12. Release build of main 47efa2e + #684 / #605 / #615 / #495 (none of them touches pso_async), device_type = "lockhart", XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, A pressed by XCL_PRESS_AT every 10 s. used-pipelines.txt: 1 067 shader sets, from earlier runs that reached world loading on this machine.

Process commit from XCL_ACTIVITY, same build and input, one run each (a second run with the preload on had 26 052 MB at 64 s and 34 720 MB at 91 s):

s preload on XCL_PSO_PRELOAD=0
42 18 185 MB 15 864 MB
52 23 819 MB 16 109 MB
62 26 018 MB 16 109 MB
72 33 116 MB 16 755 MB
86 37 667 MB 16 862 MB (92 s)
  • Local video memory stays at ~5 GB in both: the growth is host memory.
  • The preload logged 1024 pipelines built ahead of their first use at 30.6 s and never reached 2048, so the growth after ~40 s is not many builds.
  • XCL_THREAD_DUMP_AT=55,75: xcl-pso-pre-0 is inside amdxc64.dll in both dumps (one driver compile for over 20 s); xcl-pso-pre-1 waits in dxc::compile for a DXC worker.
  • cdb -pv + !heap -s at 27.6 GB of commit (65 s): a private heap 0x8ca0000 with 5.1 GB committed, the process heap 3.5 GB.
  • On this card the driver took 75 853 ms for the largest world compute program (1 522 168 B of DXIL) when a bind built it during world loading in an earlier run, so a single build of that size is plausible here.

So the pattern of the Linux report (one preload build that does not end and grows) shows on Windows with this AMD driver too. With 16 GB of RAM it reaches the commit limit within two minutes at the title's first screen; one such run took the system's gamingservices.exe down with it. With XCL_PSO_PRELOAD=0 it is flat.

Not tested: a newer AMD driver on this card (the RX 9060 XT row with 32.0.31044.16 did not grow, so the driver version may matter), NVIDIA, which program the long build is.

AI use: Claude Code, Claude Opus 5.5 ran the runs on my PC, took the thread dumps and heap summary and wrote this comment. Counts, timings and offsets only.

**@⁠madaraXor** on GitHub · 2026-11-24 13:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7132309158) **Windows / AMD RDNA2 data point: the preload does grow memory without end here, inside `amdxc64.dll`** **Setup:** AMD Radeon RX 6700 XT 12 GB (RDNA2), driver **32.0.21045.29003** (older than @⁠emirduran707's 32.0.31044.16), Ryzen 5 5600X, 16 GB RAM, Windows 10 Pro 22H2 (19045.6466) with the Agility SDK 1.620.2. Native D3D12. Release build of `main` `47efa2e` + #684 / #605 / #615 / #495 (none of them touches `pso_async`), `device_type = "lockhart"`, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50`, A pressed by `XCL_PRESS_AT` every 10 s. `used-pipelines.txt`: 1 067 shader sets, from earlier runs that reached world loading on this machine. Process commit from `XCL_ACTIVITY`, same build and input, one run each (a second run with the preload on had 26 052 MB at 64 s and 34 720 MB at 91 s): | s | preload on | `XCL_PSO_PRELOAD=0` | |---|---|---| | 42 | 18 185 MB | 15 864 MB | | 52 | 23 819 MB | 16 109 MB | | 62 | 26 018 MB | 16 109 MB | | 72 | 33 116 MB | 16 755 MB | | 86 | 37 667 MB | 16 862 MB (92 s) | - Local video memory stays at ~5 GB in both: the growth is host memory. - The preload logged `1024 pipelines built ahead of their first use` at 30.6 s and never reached 2048, so the growth after ~40 s is not many builds. - `XCL_THREAD_DUMP_AT=55,75`: `xcl-pso-pre-0` is inside `amdxc64.dll` in both dumps (one driver compile for over 20 s); `xcl-pso-pre-1` waits in `dxc::compile` for a DXC worker. - `cdb -pv` + `!heap -s` at 27.6 GB of commit (65 s): a private heap `0x8ca0000` with 5.1 GB committed, the process heap 3.5 GB. - On this card the driver took 75 853 ms for the largest world compute program (1 522 168 B of DXIL) when a bind built it during world loading in an earlier run, so a single build of that size is plausible here. So the pattern of the Linux report (one preload build that does not end and grows) shows on Windows with this AMD driver too. With 16 GB of RAM it reaches the commit limit within two minutes at the title's first screen; one such run took the system's `gamingservices.exe` down with it. With `XCL_PSO_PRELOAD=0` it is flat. **Not tested:** a newer AMD driver on this card (the RX 9060 XT row with 32.0.31044.16 did not grow, so the driver version may matter), NVIDIA, which program the long build is. AI use: Claude Code, Claude Opus 5.5 ran the runs on my PC, took the thread dumps and heap summary and wrote this comment. Counts, timings and offsets only.
Author
Owner

@⁠zorde23 on GitHub · 2026-11-24 13:49 UTC · original

A Windows / AMD RDNA2 data point, and a plan.

Setup: RX 6750 XT 12 GB, driver 32.0.21045.29003; 32 GB RAM (commit limit ~44 GB, page file auto); Windows 11 Pro 26200;
AMD Ryzen 7 5700X; main 6efdabc / 47efa2e, release; the retail title of #505; used-pipelines.txt with ~1 195 shader sets from runs that
reached world loading.

Seen (no input, 60-90 s, XCL_NETWORK=0 XCL_ACTIVITY=1, commit from XCL's 2 s memory lines)

  • Preload on: commit 9 GB → 52-53 GB at ~44 s, back to ~17 GB, in every run (11 runs); 3 of 6 runs with A ended with
    0xC0000409 at the peak. XCL_PSO_PRELOAD=0: 15 GB.
  • Here the build does end: two compute programs (~14 MB and ~23 MB of translated DXIL) keep a xcl-pso-pre-* thread in
    the AMD compiler for 45-55 s each and CreateComputePipelineState returns 0x8007000e. The second only shows up once the
    first is out of the way (they share the single big-compile slot).
  • The refusal is not in the log: it goes through note_translation_error, whose first 40 reasons are used up by mesh
    warnings in the first seconds. Nothing is kept for a failed build, so every run builds both again.

Plan (two small PRs, drafts ready; the second would wait for #889 and #1113; happy to change direction)

  1. Log the driver's refusal of a translated compute PSO directly (hr, DXIL size, time in the driver).
  2. When the driver runs out of memory after working on a build ahead for ≥ 1 s, mark the shader set with a !<key> line in
    used-pipelines.txt (older builds pass over it); its pipelines then get the stand-in at once — what they got when the
    build failed — instead of being built again, ahead or at a bind. Other failures are retried. Measured on this machine:
    peak commit 53 → 53 → 20 → 21 GB over four runs (one set marked per run), and with A into world loading 36.5 GB with no
    second peak; smoke.ps1 60 s: main 52 659 MB / 1 534 frames, branch 21 953 MB / 1 536 frames (with the two sets
    already marked).

This does not help builds that never return (dxil-spirv/RADV above): nothing would be marked there.

Written with Claude Code from runs on this machine. (Runs 1-2 of the four used an earlier version of
change 2 that marked the same failure.)

**@⁠zorde23** on GitHub · 2026-11-24 13:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7133387068) A Windows / AMD RDNA2 data point, and a plan. **Setup:** RX 6750 XT 12 GB, driver 32.0.21045.29003; 32 GB RAM (commit limit ~44 GB, page file auto); Windows 11 Pro 26200; AMD Ryzen 7 5700X; `main` 6efdabc / 47efa2e, release; the retail title of #505; `used-pipelines.txt` with ~1 195 shader sets from runs that reached world loading. **Seen** (no input, 60-90 s, `XCL_NETWORK=0 XCL_ACTIVITY=1`, commit from XCL's 2 s memory lines) - Preload on: commit 9 GB → 52-53 GB at ~44 s, back to ~17 GB, in every run (11 runs); 3 of 6 runs with A ended with 0xC0000409 at the peak. `XCL_PSO_PRELOAD=0`: 15 GB. - Here the build does end: two compute programs (~14 MB and ~23 MB of translated DXIL) keep a `xcl-pso-pre-*` thread in the AMD compiler for 45-55 s each and `CreateComputePipelineState` returns 0x8007000e. The second only shows up once the first is out of the way (they share the single big-compile slot). - The refusal is not in the log: it goes through `note_translation_error`, whose first 40 reasons are used up by mesh warnings in the first seconds. Nothing is kept for a failed build, so every run builds both again. **Plan** (two small PRs, drafts ready; the second would wait for #889 and #1113; happy to change direction) 1. Log the driver's refusal of a translated compute PSO directly (hr, DXIL size, time in the driver). 2. When the driver runs out of memory after working on a build ahead for ≥ 1 s, mark the shader set with a `!<key>` line in `used-pipelines.txt` (older builds pass over it); its pipelines then get the stand-in at once — what they got when the build failed — instead of being built again, ahead or at a bind. Other failures are retried. Measured on this machine: peak commit 53 → 53 → 20 → 21 GB over four runs (one set marked per run), and with A into world loading 36.5 GB with no second peak; `smoke.ps1` 60 s: main 52 659 MB / 1 534 frames, branch 21 953 MB / 1 536 frames (with the two sets already marked). This does not help builds that never return (dxil-spirv/RADV above): nothing would be marked there. Written with Claude Code from runs on this machine. (Runs 1-2 of the four used an earlier version of change 2 that marked the same failure.)
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 15:58 UTC · original

Follow-up to my Windows data point above: I now see the runaway growth on Windows / NVIDIA too, and here it is in DXC, not in the driver.

RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, main 930e8b4, scripts/smoke.ps1 60 s on a retail title with A pressed every 4 s from 20 s (so the menus only, no world load in these 60 s). used-pipelines.txt: 531 lines, after several world-loading runs on this machine.

peak commit (60 s) commit at 24 / 42 / 60 s
preload on (default) 92.2 GB 38.5 / 66.3 / 92.2 GB
XCL_PSO_PRELOAD=0 23.3 GB 14.8 / 16.2 / 23.3 GB

The same build earlier today, before the list grew from those runs, peaked at 20.7 GB with preload on.

Thread dumps at 25, 35 and 45 s (a build of #253's head on the same main, so the dumps are safe; it also peaked at 92.9 GB): xcl-dxc-0 and xcl-dxc-3 inside dxcompiler.dll in all three, the same two thread ids; every other xcl-dxc-* and xcl-pso-pre-* thread idle; no thread in nvwgf2umx.dll / nvgpucomp64.dll. So the growth (~1.5 GB/s) comes from two DXC compiles the preload started, each running at least 20 s. I have not identified which programs they are; @⁠throny's table above (the HLSL over 8 MB that dxc.rs compiles at -O0) would be my first guess, not checked.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-24 15:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7136912671) Follow-up to my Windows data point above: I now see the runaway growth on Windows / NVIDIA too, and here it is in DXC, not in the driver. RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, `main` `930e8b4`, `scripts/smoke.ps1` 60 s on a retail title with A pressed every 4 s from 20 s (so the menus only, no world load in these 60 s). `used-pipelines.txt`: 531 lines, after several world-loading runs on this machine. | | peak commit (60 s) | commit at 24 / 42 / 60 s | |---|---|---| | preload on (default) | 92.2 GB | 38.5 / 66.3 / 92.2 GB | | `XCL_PSO_PRELOAD=0` | 23.3 GB | 14.8 / 16.2 / 23.3 GB | The same build earlier today, before the list grew from those runs, peaked at 20.7 GB with preload on. Thread dumps at 25, 35 and 45 s (a build of #253's head on the same `main`, so the dumps are safe; it also peaked at 92.9 GB): `xcl-dxc-0` and `xcl-dxc-3` inside `dxcompiler.dll` in all three, the same two thread ids; every other `xcl-dxc-*` and `xcl-pso-pre-*` thread idle; no thread in `nvwgf2umx.dll` / `nvgpucomp64.dll`. So the growth (~1.5 GB/s) comes from two DXC compiles the preload started, each running at least 20 s. I have not identified which programs they are; @⁠throny's table above (the HLSL over 8 MB that `dxc.rs` compiles at `-O0`) would be my first guess, not checked. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠luis-7654 on GitHub · 2026-11-24 16:53 UTC · original · edited 2026-11-24 16:59 UTC

Linux / NVIDIA data point, with the dxil-spirv fix (53aac418) in: one run with the preload on took all memory in the menus and froze the machine.

Setup: RTX 2060 6 GB (NVIDIA 595.71.05), i7-13700K (24 threads), 32 GB RAM + 16 GB zram swap, NixOS (kernel 6.18.60), GE-Proton11-14's Wine, vkd3d-proton v3.1 + #257's patch, DXC 1.9.2609.5, XCL_DXC_THREADS=4. XCL release: main b7aa9f3 + #793 #794 #640 (budget unset) #605 #1110 #751 and local switches (the two compute programs of 1.6–1.8 MB DXIL that had not finished in earlier runs refused before the driver, and programs of 4 MB of DXIL or more). used-pipelines.txt has about 1 000 lines now (1 035 after later runs); not counted at the time.

Seen, system memory sampled every 2 s, still in the menus (the last presented frame in the log is at 42 s):

wall clock MemAvailable swap free
17:32:36 8 072 MB 13 560 MB
17:32:38 3 735 MB 13 336 MB
17:32:42 3 562 MB 9 576 MB
17:32:46 3 564 MB 5 644 MB
17:32:50 1 208 MB 0

About 20 GB of RAM and (uncompressed) zram swap in 14 s, so the same order as @⁠Anon64's ~1.5 GB/s. No OOM kill and no Xid in the journal; the machine stopped responding and was rebooted. I have no thread dump, so I can't say whether it was DXC or the driver. The only compute program that had reached the driver and not come back was a 799 KB one; that does not say what DXC was doing.

  • Four earlier runs of the same day with the preload on and a shorter list did not run away in the menus, so it is not every run.
  • With XCL_PSO_PRELOAD=0 the next run stayed flat through the same stretch (~20 GB available, swap untouched). It also refused that 799 KB program, so the preload is not the only difference.
  • Past the menus, with the preload off, the process still reached a 13 GB RAM + 4 GB swap cgroup limit 120–140 s after start, in the story load (three runs; in the last two, XCL_DXC_THREADS=4 and =1, the thread that hit the limit was an xcl-dxc-* one, which only says who allocated last, and the cgroup grew the same way: 13.3 GB at ~110 s in both). About 10.5 GB of non-local video memory is on top of that and not in the cgroup.

Edited – thread dumps of the story load, preload off (XCL_PSO_PRELOAD=0 XCL_THREAD_DUMP_AT=60,80,92,102,110, XCL_DXC_THREADS=4, one run, plus #1248):

s cgroup threads in dxcompiler.dll
64 7.2 GB 0 (dump at 60 s)
88 10.9 GB 0 (dumps at 80 and 92 s)
100 12.3 GB 0 (dump at 102 s)
113 13.3 GB, at my limit 1 (dump at 110 s)

So the story-load growth here, unlike the menu runaway above, is not DXC until the limit is already reached. It does not say what the rest is. The runs with the 13 GB + 4 GB cgroup were ended by that limit, with about 4 GB of RAM and 12 GB of swap still free on the machine.

Workaround that kept the machine usable: systemd-run --user --scope -p MemoryMax=13G -p MemorySwapMax=4G … around the Wine process. The kernel then ends only the title.

Not tested: a thread dump during the menu runaway, the preload on with XCL_DXC_THREADS=1, which program it is. I can run a capped pair with XCL_THREAD_DUMP_AT if that helps.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on the owner's machine at their request, read the logs and wrote and posted this comment. The text was not reviewed line by line by a person before posting.

**@⁠luis-7654** on GitHub · 2026-11-24 16:53 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7138373299) · edited 2026-11-24 16:59 UTC Linux / NVIDIA data point, with the dxil-spirv fix (`53aac418`) in: one run with the preload on took all memory in the menus and froze the machine. **Setup:** RTX 2060 6 GB (NVIDIA 595.71.05), i7-13700K (24 threads), 32 GB RAM + 16 GB zram swap, NixOS (kernel 6.18.60), GE-Proton11-14's Wine, vkd3d-proton v3.1 + #257's patch, DXC 1.9.2609.5, `XCL_DXC_THREADS=4`. XCL release: `main` `b7aa9f3` + #793 #794 #640 (budget unset) #605 #1110 #751 and local switches (the two compute programs of 1.6–1.8 MB DXIL that had not finished in earlier runs refused before the driver, and programs of 4 MB of DXIL or more). `used-pipelines.txt` has about 1 000 lines now (1 035 after later runs); not counted at the time. **Seen**, system memory sampled every 2 s, still in the menus (the last presented frame in the log is at 42 s): | wall clock | MemAvailable | swap free | |---|---|---| | 17:32:36 | 8 072 MB | 13 560 MB | | 17:32:38 | 3 735 MB | 13 336 MB | | 17:32:42 | 3 562 MB | 9 576 MB | | 17:32:46 | 3 564 MB | 5 644 MB | | 17:32:50 | 1 208 MB | 0 | About 20 GB of RAM and (uncompressed) zram swap in 14 s, so the same order as @⁠Anon64's ~1.5 GB/s. No OOM kill and no Xid in the journal; the machine stopped responding and was rebooted. I have no thread dump, so I can't say whether it was DXC or the driver. The only compute program that had reached the driver and not come back was a 799 KB one; that does not say what DXC was doing. - Four earlier runs of the same day with the preload on and a shorter list did not run away in the menus, so it is not every run. - With `XCL_PSO_PRELOAD=0` the next run stayed flat through the same stretch (~20 GB available, swap untouched). It also refused that 799 KB program, so the preload is not the only difference. - Past the menus, with the preload off, the process still reached a 13 GB RAM + 4 GB swap cgroup limit 120–140 s after start, in the story load (three runs; in the last two, `XCL_DXC_THREADS=4` and `=1`, the thread that hit the limit was an `xcl-dxc-*` one, which only says who allocated last, and the cgroup grew the same way: 13.3 GB at ~110 s in both). About 10.5 GB of non-local video memory is on top of that and not in the cgroup. **Edited – thread dumps of the story load, preload off** (`XCL_PSO_PRELOAD=0 XCL_THREAD_DUMP_AT=60,80,92,102,110`, `XCL_DXC_THREADS=4`, one run, plus #1248): | s | cgroup | threads in `dxcompiler.dll` | |---|---|---| | 64 | 7.2 GB | 0 (dump at 60 s) | | 88 | 10.9 GB | 0 (dumps at 80 and 92 s) | | 100 | 12.3 GB | 0 (dump at 102 s) | | 113 | 13.3 GB, at my limit | 1 (dump at 110 s) | So the story-load growth here, unlike the menu runaway above, is not DXC until the limit is already reached. It does not say what the rest is. The runs with the 13 GB + 4 GB cgroup were ended by that limit, with about 4 GB of RAM and 12 GB of swap still free on the machine. **Workaround that kept the machine usable:** `systemd-run --user --scope -p MemoryMax=13G -p MemorySwapMax=4G …` around the Wine process. The kernel then ends only the title. **Not tested:** a thread dump during the menu runaway, the preload on with `XCL_DXC_THREADS=1`, which program it is. I can run a capped pair with `XCL_THREAD_DUMP_AT` if that helps. AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on the owner's machine at their request, read the logs and wrote and posted this comment. The text was not reviewed line by line by a person before posting.
Author
Owner

@⁠lucsoft on GitHub · 2026-11-24 18:08 UTC · original

Linux / RDNA3 (RADV): one ~1.3 MB compute program does not finish in RADV here. Its memory grows without a limit, past 78 GB, where @⁠ClosetPie107's on RDNA4 finished at 15.9 GB. It's the same with and without #1316.

Setup: RX 7800 XT 16 GB (RADV NAVI32 / GFX11, Mesa 26.3.1), Ryzen 7 7800X3D, 30 GB RAM + zram + swap file, NixOS, kernel 7.3.5, Wine 11.21 Staging, vkd3d-proton v3.1 (relaxed vtables, -Db_ndebug=true) with dxil-spirv 53aac418 (#775), DXC 1.9.2609. XCL main b7aa9f3 + #1316 (ee904f1) + b8b1f49 reverted (#1307) + #871's memory commit, #684, #688, #1288, #1279. Release, cross-built for x86_64-pc-windows-gnu. Not the title: xcl shaders shaders.rpf --precompile --pipelines on the retail pack, XCL_PIPELINE_THREADS=1, each run in a systemd scope with MemoryMax.

Seen:

  • The DXC step runs through (44 s, warm cache). In the pipeline step, every run gets 925 pipelines made, 0 refused, then one build grows by ~5 GB a minute until a limit ends it:
run end peak (RAM + swap of the process)
XCL_COMPACT_CS unset (auto) scope limit ~78 GB
XCL_COMPACT_CS=0 stopped by me 52 GB, still growing
auto, with VKD3D_SHADER_DUMP_PATH scope limit at ~100 s ~32 GB
  • It is not one of the programs of 4 MB DXIL or more: #1279 holds those back for the end, and the pass never gets there.
  • vkd3d-proton's shader dump names it. The last file before the growth is 5d3acfc84ed3b957: .dxil written at 19:03:04, its .spv at 19:03:06, then nothing more for 100 s while memory grows. So dxil-spirv is done after ~2 s and the time is in RADV.

The program (vkd3d-proton's hash 5d3acfc84ed3b957):

this one (RDNA3) @⁠ClosetPie107's slow one (RDNA4, above)
DXIL 1 281 956 B 1 094 136 B
SPIR-V 8 738 592 B 5 077 268 B
blocks (OpLabel) 13 024 10 377 (the 931 624 B one)
OpPhi 135 940 13 110 (the 931 624 B one)
RADV no end; > 78 GB 59.99 s, 15.9 GB

spirv-val --target-env vulkan1.3 accepts it. It's one function, LocalSize 32 1 1. So the block count is similar to yours but there are about 10× as many phis. My guess, not verified: that's what RADV can't handle here.

A correction: the "~16 GB" quoted from me in #1316 and on #505 was not a finished build. My guard stopped that run at 16–17 GB, so I never saw where it would end.

Next here: build this one SPIR-V as a compute pipeline outside the game, with no Wine (a small Vulkan program), to check it with RADV_DEBUG options and Mesa 26.2, and file it with Mesa if it holds up. I can share the hash and sizes, but not the program itself (it is translated game code).

Not tested: other RDNA3 cards, a debug Mesa build, Windows on this card, whether this is the program my title runs ran out of memory on earlier.

AI use: Claude Code (Claude Opus 5.5) ran the builds and measurements and wrote this comment. The runs were real, on the hardware above.

**@⁠lucsoft** on GitHub · 2026-11-24 18:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7140205190) **Linux / RDNA3 (RADV): one ~1.3 MB compute program does not finish in RADV here. Its memory grows without a limit, past 78 GB, where @⁠ClosetPie107's on RDNA4 finished at 15.9 GB.** It's the same with and without #1316. **Setup:** RX 7800 XT 16 GB (RADV NAVI32 / GFX11, Mesa 26.3.1), Ryzen 7 7800X3D, 30 GB RAM + zram + swap file, NixOS, kernel 7.3.5, Wine 11.21 Staging, vkd3d-proton v3.1 (relaxed vtables, `-Db_ndebug=true`) with dxil-spirv `53aac418` (#775), DXC 1.9.2609. XCL `main` `b7aa9f3` + #1316 (`ee904f1`) + `b8b1f49` reverted (#1307) + #871's memory commit, #684, #688, #1288, #1279. Release, cross-built for `x86_64-pc-windows-gnu`. Not the title: `xcl shaders shaders.rpf --precompile --pipelines` on the retail pack, `XCL_PIPELINE_THREADS=1`, each run in a systemd scope with `MemoryMax`. **Seen:** - The DXC step runs through (44 s, warm cache). In the pipeline step, every run gets 925 pipelines made, 0 refused, then one build grows by ~5 GB a minute until a limit ends it: | run | end | peak (RAM + swap of the process) | |---|---|---| | `XCL_COMPACT_CS` unset (`auto`) | scope limit | ~78 GB | | `XCL_COMPACT_CS=0` | stopped by me | 52 GB, still growing | | `auto`, with `VKD3D_SHADER_DUMP_PATH` | scope limit at ~100 s | ~32 GB | - It is not one of the programs of 4 MB DXIL or more: #1279 holds those back for the end, and the pass never gets there. - vkd3d-proton's shader dump names it. The last file before the growth is `5d3acfc84ed3b957`: `.dxil` written at 19:03:04, its `.spv` at 19:03:06, then nothing more for 100 s while memory grows. So dxil-spirv is done after ~2 s and the time is in RADV. **The program** (vkd3d-proton's hash `5d3acfc84ed3b957`): | | this one (RDNA3) | @⁠ClosetPie107's slow one (RDNA4, above) | |---|---|---| | DXIL | 1 281 956 B | 1 094 136 B | | SPIR-V | 8 738 592 B | 5 077 268 B | | blocks (`OpLabel`) | 13 024 | 10 377 (the 931 624 B one) | | `OpPhi` | **135 940** | 13 110 (the 931 624 B one) | | RADV | no end; > 78 GB | 59.99 s, 15.9 GB | `spirv-val --target-env vulkan1.3` accepts it. It's one function, `LocalSize 32 1 1`. So the block count is similar to yours but there are about 10× as many phis. My guess, **not verified**: that's what RADV can't handle here. **A correction:** the "~16 GB" quoted from me in #1316 and on #505 was not a finished build. My guard stopped that run at 16–17 GB, so I never saw where it would end. **Next here:** build this one SPIR-V as a compute pipeline outside the game, with no Wine (a small Vulkan program), to check it with `RADV_DEBUG` options and Mesa 26.2, and file it with Mesa if it holds up. I can share the hash and sizes, but not the program itself (it is translated game code). **Not tested:** other RDNA3 cards, a debug Mesa build, Windows on this card, whether this is the program my title runs ran out of memory on earlier. AI use: Claude Code (Claude Opus 5.5) ran the builds and measurements and wrote this comment. The runs were real, on the hardware above.
Author
Owner

@⁠zorde23 on GitHub · 2026-11-24 18:57 UTC · original

Follow-up to my earlier comment: change 2 of the plan (mark a shader set whose build ahead the AMD driver gave up on, and
give its pipelines the stand-in in later runs) is rebased on main 9e3831e and will go up as a draft stacked on #1300.

Re-measured today on the RX 6750 XT (preload on, no input, a watchdog at 90 % of the commit limit, #1321 applied):
main reached the limit at ~140 s, main + #1398 at ~49 s; with the two sets marked, 240 s at 34-36 GB, with or
without #1398. A mark is only written after a build that had its own big-compile turn, so an out-of-memory next to a
title thread that waits for the pipeline is retried. It does not help the other reports here (memory growing inside DXC,
or a driver that never answers): only a driver's out-of-memory answer marks a set. Happy to drop it if #1398 or another fix makes the driver take
these programs.

Written with Claude Code from runs on this machine.

**@⁠zorde23** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7141379639) Follow-up to my earlier comment: change 2 of the plan (mark a shader set whose build ahead the AMD driver gave up on, and give its pipelines the stand-in in later runs) is rebased on `main` 9e3831e and will go up as a draft stacked on #1300. Re-measured today on the RX 6750 XT (preload on, no input, a watchdog at 90 % of the commit limit, #1321 applied): `main` reached the limit at ~140 s, `main` + #1398 at ~49 s; with the two sets marked, 240 s at 34-36 GB, with or without #1398. A mark is only written after a build that had its own big-compile turn, so an out-of-memory next to a title thread that waits for the pipeline is retried. It does not help the other reports here (memory growing inside DXC, or a driver that never answers): only a driver's out-of-memory answer marks a set. Happy to drop it if #1398 or another fix makes the driver take these programs. Written with Claude Code from runs on this machine.
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-24 23:34 UTC · original

A Windows / NVIDIA data point that ties this issue to the black screen after loading (#505), with the switches that get past it here.

Setup

  • NVIDIA GeForce RTX 5080 16 GB (driver 32.0.16.2114, 32-lane waves), Ryzen 7 9800X3D, 31 GB RAM + 32 GB page file, Windows 11 Home 26200, release builds.
  • Retail title 1.0.2.1, XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 16 to 120 s.
  • main c4d37be for the plain runs. The timing runs used main 689f2db plus local log lines only (compile start / end, bind wait start / end, which job each xcl-pso-* worker takes); nothing else was changed and that code is not published.

Default settings: one build ahead never ends, and a bind waits for it for good

  • At 13.6 s xcl-pso-pre-1 starts the driver compile of one compute pipeline with 29 215 776 B of DXIL (record 56c0cd3b82a00c6e; its HLSL is 30.3 MB, 88 863 instructions, so it compiles at -O0). At 600 s the thread is still in nvgpucomp64.dll (thread dumps at 300 s and 560 s).
  • At 143.7 s one of the title's render worker threads binds that pipeline (set_pipeline_state → resolve_for_bind → resolve_wait, no budget) and never returns. Presents stay at 0 from ~70 s to the end of every run (240 s, 600 s and two 900 s runs).
  • Two 900 s runs with warm caches stop at the same place (409 and 419 compute pipelines built, 231 of the second run's from driver blobs), so it is not a cold-cache effect.

With XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=250: past the black screen

  • Presents come back at ~175 s: world frames at under 1 fps (about 840 draws and 2 800 dispatches a frame), and the opening credits text is drawn. The scene behind it stays empty: flat frames, e.g. rgb(32,32,44).
  • Three 300 s runs ended three ways: a read at 0xb0 at +0x540abf5 (216 s), the watchdog at +0x23cf683 (285 s), and a read at +0x8ac5c4 (225 s).
  • Totals of one run: 23 538 draws with translated pipelines, 27 313 skipped, 65 536 dispatches, 6 160 skipped. The skips are ExecuteIndirect with a pipeline that is still being built.

What the xcl-pso-* workers do meanwhile (300 s, same switches)

  • 1 164 pipelines were sent to the 7 workers. 133 graphics pipelines were built (372 ms each on average), the last at 87.7 s. 405 compute pipelines were built.
  • From ~70 s every worker holds a compute build: two never finish, the others take 100 s or more each. 619 sent pipelines were never taken.
  • With three more workers that take only graphics pipelines (a local experiment), graphics builds go on to the end of the run, but each takes 20–35 s in this phase (31 built after 90 s). So ordering the queue (#628) is not enough once every worker is inside a long compute build, and workers of their own help only a little.

Not tested

  • AMD, Linux. #1278, #1774 and #1526, which look like the fixes for the 29 MB program: I did not build them.

Claude Code wrote this report from runs on the machine above. The session ran as Claude Opus 5.5 and later as Claude Fable 5.2; the account owner directed the work.

**@⁠tippythetaidum** on GitHub · 2026-11-24 23:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7147562957) A Windows / NVIDIA data point that ties this issue to the black screen after loading (#505), with the switches that get past it here. **Setup** - NVIDIA GeForce RTX 5080 16 GB (driver 32.0.16.2114, 32-lane waves), Ryzen 7 9800X3D, 31 GB RAM + 32 GB page file, Windows 11 Home 26200, release builds. - Retail title 1.0.2.1, `XCL_NETWORK=0 XCL_ACTIVITY=1`, A pressed every 4 s from 16 to 120 s. - `main` `c4d37be` for the plain runs. The timing runs used `main` `689f2db` plus local log lines only (compile start / end, bind wait start / end, which job each `xcl-pso-*` worker takes); nothing else was changed and that code is not published. **Default settings: one build ahead never ends, and a bind waits for it for good** - At 13.6 s `xcl-pso-pre-1` starts the driver compile of one compute pipeline with 29 215 776 B of DXIL (record `56c0cd3b82a00c6e`; its HLSL is 30.3 MB, 88 863 instructions, so it compiles at `-O0`). At 600 s the thread is still in `nvgpucomp64.dll` (thread dumps at 300 s and 560 s). - At 143.7 s one of the title's render worker threads binds that pipeline (`set_pipeline_state` → `resolve_for_bind` → `resolve_wait`, no budget) and never returns. Presents stay at 0 from ~70 s to the end of every run (240 s, 600 s and two 900 s runs). - Two 900 s runs with warm caches stop at the same place (409 and 419 compute pipelines built, 231 of the second run's from driver blobs), so it is not a cold-cache effect. **With `XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=250`: past the black screen** - Presents come back at ~175 s: world frames at under 1 fps (about 840 draws and 2 800 dispatches a frame), and the opening credits text is drawn. The scene behind it stays empty: flat frames, e.g. rgb(32,32,44). - Three 300 s runs ended three ways: a read at 0xb0 at `+0x540abf5` (216 s), the watchdog at `+0x23cf683` (285 s), and a read at `+0x8ac5c4` (225 s). - Totals of one run: 23 538 draws with translated pipelines, 27 313 skipped, 65 536 dispatches, 6 160 skipped. The skips are `ExecuteIndirect with a pipeline that is still being built`. **What the `xcl-pso-*` workers do meanwhile (300 s, same switches)** - 1 164 pipelines were sent to the 7 workers. 133 graphics pipelines were built (372 ms each on average), the last at 87.7 s. 405 compute pipelines were built. - From ~70 s every worker holds a compute build: two never finish, the others take 100 s or more each. 619 sent pipelines were never taken. - With three more workers that take only graphics pipelines (a local experiment), graphics builds go on to the end of the run, but each takes 20–35 s in this phase (31 built after 90 s). So ordering the queue (#628) is not enough once every worker is inside a long compute build, and workers of their own help only a little. **Not tested** - AMD, Linux. #1278, #1774 and #1526, which look like the fixes for the 29 MB program: I did not build them. Claude Code wrote this report from runs on the machine above. The session ran as Claude Opus 5.5 and later as Claude Fable 5.2; the account owner directed the work.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-24 23:47 UTC · original · edited 2026-11-25 02:12 UTC

Linux / RTX 5080 follow-up to the Windows run above. With XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=250, the first wait on event 82 returned at ~171.38 s after 96.16 s. Presents resumed (one in each of the activity windows ending at 174.65 and 176.66 s). The sampled frame at 180 s was black. At 187.231 s the log reports D3D12 device removed: 0x887a0005; no opening credits or 3D scene confirmed here. The last counter sample at 179.459 s had 2,048 draws and 209 dispatches skipped.

EndeavourOS, Ryzen 9 9950X3D, ~60 GiB usable RAM, RTX 5080 16 GB, NVIDIA 620.73.04, Proton Experimental. Instrumented 689f2db + #1368 (0074749a), HLSL path (XCL_DIRECT_DXIL=0, XCL_COMPACT_CS=auto), warm caches. This was one run with both switches. The unbounded control on the same binary remained at event 82 through 240 s (trace on #505). The input history file had 2 entries here versus 45 in that control; preload was disabled here.

Test orchestration and report assisted by Codex (GPT-6.2 Astra).

Breadcrumb cross-check: both our 50 ms and 250 ms Proton captures contain one reported potential crash region with compute hash aca5623498d28969, a 160×90×1 dispatch and a UAV barrier. We recomputed vkd3d’s FNV-1 hash over the cached DXIL, then matched all 119,872 bytes to the translated-cache record for console CS b78fa10b425b8e54. This links the Linux observation to the additional 160×90 dispatch at the second watchdog release in Windows run B on #505. On Linux the 250 ms run returned from driver creation of that pipeline at 74.965 s (1 ms with a supplied blob). Both diagnostics locate outstanding GPU work; neither establishes which command caused the loss.

Offline translation check for this dispatch: exported console record b78fa10b425b8e54 with the instrumented reference binary and clean main 8e87fc7b62a87ea589ccb9ea6182f514016cf7db (xcl shaders … --export-hlsl … --record-hash b78fa10b425b8e54 --windows 4 --split 1, XCL_COMPACT_CS=auto, HLSL path). Both exports were byte-identical (259,683 bytes). Freshly compiled main output using the same DXC DLLs (-E main -T cs_6_6 -HV 2021) matched all 119,872 bytes of the DXIL from the Proton loss. This checks translation of one shader; runtime inputs, scheduling and upstream passes can still change.

Sparse fence check on the same Proton stack and settings, with timeout-site logging and periodic thread dumps disabled. At 200.370 and 205.370 s, both five-second waits came from Sparse::begin_slot during upload-slot reuse. The sparse fence remained at 37977 (wanted 37982, then 37983). rb_value was still zero at both points; the title→sparse queue wait in readback_after_execute had never been enqueued on that state. The last sparse copy fence was 37922, already passed. This distinguishes this run from the readback queue cycle reported in #505. A present was counted at 194.365 s, the sampled frame at 195 s was flat RGB(32,32,44), and 0x887a0005 was reported at 205.373 s. The timeout identifies where the CPU noticed lost GPU progress; it does not establish why the GPU stopped. Two prior attempts with the thread sampler enabled exited in the sampler thread near 88 s and did not reach this measurement.

Standalone regression on clean main 8c4a46a3c2d50498691cbda79cbbf4fadb45fbe8 with test-only additions, same Linux/Proton GPU setup. A one-slot fixture uses a real D3D12 queue and a gated fence signal for value 1. No GPU commands use the test allocator. With the gate open and completion verified, acquisition succeeds. With the gate withheld across the five-second wait, begin_slot returns slot 0 while the completed value is still 0 and the slot requires 1 (focused test failed in 5.76 s). This reproduces the slot-acquisition error without running a game or resetting live GPU memory. It does not explain why GPU progress initially stopped.

Linux/Proton Experimental, RTX 5080 (620.73.04), clean main 656c0e8ca070bdc9d7cb197d264792ef49304865 after #1969. XCL_DIRECT_DXIL=0, XCL_COMPACT_CS=auto, 240 s, copy of the previous warm cache. For the compute record b78fa10b425b8e54 associated with the earlier 160×90×1 breadcrumb, the offline DXC output changed from 119872 to 126392 bytes. The runtime wrote the new payload byte-for-byte under a new translation-cache identity. VKD3D hashes: aca5623498d28969 → 76ae2178518a931f. The first texture gather now has a descriptor validity guard; actual descriptor values were not sampled.

1606 PresentX calls by the 240 s cap. The 239.326 s activity window still counted one present, 323 draws and 1515 dispatches; no device removal recorded before the cap. Captures at 225 and 240 s still showed a flat dark frame. This is one clean-main run with multiple upstream changes and does not isolate the effect of #1969 or demonstrate a rendered 3D scene. Analysis and report assisted by Codex (GPT-6.2 Astra).

Repeat on the same clean 656c0e8c executable, same settings, with a copy of the cache populated by the 240 s run and a 360 s time limit. This attempt exited before the input step. Logo captured at 30 s, black at 45 s. The 50.402 s activity window counted five presents. At 53.545 s the sparse queue reported fence 19837 with target 19842 after a five-second wait. D3D12 reported 0x887a0005 at 53.550 s and Proton returned 5. VKD3D started and finished its breadcrumb analysis without listing a command interval. The earlier 240 s observation is therefore not a reproducible stability bound; these two runs cannot establish a cache-related cause. Codex (GPT-6.2 Astra) assisted with the test and report.

A second attempt from an independent copy of the same warm-cache seed as the 53.550 s failure, using the identical executable, inputs and 360 s limit, reached the cap at 360.001 s (1665 PresentX calls). Loading artwork was visible at 45 and 75 s; late captures through the cap were flat gray or black. Last nonzero present window ended at 350.257 s. No D3D12 device removal was logged before the cap. There were 18 Wait64BitValueX two-second timeouts before the cap and driver PSO compilations still finishing at 357 s. These observations neither locate the rendering error nor establish that a timeout caused it. The same warm seed permits both outcomes. Test and report assisted by Codex (GPT-6.2 Astra).

Visible checkpoint on Linux/RTX 5080. On 656c0e8c with a local diagnostic that labels the existing try_gpu_wait fallback branches, the capture at the runner's 345 s mark shows the opening Director of Art credit on black, after the gray/black frames. No recognizable 3D scene in the sampled frames. Same Proton setup and warm seed as above, XCL_DIRECT_DXIL=0. The title logged a read exception 0xc0000005 at title offset +0x4f28df1 (334.813 s on the XCL clock); Proton returned 3 before the 360 s cap.

All 24 logged two-second Wait64 CPU timeouts on this run were for one non-UMA word. At entry to the poll, GetCompletedValue() >= target for XCL's per-address bridge fence, while the CPU word did not satisfy >= target. First timeout: target 0x68c, CPU word 0x687 after the poll. This narrows the branch but does not identify the writer or explain the exception. An earlier 240 s trial with the same probe reached gray with zero logged CPU timeouts; another lost the device before reaching this stage. The deferred-write and list-replay observations in #562 are relevant precedents. Test and report assisted by Codex (GPT-6.2 Astra).

Unmodified upstream c00f3fcfce59bb4dfd3a1f96bbc84c60e765b538, same RTX 5080 / 620.73.04 / Proton Experimental, HLSL path and starting cache seed, cap extended to 420 s. The 28 desktop captures (15 s interval) show loading artwork, then black or gray; none captured the credit. 1651 frames shown / 1652 PresentX calls; the last nonzero present window ended at 409.273 s. XCL logged 29 CPU Wait64 timeouts, no unhandled title exception and no D3D12 device removal through the cap. The compiled payload for b78fa10b425b8e54 was 124820 bytes, VKD3D hash 4939eb52b2ab2f53. One run on this revision cannot establish a visual regression. Assisted by Codex (GPT-6.2 Astra).

Continuous-display repeat of c00f3fcf using the same binary, starting cache and 420 s limit. The isolated X11 recording captured 5005 frames (nominal 15 fps, largest timestamp gap 134 ms). After the last loading artwork at video 83.933 s, the display remained black or flat gray, sometimes letterboxed. A scan calibrated against the prior readable credit found no credit or recognizable scene before termination. The 252.839 s XCL activity window still counted 1 present, 830 draws and 2307 dispatches. The title logged a read exception at +0x4684e7 (0xc0000005) at XCL 327.372 s; Proton returned 5. This ends the repeat before the previous credit capture (estimated XCL 341 s), so it cannot establish that the credit is unreachable on this revision. Codex (GPT-6.2 Astra) assisted.

**@⁠Alm0stSurely** on GitHub · 2026-11-24 23:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7147801424) · edited 2026-11-25 02:12 UTC Linux / RTX 5080 follow-up to the Windows run above. With `XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=250`, the first wait on event 82 returned at ~171.38 s after 96.16 s. Presents resumed (one in each of the activity windows ending at 174.65 and 176.66 s). The sampled frame at 180 s was black. At 187.231 s the log reports `D3D12 device removed: 0x887a0005`; no opening credits or 3D scene confirmed here. The last counter sample at 179.459 s had 2,048 draws and 209 dispatches skipped. EndeavourOS, Ryzen 9 9950X3D, ~60 GiB usable RAM, RTX 5080 16 GB, NVIDIA 620.73.04, Proton Experimental. Instrumented `689f2db` + #1368 (`0074749a`), HLSL path (`XCL_DIRECT_DXIL=0`, `XCL_COMPACT_CS=auto`), warm caches. This was one run with both switches. The unbounded control on the same binary remained at event 82 through 240 s ([trace on #505](https://git.gtahub.st/github/xcl-dev--xcl/issues/505)). The input history file had 2 entries here versus 45 in that control; preload was disabled here. Test orchestration and report assisted by Codex (GPT-6.2 Astra). Breadcrumb cross-check: both our 50 ms and 250 ms Proton captures contain one reported potential crash region with compute hash `aca5623498d28969`, a 160×90×1 dispatch and a UAV barrier. We recomputed vkd3d’s FNV-1 hash over the cached DXIL, then matched all 119,872 bytes to the translated-cache record for console CS `b78fa10b425b8e54`. This links the Linux observation to the additional 160×90 dispatch at the second watchdog release in [Windows run B on #505](https://git.gtahub.st/github/xcl-dev--xcl/issues/505). On Linux the 250 ms run returned from driver creation of that pipeline at 74.965 s (1 ms with a supplied blob). Both diagnostics locate outstanding GPU work; neither establishes which command caused the loss. Offline translation check for this dispatch: exported console record `b78fa10b425b8e54` with the instrumented reference binary and clean main `8e87fc7b62a87ea589ccb9ea6182f514016cf7db` (`xcl shaders … --export-hlsl … --record-hash b78fa10b425b8e54 --windows 4 --split 1`, `XCL_COMPACT_CS=auto`, HLSL path). Both exports were byte-identical (259,683 bytes). Freshly compiled main output using the same DXC DLLs (`-E main -T cs_6_6 -HV 2021`) matched all 119,872 bytes of the DXIL from the Proton loss. This checks translation of one shader; runtime inputs, scheduling and upstream passes can still change. Sparse fence check on the same Proton stack and settings, with timeout-site logging and periodic thread dumps disabled. At 200.370 and 205.370 s, both five-second waits came from `Sparse::begin_slot` during upload-slot reuse. The sparse fence remained at 37977 (wanted 37982, then 37983). `rb_value` was still zero at both points; the title→sparse queue wait in `readback_after_execute` had never been enqueued on that state. The last sparse copy fence was 37922, already passed. This distinguishes this run from the readback queue cycle reported in #505. A present was counted at 194.365 s, the sampled frame at 195 s was flat RGB(32,32,44), and `0x887a0005` was reported at 205.373 s. The timeout identifies where the CPU noticed lost GPU progress; it does not establish why the GPU stopped. Two prior attempts with the thread sampler enabled exited in the sampler thread near 88 s and did not reach this measurement. Standalone regression on clean main `8c4a46a3c2d50498691cbda79cbbf4fadb45fbe8` with test-only additions, same Linux/Proton GPU setup. A one-slot fixture uses a real D3D12 queue and a gated fence signal for value 1. No GPU commands use the test allocator. With the gate open and completion verified, acquisition succeeds. With the gate withheld across the five-second wait, `begin_slot` returns slot 0 while the completed value is still 0 and the slot requires 1 (focused test failed in 5.76 s). This reproduces the slot-acquisition error without running a game or resetting live GPU memory. It does not explain why GPU progress initially stopped. Linux/Proton Experimental, RTX 5080 (620.73.04), clean main `656c0e8ca070bdc9d7cb197d264792ef49304865` after #1969. `XCL_DIRECT_DXIL=0`, `XCL_COMPACT_CS=auto`, 240 s, copy of the previous warm cache. For the compute record `b78fa10b425b8e54` associated with the earlier 160×90×1 breadcrumb, the offline DXC output changed from 119872 to 126392 bytes. The runtime wrote the new payload byte-for-byte under a new translation-cache identity. VKD3D hashes: `aca5623498d28969` → `76ae2178518a931f`. The first texture gather now has a descriptor validity guard; actual descriptor values were not sampled. 1606 PresentX calls by the 240 s cap. The 239.326 s activity window still counted one present, 323 draws and 1515 dispatches; no device removal recorded before the cap. Captures at 225 and 240 s still showed a flat dark frame. This is one clean-main run with multiple upstream changes and does not isolate the effect of #1969 or demonstrate a rendered 3D scene. Analysis and report assisted by Codex (GPT-6.2 Astra). Repeat on the same clean `656c0e8c` executable, same settings, with a copy of the cache populated by the 240 s run and a 360 s time limit. This attempt exited before the input step. Logo captured at 30 s, black at 45 s. The 50.402 s activity window counted five presents. At 53.545 s the sparse queue reported fence 19837 with target 19842 after a five-second wait. D3D12 reported `0x887a0005` at 53.550 s and Proton returned 5. VKD3D started and finished its breadcrumb analysis without listing a command interval. The earlier 240 s observation is therefore not a reproducible stability bound; these two runs cannot establish a cache-related cause. Codex (GPT-6.2 Astra) assisted with the test and report. A second attempt from an independent copy of the **same** warm-cache seed as the 53.550 s failure, using the identical executable, inputs and 360 s limit, reached the cap at 360.001 s (1665 PresentX calls). Loading artwork was visible at 45 and 75 s; late captures through the cap were flat gray or black. Last nonzero present window ended at 350.257 s. No D3D12 device removal was logged before the cap. There were 18 `Wait64BitValueX` two-second timeouts before the cap and driver PSO compilations still finishing at 357 s. These observations neither locate the rendering error nor establish that a timeout caused it. The same warm seed permits both outcomes. Test and report assisted by Codex (GPT-6.2 Astra). **Visible checkpoint on Linux/RTX 5080.** On `656c0e8c` with a local diagnostic that labels the existing `try_gpu_wait` fallback branches, the capture at the runner's 345 s mark shows the opening **Director of Art** credit on black, after the gray/black frames. No recognizable 3D scene in the sampled frames. Same Proton setup and warm seed as above, `XCL_DIRECT_DXIL=0`. The title logged a read exception `0xc0000005` at title offset `+0x4f28df1` (334.813 s on the XCL clock); Proton returned 3 before the 360 s cap. All 24 logged two-second Wait64 CPU timeouts on this run were for one non-UMA word. At entry to the poll, `GetCompletedValue() >= target` for XCL's per-address bridge fence, while the CPU word did not satisfy `>= target`. First timeout: target `0x68c`, CPU word `0x687` after the poll. This narrows the branch but does not identify the writer or explain the exception. An earlier 240 s trial with the same probe reached gray with zero logged CPU timeouts; another lost the device before reaching this stage. The deferred-write and list-replay observations in [#562](https://git.gtahub.st/github/xcl-dev--xcl/pulls/562) are relevant precedents. Test and report assisted by Codex (GPT-6.2 Astra). Unmodified upstream `c00f3fcfce59bb4dfd3a1f96bbc84c60e765b538`, same RTX 5080 / 620.73.04 / Proton Experimental, HLSL path and starting cache seed, cap extended to 420 s. The 28 desktop captures (15 s interval) show loading artwork, then black or gray; none captured the credit. 1651 frames shown / 1652 PresentX calls; the last nonzero present window ended at 409.273 s. XCL logged 29 CPU Wait64 timeouts, no unhandled title exception and no D3D12 device removal through the cap. The compiled payload for `b78fa10b425b8e54` was 124820 bytes, VKD3D hash `4939eb52b2ab2f53`. One run on this revision cannot establish a visual regression. Assisted by Codex (GPT-6.2 Astra). Continuous-display repeat of `c00f3fcf` using the same binary, starting cache and 420 s limit. The isolated X11 recording captured 5005 frames (nominal 15 fps, largest timestamp gap 134 ms). After the last loading artwork at video 83.933 s, the display remained black or flat gray, sometimes letterboxed. A scan calibrated against the prior readable credit found no credit or recognizable scene before termination. The 252.839 s XCL activity window still counted 1 present, 830 draws and 2307 dispatches. The title logged a read exception at `+0x4684e7` (`0xc0000005`) at XCL 327.372 s; Proton returned 5. This ends the repeat before the previous credit capture (estimated XCL 341 s), so it cannot establish that the credit is unreachable on this revision. Codex (GPT-6.2 Astra) assisted.
Author
Owner

@⁠GreemSC on GitHub · 2026-11-25 21:39 UTC · original · edited 2026-11-25 21:41 UTC

Update: the same shape now on the direct DXIL path, with another program and another dxil-spirv.

Setup: RX 7900 XT 20 GB (Mesa 26.2.5 RADV), Linux 7.2, Proton-CachyOS Wine 11, a local vkd3d-proton build with dxil-spirv 53aac41; retail 1.0.2.1, XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0; main 68a284a + #1732, #684, #1860, #2097, #2404. Preload is off here, so this is the world load itself, not the title screen.

  • The program: record 95cc13288a27a96e (2,420,644 B of direct DXIL). driver compile start #547: compute PSO, 2420644 B DXIL, record 95cc13288a27a96e, driver blob absent at 95–102 s, right after the first #101, in 4 of 4 runs, and never a finish.
  • Where the thread is: an xcl-pso-* worker in d3d12core.dll (vkd3d-proton) at the same addresses in every thread dump of every run: +0x19dd7f < +0x18ecfd < +0x19320e < +0x193ba5 < +0x194e5c < +0x19d3a8 < +0xd8560 < +0xce716, not in RADV. The build is stripped, so I cannot name the function yet; by its place it looks like dxil-spirv's translation, as in #611.
  • Same program elsewhere: Rednaxeh's RX 7800 XT on Windows (AMD's own driver) never finishes it either (#505).
  • Memory: the process went from 9.8 GB to the 16 GB cap in the minutes after; but other growth is mixed in (see #1566), so I do not put all of it on this compile.

What helps here: leaving the program out. With a local switch, the program is refused before the driver sees it and takes the path of a refused compute PSO (its dispatches skipped). One run with it then presented to 278 s, into the intro cutscene. The switch is now draft PR #2527 (XCL_REFUSE_CS).

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and thread dumps, and wrote this.

**@⁠GreemSC** on GitHub · 2026-11-25 21:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/1035#issuecomment-7175371986) · edited 2026-11-25 21:41 UTC Update: the same shape now on the direct DXIL path, with another program and another dxil-spirv. **Setup:** RX 7900 XT 20 GB (Mesa 26.2.5 RADV), Linux 7.2, Proton-CachyOS Wine 11, a local vkd3d-proton build with dxil-spirv `53aac41`; retail 1.0.2.1, `XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0`; `main` `68a284a` + #1732, #684, #1860, #2097, #2404. Preload is off here, so this is the world load itself, not the title screen. - **The program:** record `95cc13288a27a96e` (2,420,644 B of direct DXIL). `driver compile start #547: compute PSO, 2420644 B DXIL, record 95cc13288a27a96e, driver blob absent` at 95–102 s, right after the first `#101`, in **4 of 4 runs**, and never a `finish`. - **Where the thread is:** an `xcl-pso-*` worker in `d3d12core.dll` (vkd3d-proton) at the same addresses in every thread dump of every run: `+0x19dd7f < +0x18ecfd < +0x19320e < +0x193ba5 < +0x194e5c < +0x19d3a8 < +0xd8560 < +0xce716`, not in RADV. The build is stripped, so I cannot name the function yet; by its place it looks like dxil-spirv's translation, as in #611. - **Same program elsewhere:** Rednaxeh's RX 7800 XT on Windows (AMD's own driver) never finishes it either (#505). - **Memory:** the process went from 9.8 GB to the 16 GB cap in the minutes after; but other growth is mixed in (see #1566), so I do not put all of it on this compile. What helps here: leaving the program out. With a local switch, the program is refused before the driver sees it and takes the path of a refused compute PSO (its dispatches skipped). One run with it then presented to 278 s, into the intro cutscene. The switch is now draft PR #2527 (`XCL_REFUSE_CS`). **AI use:** Claude Code (Claude Opus 5.5) ran the runs, read the logs and thread dumps, and wrote this.
This discussion has been locked. Commenting is limited to contributors.
No description provided.