Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1035
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 inused-pipelines.txtbecause 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
0bb64c5(dxil-spirv8434b06).main09940bb+ #871 + #684, release.used-pipelines.txt: 52 keys.memory.current+memory.swap.current). Frame times come from MangoHud.XCL_PSO_PRELOAD=0(Two runs each. The one frame over 100 ms left with the preload off is the title's ~14 s load after the intro.)
How it was found
smapssnapshots: the growth is contiguous anonymous memory, every page written.LD_PRELOADshim onmmap(thread name and Windows thread id from the TEB) put all of it on one thread,xcl-pso-pre-0. That thread calledNtAllocateVirtualMemoryfor 4 MiB pieces, about 20 a second, and never freed one.With dxil-spirv
53aac41(dxil-spirv #371, what #775 builds)0bb64c5with only the submodule moved, with-Db_ndebug=true.XCL_PSO_PRELOAD=0.+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)
XCL_PSO_PRELOAD=graphicswould leave this compute program to its first bind.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.
@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
mainf4ce27c+ #640 / #628 / #708, retail title's world loading. Thread dumps every 5 s (details on #754) showxcl-pso-pre-0insidenvwgf2umx.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.ps1peak commit on this machine (preload on, 60 s with A presses into world loading) went from 14.7 GB ondd2ae9ato 25.4 GB on67a3735; I have not split that by thread or by commit.Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@emirduran707 on GitHub · 2026-11-24 11:35 UTC · original
A Windows / AMD data point for the "Not known" part: with a
used-pipelines.txtthat includes world-loading compute programs, the preload does not grow memory without end here.Setup:
main47efa2e, release.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.XCL_PSO_PRELOAD=0XCL_PSO_PRELOAD=0too, 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.
@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-Nthread 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.perfon the whole run (no call stacks available here) puts that thread's time inlibvulkan_radeon.soand 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), withdriver 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 withfossilize_replay --compute-pipeline-range, in a cgroup withMemoryMax: every compute pipeline replays in milliseconds except one.VK_DRIVER_FILES)fossilize_replayVKD3D_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 110OpPhi, mostlyOpCompositeExtract/OpBitcast/OpSelect/OpIAddCarry.RADV_DEBUG=llvmis 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.mainalone, 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=0only moves the build to the first bind.Edited – only a few programs are slow, and RADV's disk cache gets around them:
fossilize_replayshare that cache (pipelines the title had built replay from it in milliseconds).main384f7f7had no runaway: seven other compute programs of 869 588–1 200 756 B DXIL built in 4.6–6.9 s each, the first#101came 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.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), withMESA_SHADER_CACHE_MAX_SIZEraised (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; XCLmain384f7f7,x86_64-pc-windows-gnurelease; retail 1.0.2.1.fossilize_replayfrom Steam'subuntu12_64.Not tested:
XCL_PSO_PRELOAD=0or=graphicson 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.
@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.dllSetup: 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
main47efa2e+ #684 / #605 / #615 / #495 (none of them touchespso_async),device_type = "lockhart",XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, A pressed byXCL_PRESS_ATevery 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):XCL_PSO_PRELOAD=01024 pipelines built ahead of their first useat 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-0is insideamdxc64.dllin both dumps (one driver compile for over 20 s);xcl-pso-pre-1waits indxc::compilefor a DXC worker.cdb -pv+!heap -sat 27.6 GB of commit (65 s): a private heap0x8ca0000with 5.1 GB committed, the process heap 3.5 GB.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.exedown with it. WithXCL_PSO_PRELOAD=0it 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.
@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;
main6efdabc/47efa2e, release; the retail title of #505;used-pipelines.txtwith ~1 195 shader sets from runs thatreached world loading.
Seen (no input, 60-90 s,
XCL_NETWORK=0 XCL_ACTIVITY=1, commit from XCL's 2 s memory lines)0xC0000409 at the peak.
XCL_PSO_PRELOAD=0: 15 GB.xcl-pso-pre-*thread inthe AMD compiler for 45-55 s each and
CreateComputePipelineStatereturns 0x8007000e. The second only shows up once thefirst is out of the way (they share the single big-compile slot).
note_translation_error, whose first 40 reasons are used up by meshwarnings 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)
!<key>line inused-pipelines.txt(older builds pass over it); its pipelines then get the stand-in at once — what they got when thebuild 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.ps160 s: main 52 659 MB / 1 534 frames, branch 21 953 MB / 1 536 frames (with the two setsalready 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.)
@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,
main930e8b4,scripts/smoke.ps160 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.XCL_PSO_PRELOAD=0The 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-0andxcl-dxc-3insidedxcompiler.dllin all three, the same two thread ids; every otherxcl-dxc-*andxcl-pso-pre-*thread idle; no thread innvwgf2umx.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 thatdxc.rscompiles at-O0) would be my first guess, not checked.Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@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:mainb7aa9f3+ #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.txthas 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):
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.
XCL_PSO_PRELOAD=0the 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.XCL_DXC_THREADS=4and=1, the thread that hit the limit was anxcl-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):dxcompiler.dllSo 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 withXCL_THREAD_DUMP_ATif 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.
@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-spirv53aac418(#775), DXC 1.9.2609. XCLmainb7aa9f3+ #1316 (ee904f1) +b8b1f49reverted (#1307) + #871's memory commit, #684, #688, #1288, #1279. Release, cross-built forx86_64-pc-windows-gnu. Not the title:xcl shaders shaders.rpf --precompile --pipelineson the retail pack,XCL_PIPELINE_THREADS=1, each run in a systemd scope withMemoryMax.Seen:
XCL_COMPACT_CSunset (auto)XCL_COMPACT_CS=0auto, withVKD3D_SHADER_DUMP_PATH5d3acfc84ed3b957:.dxilwritten at 19:03:04, its.spvat 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):OpLabel)OpPhispirv-val --target-env vulkan1.3accepts 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_DEBUGoptions 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.
@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
main9e3831eand 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):
mainreached the limit at ~140 s,main+ #1398 at ~49 s; with the two sets marked, 240 s at 34-36 GB, with orwithout #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.
@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
XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 16 to 120 s.mainc4d37befor the plain runs. The timing runs usedmain689f2dbplus local log lines only (compile start / end, bind wait start / end, which job eachxcl-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
xcl-pso-pre-1starts the driver compile of one compute pipeline with 29 215 776 B of DXIL (record56c0cd3b82a00c6e; its HLSL is 30.3 MB, 88 863 instructions, so it compiles at-O0). At 600 s the thread is still innvgpucomp64.dll(thread dumps at 300 s and 560 s).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).With
XCL_PSO_PRELOAD=0 XCL_PSO_WAIT_MS=250: past the black screen+0x540abf5(216 s), the watchdog at+0x23cf683(285 s), and a read at+0x8ac5c4(225 s).ExecuteIndirect with a pipeline that is still being built.What the
xcl-pso-*workers do meanwhile (300 s, same switches)Not tested
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.
@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 reportsD3D12 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 CSb78fa10b425b8e54. 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
b78fa10b425b8e54with the instrumented reference binary and clean main8e87fc7b62a87ea589ccb9ea6182f514016cf7db(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_slotduring upload-slot reuse. The sparse fence remained at 37977 (wanted 37982, then 37983).rb_valuewas still zero at both points; the title→sparse queue wait inreadback_after_executehad 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), and0x887a0005was 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
8c4a46a3c2d50498691cbda79cbbf4fadb45fbe8with 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_slotreturns 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
656c0e8ca070bdc9d7cb197d264792ef49304865after #1969.XCL_DIRECT_DXIL=0,XCL_COMPACT_CS=auto, 240 s, copy of the previous warm cache. For the compute recordb78fa10b425b8e54associated 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
656c0e8cexecutable, 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 reported0x887a0005at 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
Wait64BitValueXtwo-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
656c0e8cwith a local diagnostic that labels the existingtry_gpu_waitfallback 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 exception0xc0000005at 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() >= targetfor XCL's per-address bridge fence, while the CPU word did not satisfy>= target. First timeout: target0x68c, CPU word0x687after 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 forb78fa10b425b8e54was 124820 bytes, VKD3D hash4939eb52b2ab2f53. One run on this revision cannot establish a visual regression. Assisted by Codex (GPT-6.2 Astra).Continuous-display repeat of
c00f3fcfusing 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.@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;main68a284a+ #1732, #684, #1860, #2097, #2404. Preload is off here, so this is the world load itself, not the title screen.95cc13288a27a96e(2,420,644 B of direct DXIL).driver compile start #547: compute PSO, 2420644 B DXIL, record 95cc13288a27a96e, driver blob absentat 95–102 s, right after the first#101, in 4 of 4 runs, and never afinish.xcl-pso-*worker ind3d12core.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.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.