Skip to content

D3D12.X: XCL_REFUSE_CS leaves listed compute programs out of the driver - #2527

Open
GreemSC wants to merge 1 commit into
xcl-dev:mainfrom
GreemSC:refuse-cs
Open

GreemSC wants to merge 1 commit into
xcl-dev:mainfrom
GreemSC:refuse-cs

Conversation

@GreemSC

@GreemSC GreemSC commented Nov 25, 2026 •

Copy link
Copy Markdown

A switch to leave listed compute programs out of the driver: XCL_REFUSE_CS=HASH[,HASH…], with the record hashes that driver compile start … record HASH logs, or XCL_REFUSE_CS=@path to read them from a file (commas, spaces or one per line, # comments, a leading UTF-8 byte order mark skipped; asked for on #505 for a list of ~1,000 programs). A listed program is refused before the driver sees it, by any of the three ways a compute program reaches it (a warm whole pipeline, the pieces of a direct-DXIL dispatch chain, the whole build), and takes the existing path of a compute PSO the driver refuses: its dispatches are skipped.

Why: a program whose driver compile never ends takes the process's memory with it, and today the only way past it is a local patch. On Linux (vkd3d-proton, RADV), the direct DXIL of record 95cc13288a27a96e (2.4 MB) started its compile 95–102 s into four retail runs and never finished; the thread stays in d3d12core.dll at the same addresses, and the game's memory grew from 9.8 GB to our 16 GB cap. #1035 is the same shape on the HLSL path. Several testers carry their own switch for this (an XCL_REFUSE_CS of their own on #2057, a local skip of the ray-tracing resolve programs on #505), and #505 has one RX 7800 XT on Windows where the same program never finishes either.

Part of #1035.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: refused_cs / record_hashes (the variable or its @path file, read once; an unreadable file is logged and refuses nothing); the check right after the record hash in translated_compute_pso_once, before the CachedWhole attempt, dispatch_chain::build and the whole build; load_refused_cs; a unit test of the parsing (list and file forms, a file with a UTF-8 BOM: luckyteagirl's review; it fails without the BOM skip).
  • crates/xcl/src/host.rs: load_refused_cs() before vfs::init and the VFS hooks, so an @path on a host drive the title's mounts also name is read before it is remapped (found by KDenKC).
  • README.md: the variable, next to the refused-program log line it reuses.

Tested

  • RX 7900 XT 20 GB (Mesa 26.2.5 RADV), i7-12700K, Linux 7.2 with Proton-CachyOS Wine 11 and a local vkd3d-proton build (dxil-spirv 53aac41); Rust 1.100.0; the test binary is the Windows MSVC one (cargo test --release -p xcl --lib --target x86_64-pc-windows-msvc --no-run), run under Wine with DXC 1.9.2609.
  • Whole lib suite under Wine, --test-threads=4, skipping reset_dxgi_device_manager_with_d3d12_device_and_token_validation (it calls DXGID3D10CreateDevice, which Wine does not implement, and aborts the process): this head 22578b3 1244 passed, 65 failed, 27 ignored, 7 SKIPPED; main b49be18 on the same machine: 1243 passed, 65 failed, 27 ignored, 7 SKIPPED. 64 of the 65 failures are the same tests on both (Wine / vkd3d-proton environment); the other differs (gpu_qsad_and_mqsad here, gpu_sdwa_f16_inline_constants on main), and both pass run alone. The one more pass is refused_record_hashes_parse.
  • Windows on this head, by @jennydeth (RTX 3060 12 GB, driver 32.0.16.2101, Ryzen 5 5600X, Windows 11 26300, Rust 1.100.0, release): cargo test --workspace --release --no-fail-fast -- --test-threads=4: 1436 passed, 0 failed, 47 ignored; 29 SKIPPED (21 no wave64, 3 per-lane form refused, 3 no debug layer, 1 no heap windows, 1 driver cache). With XCL_REFUSE_CS=@list (the 1,000 CS_RaytracingResolve records, a # comment line first), XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, 900 s: 320 distinct listed records refused, no logged driver compile of a listed one, no device removal (two same-day b49be18 runs with the same switches and no list sent 181 / 183 listed records to the driver and lost the device at 211 / 216 s; different commits, so this does not show that the list keeps the device).
  • Windows, from this thread, earlier heads: RTX 3070 smoke pair and the parser test by razormontana on e4705c1; cargo test -p xcl --lib all passed on an RTX 3060 Ti by DavidM1911; jennydeth (RTX 3060) with the check moved to where this head has it: 280–289 listed records refused, none reached the driver, two 900 s runs kept the device; NWProgramming00 (RTX 5070 Ti) with the same placement on an older main: XCL_REFUSE_CS=95cc13288a27a96e takes the title past world entry, where every run without it hung the GPU.
  • In the retail title, with an earlier local version of this switch (same parsing; it refused inside compute_container) on our Linux tree (main 68a284a + D3D12.X: run sparse::readback_after_execute asynchronously per queue #1732, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, Recompiler: direct DXIL gives every loop head and block one back edge #1860, Recompiler: split wave64 compute groups of several waves across dispatches #2097, D3D12.X: an ExecuteIndirect of a split program runs its pieces #2404), XCL_REFUSE_CS=95cc13288a27a96e: compute PSO of record 95cc13288a27a96e (2420644 B DXIL) refused by XCL_REFUSE_CS at 96.6 s / 99.3 s in two runs, no driver compile of it started, and one of the runs presented to 278 s (the intro cutscene with its subtitles and credits) before the machine's memory stopped it. This commit itself was not run that far (see the regression run).

Regression run

Windows, RTX 3060 12 GB, run by @jennydeth on this head (her comment; retail title, scripts/smoke.ps1, default settings, no list, 600 s):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2200 (PresentX 2200)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 34639 MB
xcl-smoke v1
commit: 22578b35686c4a622b99bafae6057091260e3176
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2046 (PresentX 2046)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 35043 MB

93 % of main's frames, 101 % of its peak commit, no removal and no crash. With no list set these runs cover start-up with load_refused_cs() and the default path, not the refusal; neither reaches the world (presents stop at 108.5 s on main, 100.4 s here, while big compute programs compile). On Linux under Wine the same pair stops at ~2.5 s on both commits (plain main without the Wine stack), so it covers only start-up there.

Not tested

  • AMD on Windows; this head with direct DXIL and no list (the controls are b49be18); a regression run that gets past start-up on Linux; the BOM case in a run (the parser test covers it).
  • No unit test of the order of the check against the three build paths: it needs a device; the order is in translated_compute_pso_once.
  • Without the variable set, the change does nothing but read it once.

AI use

  • Claude Code (Claude Opus 5.5): wrote the change, the test and this description, ran the Linux builds, tests and runs. The Windows runs and counts above are jennydeth's (her comment names Claude Code, Claude Opus 5.5).

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@GreemSC

GreemSC commented Nov 25, 2026

Copy link
Copy Markdown
Author

@DavidM1911 thanks. The one piece this draft still lacks is a regression run that gets past start-up: under Wine, plain main stops at 2.5 s here (without #871), so both of my xcl-smoke blocks end there. If you have the retail title on that machine, the two blocks from scripts/smoke.ps1 on 6d12f58 (main) and 64be563 (this head), same title and seconds, would be what it needs.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

@SlopTart

Copy link
Copy Markdown

Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of refused_record_hashes_parse: passed. Lane note: this PR's NVIDIA-side release behavior is not exercisable here (AMD), but the XCL_REFUSE_CS parsing path is, and it is.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

@razormontana

Copy link
Copy Markdown
Contributor

I ran the requested native Windows smoke pair and a focused parser test on exact head e4705c1aef7255c9e59f4eb57f510a8ee2c9489d.

Tested

  • Windows 11 build 22631.5335, Intel Core i7-10700K, GeForce RTX 3070 8 GB with driver 32.0.16.1742. Rust 1.100.0 MSVC. Both runtime binaries were release builds.
  • cargo test --offline --locked -p xcl --lib hle::d3d12x::real::big_compile_tests::refused_record_hashes_parse -- --exact --show-output passed 1 test on the PR head in debug, with 0 failures and 0 ignored.
  • Both clean commits completed the requested 60 seconds using scripts/smoke.ps1. The trial settings matched, with Direct DXIL enabled, the refusal setting unset, networking off, and separate copies of the same warmed XCL cache. NVIDIA's driver cache was left in place. Both runs shared CPU time with concurrent builds, and this is a smoke check.

Regression run

Main e1d84b7

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 388 (PresentX 388)
presents per 2 s (last 3): 25 21 16
device removals: 0
crashes: 0
peak commit: 13744 MB

PR head e4705c1

xcl-smoke v1
commit: e4705c1aef7255c9e59f4eb57f510a8ee2c9489d
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 508 (PresentX 508)
presents per 2 s (last 3): 15 19 3
device removals: 0
crashes: 0
peak commit: 14414 MB

Source review

The refusal check runs after the direct-DXIL dispatch-chain branch. Successful chains return before the check, and building their pieces invokes the driver. A listed record can therefore still reach the driver through the split path. This is a source finding on e4705c1. Refusal and branch order, piece builds

Not tested

The full workspace suite and live XCL_REFUSE_CS=@file behavior remain unverified on this head.

AI use

Yes, Codex GPT-6.2 reviewed the source, ran the PR-head checks, and drafted this report.

@GreemSC

GreemSC commented Nov 25, 2026

Copy link
Copy Markdown
Author

@razormontana Thank you! I'll check it tomorrow (my time).

@DavidM1911

Copy link
Copy Markdown
Contributor

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

@KDenKC

KDenKC commented Nov 26, 2026

Copy link
Copy Markdown

@GreemSC two integration findings for e4705c1, checked against main b49be18.

  1. Check refusal before either whole reuse or splitting. At your head, dispatch_chain::build returns success before the refusal check, so a listed program successfully split by direct DXIL is never refused. On current main, real.rs:4344 computes record, then tries CachedWhole at 4345 and dispatch_chain::build at 4351. Please put the refusal check immediately after record, before both paths; otherwise a warm whole can also reach the driver first. Our local merge resolution uses that placement. Joori reported 389–392 refusals from a 1,004-record list; that count alone does not establish which listed programs were reached.

  2. Read @path before VFS installation, or document the host-path constraint. refused_cs lazily calls read_to_string on first use. Main installs VFS hooks at host.rs:134, before title entry at 154. On our setup, a host D:\... list was remapped and failed with The system cannot find the path specified. (os error 3): no program is refused. Loading the list once at host startup before the hooks avoids this; alternatively document which host paths remain usable after remapping.

Tested

Static control-flow review of the pinned diff and main; inspected our rig's logged @path failure. The rig used a local main merge with the refusal check moved before both paths, not the unmodified PR head. Thanks to Joori for the refusal-count report.

Not tested

No new build, suite or title run for this review; no claim that all 1,004 records should be encountered in one run.

AI use

Codex (GPT-6.1-Sol) checked the code and log and drafted this comment. Claude Code (Claude Opus 5.5) checked the links and the line numbers.

@GreemSC

GreemSC commented Nov 26, 2026

Copy link
Copy Markdown
Author

@KDenKC @razormontana thank you, both points are fixed in 8ed5a0a (rebased on main b49be18, one commit):

  1. Order. The check now comes right after record in translated_compute_pso_once, before the CachedWhole attempt, dispatch_chain::build and the whole build, so a listed program reaches the driver by none of the three.
  2. @path. load_refused_cs() reads the list in host.rs before vfs::init and the VFS hooks; the README says it is read when XCL starts, before the title's mounts apply.

Tested (RX 7900 XT, RADV, Linux, Proton-CachyOS Wine; Windows MSVC test binary under Wine): whole xcl lib suite, --test-threads=4: this head 1244 passed, 65 failed, 27 ignored, 7 SKIPPED; main b49be18 same machine 1243 / 65 / 27 / 7, the same 65 failures on both (Wine environment), the extra pass being refused_record_hashes_parse. The smoke pair on b49be18 / 8ed5a0a under Wine stops at ~2.5 s on both (the known stop of plain main under Wine), so it covers only start-up.

Not tested: Windows on this head. razormontana's RTX 3070 pair was on e4705c1; a rerun on 8ed5a0a would be welcome, and the PR stays a draft until there is one.

AI use: Claude Code (Claude Opus 5.5) made the change, ran the tests and wrote this reply.

@jennydeth

Copy link
Copy Markdown

@KDenKC, a run-time confirmation of your point 1 (7181939073) on e4705c1, from an RTX 3060 12 GB. @GreemSC, 8ed5a0a now puts the check where my moved check was, and before CachedWhole too; I have not run 8ed5a0a itself. With XCL_DIRECT_DXIL=1 and the 1,000 CS_RaytracingResolve records listed:

  • At e4705c1: 50 records were refused, and 141 logged builds of listed records still went to the driver, just before a silent removal.
  • With the check moved above the split branch: 280–289 were refused, none reached the driver, and two runs kept the device for 900 s.
  • @path: the list file was read without trouble in these runs.

Setup

e4705c1, run 1 e4705c1, run 2 moved check, run 1 moved check, run 2
listed records refused (distinct) 50 (by 11.3 s) 50 (by 11.3 s) 280 289
logged builds (≥ 256 KiB) of listed records 141 (99.8–102.5 s) 141 (93.9–95.4 s) 0 0
programs split (compute split) 187 188 50 51
last 2 s window with a present 101 s 94 s 899 s 895 s
end 0x887a0005 at 102.6 s 0x887a0005 at 96.3 s 900 s, exit 0x0 900 s, exit 0x0
  • At e4705c1: these two runs end like the other 11 warm direct-DXIL runs on this card with no list. All of those lost the device, most within 2–10 s of the last present. The 8 with XCL_DRED=1 logged only DRED page fault at GPU VA 0x0; allocations there: []; recently freed: []. The runs are on NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403.
  • With the moved check: the title presented slowly after ~100 s, about 0.2 fps (7–19 presents a minute, 4,600–17,800 draws and 13,600–44,700 dispatches a minute). Each run also had one stretch with no presents, of ~5 and ~7 minutes.
    • I can't say what those frames show. The frame dumps after 100 s failed with frame dump copy: GPU fence still pending after 2000 ms.
    • So these runs show the device kept, not a playable world. Whether the family itself causes the removal is not settled by them.
  • A third run with the moved check also kept the device. It ended at 515.8 s in 0xc0000005, a read fault in the system's VCRUNTIME140.dll, on a thread whose stack shows only xcl.exe frames. That is one run of three, so I don't put it on the change.

Not tested: 8ed5a0a (its placement before CachedWhole on current main); e4705c1 on its own (without #2404 / #2519); the HLSL path (no split programs there, so the existing check already applies); AMD.

AI use: Claude Code (Claude Opus 5.5) built the trees, made the local change, ran the runs on my machine, read the logs and wrote this.

@luckyteagirl luckyteagirl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At exact head 8ed5a0a on current main b49be18, a UTF-8 BOM in the new XCL_REFUSE_CS=@path file silently drops its first hash. This is a source-derived review; I did not run a title with a BOM-marked list.

read_to_string(path) passes the leading U+FEFF through to record_hashes. That parser splits on commas or Unicode whitespace, then parses each token as hex; U+FEFF is neither a delimiter nor a hex digit. For example, a file with bytes EF BB BF followed by 95cc13288a27a96e\r\n yields no hashes. With a one-entry list, the documented refusal therefore does nothing; with a longer list, the first entry is lost unless a header/comment happens to absorb the BOM.

Could the @path loader strip one leading U+FEFF before parsing? A BOM plus one valid hash in the parser/file fixture would cover the fail-open case.

AI assistance: GPT-6.2 Sol found the input path; GPT-6.2 Astra checked the exact-head parser and drafted this review.

@NWProgramming00

Copy link
Copy Markdown
Contributor

A Windows + NVIDIA data point for this switch. With XCL_REFUSE_CS=95cc13288a27a96e, the retail title of #505 gets past world entry on an RTX 5070 Ti. Without the switch, every run on warm caches ends in a GPU hang right after world entry.

Setup

  • Hardware and software: RTX 5070 Ti 16 GB (driver 32.0.16.2124), Ryzen 7 9700X, Windows 11 26300, Rust 1.100 MSVC, release. XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1, A pressed by XCL_PRESS_A_AT.
  • Caches: compute pipelines prebuilt with xcl shaders --precompile --only cs --pipelines. Graphics pipelines were warmed by earlier runs.
  • Tree: main e44af70 with this PR's commit cherry-picked on top. My base has no ec80c07, so there was one conflict in translated_compute_pso_once. I kept refused_cs right after the record hash, before dispatch_chain::build and the whole build. That is the same place as in the PR, but without the CachedWhole attempt my base does not have. I did not run this PR's own head (8ed5a0a on b49be18): its newer translator would have made all my driver caches cold.

Without the switch (main e44af70 with local diagnostics only, two runs on warm caches):

  • Both runs end in D3D12 device removed: 0x887a0006 (hung, not a page fault). In the first run it came 2 s after the title resumed submitting in the world. In the second, it came 0.8 s after the first #101 call.
  • DRED in the second run: the list stopped inside a dispatch (>6, 82 of 329 operations done), and the pipeline bound there was cs 95cc13288a27a96e. On this card that program is 1,218,248 B of DXIL, loaded from the driver's blob, with split wave64. DRED recorded no page fault.

With XCL_REFUSE_CS=95cc13288a27a96e (same tree, same caches, 420 s):

  • The refusal is logged once at 7.6 s, and no driver compile of the program starts.
  • First #101 at 352 s. The title then keeps rendering until the run's 420 s limit: 3–8 presents, 1,650–3,150 draws and 7,400–11,000 dispatches per 2 s, DirectStorage 280–820 requests per 2 s with 0 failed, and no frame-event wait timed out.
  • 4,984 frames in total, exit 0, no device removal, and the title's own 30 s watchdog did not fire. 138 dispatches were skipped by the end, i.e. those of the refused program.
  • Memory at the end: process commit 33.2 GB, local video memory 14.8 GB, non-local 3.2 GB, still growing by about 50 MB/s.

What this does and does not show

  • On this card, 95cc13288a27a96e is what hangs the GPU at world entry, and leaving it out lets the title run in the world for at least 68 s.
  • I have not checked what the image looks like. The program is a screen-probe ray pass, so lighting is expected to be missing.
  • The program's HLSL (exported locally, 15 MB) has no unbounded loop. Every loop counts down the shared xcl_budget (65,536). Its outer loops span almost the whole program, though, so one loop that does not exit as on the console could take far longer than the 2 s TDR. That is an inference, not measured. A native wave64 run (no split) would tell whether split wave64 is involved; I have not run one yet.
  • Not tested: this PR's own head, the @path form, AMD, a smoke pair.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on my machine, read the logs and wrote this comment. Logs stay local.

A program whose driver compile never ends takes the process's memory with
it: under vkd3d-proton on RADV, the direct DXIL of record 95cc13288a27a96e
(2.4 MB) started its compile 95-102 s into four retail runs and never
finished while the game's memory grew from 9.8 GB to the 16 GB cap; xcl-dev#1035
is the same shape on the HLSL path. Testers carry local switches for this.

`XCL_REFUSE_CS=HASH[,HASH...]` takes the record hashes that `driver compile
start` logs; `XCL_REFUSE_CS=@path` reads them from a file (commas, spaces or
one per line, `#` comments), for lists of a thousand programs. A listed
program is refused before the driver sees it and takes the existing path of
a refused compute PSO: its dispatches are skipped.

The check comes right after the record hash, before every way a compute
program reaches the driver: a warm whole pipeline, the pieces of a direct
DXIL dispatch chain and the whole build. The `@path` list is read when the
host starts, before the VFS hooks, so a host path on a drive the title's
mounts also name is still found. A leading UTF-8 byte order mark (a list saved by
Windows PowerShell 5) is skipped, so the first hash is not lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GreemSC

GreemSC commented Nov 26, 2026

Copy link
Copy Markdown
Author

New head 22578b3 (one commit, still on main b49be18):

  • @luckyteagirl thank you, the BOM is fixed: record_hashes skips a leading U+FEFF, and the parser test has your case (BOM + valid hashes). Without the skip the test fails with the first hash missing (left: [0x2e0055c25f49848a], right: [0x95cc13288a27a96e, 0x2e0055c25f49848a]); with it, it passes.
  • @jennydeth thank you for the runs: your moved check is where 8ed5a0a/22578b3 put it (and before CachedWhole), so they back this placement. @NWProgramming00 thank you too: the same placement on an RTX 5070 Ti, past world entry with 95cc13288a27a96e refused. I've put both in the description, as tests of other trees.

Tested (RX 7900 XT, RADV, Linux, Proton-CachyOS Wine; Windows MSVC test binary under Wine): whole xcl lib suite, --test-threads=4: this head 1244 passed / 65 failed / 27 ignored / 7 SKIPPED, main b49be18 1243 / 65 / 27 / 7; 64 of the failures are the same on both, the other one differs (gpu_qsad_and_mqsad here, gpu_sdwa_f16_inline_constants on main) and both pass alone. Smoke under Wine: same ~2.5 s stop as plain main (start-up only).

One thing still missing before this can leave draft: a Windows scripts/smoke.ps1 pair (a commit of main and 22578b3, same title, same time). @jennydeth or @luckyteagirl, if either of you can run it on your Windows machine, that would settle it; one pair from one of you is enough.

AI use: Claude Code (Claude Opus 5.5) made the fix, ran the tests and wrote this reply.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
…rt upstream xcl-dev#2527)

(cherry picked from commit d60f2cc7a3674e1232ba2ea4b059b8bfe21675bb)
@jennydeth

Copy link
Copy Markdown

@GreemSC, the Windows pair for 22578b3, from an RTX 3060 12 GB. Both runs used default settings, no XCL_REFUSE_CS, 600 s.

Regression run

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2200 (PresentX 2200)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 34639 MB

This PR, 22578b3:

xcl-smoke v1
commit: 22578b35686c4a622b99bafae6057091260e3176
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2046 (PresentX 2046)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 35043 MB
  • This PR has 2,046 frames against main's 2,200 (93 %) and peak commit of 35,043 MB against 34,639 MB (101 %), with no removal and no crash in either.
  • Neither run reaches the world: presents stop at 108.5 s on main and at 100.4 s with this PR, while big compute programs are still compiling.
  • With no list set, these runs cover start-up with load_refused_cs() and the default path. They do not cover the refusal.
  • Both were run as a copy named xcl-noprofile.exe. This machine has xcl run: xcl nvprofile puts xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590's 1 GiB shader-heap profile on xcl.exe; a copy under another name does not match it.

With the list (22578b3, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_REFUSE_CS=@list, the 1,000 CS_RaytracingResolve records from xcl rpf shaders.rpf --extract CS_RaytracingResolve, warm caches, 900 s, also as xcl-noprofile.exe):

  • 320 distinct listed records were refused (is not built (XCL_REFUSE_CS), first at 6.4 s, last at 377.0 s), and no logged driver compile (≥ 256 KiB) was of a listed record. In the two same-day b49be18 runs below, with the same switches and no list, 181 and 183 distinct listed records went to the driver. On the e4705c1 stack my moved check gave the same pattern (280 and 289 refused, none built); e4705c1 as it was refused 50, and 141 logged builds of listed records went to the driver.
  • 54 programs were split (compute split at 804.8 s); the two same-day b49be18 runs with no list split 291 each, and the moved-check runs on the e4705c1 stack 50 and 51.
  • The list file starts with a # comment line and was read without trouble.
  • The device was not removed. Presents went on at 12–16 a minute from the third minute to 716 s; then the title stopped at a breakpoint (0x80000003 in game_scarlett_master.exe+0x63966f, three threads, 720.4 s), and the process ended at 804.8 s.
  • For comparison, the same day, two b49be18 runs with the same switches and no list, also as xcl-noprofile.exe, lost the device at 211.2 and 216.0 s (NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403). Two runs against one, on different commits, and the title still runs at well under 1 fps after ~110 s, so this does not show that the list is what keeps the device.

Tested

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); Ryzen 5 5600X; 32 GB RAM; Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release; DXC 1.9.2609.5.
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on 22578b3: 1436 passed, 0 failed, 47 ignored (37 test targets incl. doc-tests). SKIPPED (29): 21 × no wave64; 3 × per-lane form refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32); 3 × no D3D12 debug layer / d3d12SDKLayers.dll; 1 × no heap windows; 1 × pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache).
  • Retail title 1.0.2.1, scripts/smoke.ps1 -Game <folder> (XCL_NETWORK=0), the same scripted pad presses into the story load in every run; XCL_FRAME_DUMP=300 in the pair, 100 in the list run.

Not tested: 22578b3 with direct DXIL and no list (the controls are b49be18); the heap in effect in each run (not read); AMD / wave64; the BOM case in a run (the parser test covers it).

AI use: Claude Code (Claude Opus 5.5) built the commits, ran the suite and the runs on my machine, read the logs and wrote this.

@GreemSC
GreemSC marked this pull request as ready for review November 26, 2026 10:48
@GreemSC

GreemSC commented Nov 26, 2026

Copy link
Copy Markdown
Author

@jennydeth thank you, that is exactly what was missing. I've put your pair under Regression run (credited and linked) and your suite counts and list run under Tested, and I'm marking the PR ready for review.

AI use: Claude Code (Claude Opus 5.5).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants