Skip to content

D3D12.X: RTX 3090 loses the device at the world entry since the nvidia-dev merge (#3203); nvidia-dev 54225f58 runs #3277

Not planned

Description

@afpruivo

On an RTX 3090 the retail title loses the device at the world entry on every build since the nvidia-dev merge (#3203). nvidia-dev 54225f58, the tree that was merged, reaches the world and runs for 700 s on the same machine, save and settings.

Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, 32 GB + pagefile, Windows 11 26300, rustc 1.99.1, release builds, no local changes in the tested trees. Retail title (7952987A), restored save. XCL_DIRECT_DXIL=1 XCL_NETWORK=0 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1, scripted presses (#609), default XCL_PREPARE (history-backed preparation, warm after the first run).

Builds and runs (one run per line, all from 28/29 Nov):

tree runs result
nvidia-dev 54225f58 (+ #609, #2551, env-gated profiling hooks) 5 in the world for the whole 700 s, ~4,680 draws per present, no removal
f0e8fdd5 (Merge nvidia-dev (54225f5) into main (10d2729)) 1 removed at 334 s
5eb48388 (merge of main into it) 1 removed at 317 s
daae0330 (the merged branch's head) 1 removed at 278 s
main 7db2f391 7 removed at 181, 188, 146, 204, 146, 144 s (and once at 4,889 s on a cold cache)

So the break comes in with the merge commit itself: either from main's side of it or from the resolution. I didn't bisect main's side: pre-merge main trees don't reach the world on this machine for other reasons (cold driver compiles, see #2088), so they can't show this.

What every removal looks like:

  • It comes as the title enters the world, a fraction of a second after the dispatch-chain "whole" compute PSOs of dump hashes e7b014a051da3b7f (1,135,488 B DXIL), 28eaf6f48dc541d8 and 26fad5fd65eaf255 are created. They are the same three, in the same order, in every run that got that far.
  • Then one call stalls (for example "4 placed textures in 2487 ms"), and the device is removed with 0x887a0005 ("suspended").
  • With XCL_DRED=1: "DRED page fault at GPU VA 0x0; allocations there: []; recently freed: []" and "no breadcrumbs (no list was in flight)".
  • No TDR event (nvlddmkm / Display) in the Windows System log.
  • On 54225f58 the same three programs get different DXIL (e7b014a0: 1,180,580 B; 26fad5fd: 422,628 vs 409,952 B), and there they run 1–3 times a frame without trouble.

Tried, didn't help (one run each):

  • XCL_SPLIT_MIDLIST_WAIT=0: still removed (146 s). Both removals before it also followed "split command list around mid-list Wait after Write64 (#2)", so I tested that.
  • XCL_DXIL_NO_OPT=1: still removed (204 s). This is inconclusive: the translated-DXIL cache served the same 1,135,488 B module, so the switch probably didn't take effect.
  • XCL_SKIP_CS=8de5a6faa83be151,2d25e6f7949160ef,c9df3640d42d33e7 (the console hashes of the three programs on 54225f58): still removed (146 s). Also inconclusive: these hashes may differ on main, and the log doesn't confirm the skip.

Also seen while bisecting: #3157's change (ad19a1c1, WaveActiveAllTrue(xcl_dispatch_limited) in emit.rs) is on main at 10d27297, but not in f0e8fdd5 or later. emit.rs on main has no xcl_dispatch_limited at all now. That may be intended (nvidia-dev's form kept), but I couldn't tell from the merge description. I don't know whether it relates to the removal.

Not tested: AMD; a cold-cache run on main with XCL_DXIL_NO_OPT=1 XCL_TRANSLATED_CACHE=0; dumping the three whole forms on both trees to diff them; more than one run per merged-tree row.

Logs (xcl.log per run) on request; they hold hashes and addresses, no game data.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, read the logs, and wrote and posted this overnight on my standing go-ahead; I haven't reviewed this text yet.

Activity

  1. afpruivo commented on Nov 29, 2026

    @afpruivo
    Author

    One more run on main 7db2f391: XCL_DXIL_NO_OPT=1 XCL_TRANSLATED_CACHE=0 also ends in the removal (190 s), at the same place. The whole forms still had exactly the same size (e7b014a0 1,135,488 B, 26fad5fd 409,952 B, driver blob supplied), so they come from a cache these two switches don't reach, and the optimizer remains untested as a cause. If someone knows which cache holds the dispatch-chain whole-form DXIL, I can rerun with it moved aside.

    AI use: Claude Code (Claude Opus 5.5) ran this and posted it overnight on my standing go-ahead; I haven't reviewed this text yet.

  2. afpruivo commented on Nov 29, 2026

    @afpruivo
    Author

    Correction to my last comment: XCL_DXIL_NO_OPT takes pass names or all (opt.rs), and I passed 1, so the optimizer was never off in those runs. A further run with XCL_DXIL_CACHE pointed at an empty folder also ended in the removal (at the world entry, 7,083 s after a 4,784 s cold preparation). It produced the same whole form (e7b014a0 1,135,488 B, "driver blob absent"), which only shows the translation is deterministic. I'm rerunning with XCL_DXIL_NO_OPT=all and an empty cache, and will add the result here.

    AI use: Claude Code (Claude Opus 5.5) ran this and posted it overnight on my standing go-ahead; I haven't reviewed this text yet.

  3. KDenKC commented on Nov 29, 2026

    @KDenKC
    Contributor

    @afpruivo a reading of the code, not a run, in case it saves you a bisect: the signature you see (0x887a0005, no breadcrumbs, no TDR, the DRED page-fault line at VA 0x0 with no allocations) matches #2403, NVIDIA's limit on shader code in use (512 MiB by default), rather than a fault in one pipeline. That DRED line is printed whenever GetPageFaultAllocationOutput returns an empty result, so it doesn't mean a fault at address 0.

    What the merge adds on that path, from 54225f58 to f0e8fdd5: the indirect dispatch-chain path now builds the split pieces AND the whole form under the indirect root signature (dispatch_chain.rs execute_indirect / build_indirect, the slicer in bind.rs), and 2ca91276 sends multi-wave s_barrier programs back to the HLSL path, which compiles to larger ISA on NVIDIA. Both grow the code in use right as those three big whole forms finish, which fits "removed about 2.5 s after the third one".

    A cheap check on your side: the 2 GiB shader-heap driver profile from #2403 for the exe. If the removal goes away with it, the merge didn't break a pipeline; it moved world entry over the limit. Our RTX 5090 runs with that profile; a main run of ours to the world is in progress and I'll add whether it got there.

    AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

  4. afpruivo commented on Nov 29, 2026

    @afpruivo
    Author

    @KDenKC thank you, that was it. With the same main 7db2f391 binary copied under the name xcl.exe, so that the #2403 / #2590 shader-heap profile applies, the title reaches the world and keeps going: no removal in 800 s, and from 650 s on about 3.6 fps and 3,800 draws per present while pipelines are still being built. Every removal above came from binaries I had renamed (xcl-7db2f391.exe, xcl-bisect.exe, xcl-daae0330.exe). The profile matches the file name, so none of them got the bigger heap. My nvidia-dev runs used xcl.exe, which is why they ran.

    So the merge didn't break anything here; this was my setup, and I'm closing the issue. One note for #2590: the profile follows the executable name, so a renamed copy silently runs with the default 512 MiB heap.

    The separate observation stands and may be worth a look by whoever did the merge: #3157's WaveActiveAllTrue(xcl_dispatch_limited) is on main at 10d27297 but not in f0e8fdd5 or later.

    AI use: Claude Code (Claude Opus 5.5) ran this and posted it overnight on my standing go-ahead; I haven't reviewed this text yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions