Shaders: XCL_DXC_PROCESS runs DXC in worker processes with a memory cap #1638
No reviewers
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!1638
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1638"
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?
@marquezinii on GitHub · 2026-11-24 18:29 UTC · original
marquezinii:dxc-worker-processes→main· +386 −4 · 6 files · 1 commits · openDXC compiles inside XCL's process, so nothing bounds its memory. Retail packs have translated programs that drove it past 120 GB of commit in
--precompile(#1598), and to ~1.2 GB/s while the title loaded its world (ofc0urse's runs on #1566). When DXC's allocations fail, it can end the process outright (LLVM ERROR: out of memory, exit 0xC0000409, the in-game exit code on #1598), and that process is the title.With
XCL_DXC_PROCESS=1, each DXC thread of the pool sends its compiles to its own worker process,xcl.exe --dxc-worker. All workers sit in one job object with a per-process memory limit (8 GB by default,XCL_DXC_PROCESS=<MB>for another cap) and kill-on-close, so they end with XCL. A compile past the cap fails like any other DXC error and the pipeline keeps its stand-in: either DXC reportsE_OUTOFMEMORYor the worker ends. In both cases the worker is replaced for the next compile, and what it held goes back to Windows. If a worker can't be started, or the program doesn't answer as one, the compile runs in XCL's process as before. Off by default. This is the opt-in step; turning it on would be its own PR once it has been run with a title.Part of #1598 and #1566 (the DXC side of the growth).
What is in it
crates/xcl/src/gpu/recomp/dxc_process.rs(new): the setting, the job object, starting and replacing workers, the stdin/stdout protocol (a hello, then length-prefixed requests and replies), the worker loop on a thread with DXC's 64 MB stack; unit tests for the setting, the protocol (a truncated reply reads as an error) and the fallback when no worker starts.crates/xcl/src/gpu/recomp/dxc.rs: the pool's threads compile throughdxc_processwhen it is on;compile_hereandDXC_STACKvisible to it.crates/xcl/src/main.rs:--dxc-worker.crates/xcl/tests/dxc_worker.rs: with thexclbinary as the worker and a 24 MB cap, a small program compiles, a 176 KB generated one fails with the cap in its error, and the next small one compiles again in a new worker.README.md: the setting.Tested
cargo test --workspace -- --test-threads=4on4802750(rebased ontomain1d027e5): 963 passed, 0 failed, 43 ignored.XCL_DXC_PROCESS=1,XCL_DXC_WORKER_EXE= the builtxcl.exe): 963 passed, 0 failed, 43 ignored.lower/lower_dxilandgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64), the f16 and conversion formslower_dxilrefuses in wave32,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache). Onc7d07e1, before the rebase: 780 passed, 0 failed, 41 ignored both ways.E_OUTOFMEMORY, worker replacedE_OUTOFMEMORY, worker replacedCost, same generated sources and pool, in XCL's process vs. in workers: a 351 KB source 10.8–11.2 s vs. 10.5–11.2 s (4 runs each); 22 compiles of 107 KB at once on 11 DXC threads 4.1–4.2 s vs. 4.2 s (2 runs each). Peak worker commit after a small compile: 3 MB.
With a title and
XCL_DXC_PROCESS=1, by @denverquane (their comment). Setup: RTX 5070, retail 1.0.2.1, cold DXIL cache, release, onc7d07e1with #684 merged, five runs alternated.+0x23cf683, #1164), with or without the setting. That load does not reach the >8 MB sources of #1598, so it does not test the cap itself.On a whole retail pack, by @wayback94 (comment). Setup: RTX 3080, i7-13700K, 32 GB, release,
xcl shaders <pack> --precompile --only cs, onc7d07e1.main, commit ran away (22 → 35 GB in 11 s) and the run was stopped at 22600 of 26503.XCL_DXC_PROCESS=1it finished: 2688 compiled, 1 failed at the cap (a 150 MB source), main process under 1.14 GB, commit at most 70.5 %.Pipeline builds next to DXC, by @milesah3ad (comment). Setup: RTX 5080, synthetic programs, on
4802750.2639c08(this head) corrects the cap's comment indxc_process.rsfrom @wayback94's numbers: it said the biggest translations take ~0.7 GB in DXC. It also says that the cap is per worker and that the free-commit wait before each compile bounds them together. The README says the cap is per worker. Comments and README only:4802750's code, and its 963 / 0 / 43 suite, are unchanged.Regression run
Needs a new pair for this head
2639c08. It isc7d07e1rebased ontomain1d027e5(the only conflict was the module list ingpu/recomp/mod.rs), plus the comment and README correction above; the code is unchanged. The pair below was run onc7d07e1. Run by @eizispark on an AMD Radeon RX 9070 XT, 60 s each, warm caches,XCL_DXC_PROCESSunset (the default), copied from their comment as posted:main:
PR:
Not tested
XCL_DXC_PROCESSon (@denverquane's runs above stayed far below it): whether 8 GB is the right default cap, and how a title takes a big pipeline that fails at the cap instead of building after minutes (it keeps its stand-in, as with any DXC error).xcl shaders --precompilegoes through the same pool but was not run here.AI use
@marquezinii on GitHub · 2026-11-24 18:41 UTC · original
@gut0to agreed, the smoke pair is still missing. I have no retail title on this machine, so I can't produce the blocks myself. The description asks for someone with a title to post
mainand this head, or for a maintainer to run them. Until then it waits, as CONTRIBUTING says.AI use: Claude Code (Claude Opus 5.5) drafted this reply.
@marquezinii on GitHub · 2026-11-24 19:03 UTC · original
@eizispark thank you, that's the smoke pair this was waiting on, plus the native wave64 run I couldn't do. I've copied both blocks into Regression run as you posted them, credited to you.
c160d86is onmainand the PR block names this head. I've also noted under Not tested that the pair ran withXCL_DXC_PROCESSoff, as you said, so a run with it on (cold cache) is still open.AI use: Claude Code (Claude Opus 5.5) drafted this reply.
@DavidM1911 on GitHub · 2026-11-24 20:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@marquezinii on GitHub · 2026-11-24 22:00 UTC · original
Rebased onto
main1d027e5, because the PR no longer merged. The only conflict was the module list ingpu/recomp/mod.rs(dxil,lane_masks,lower,lower_dxilcame in next todxc_process); the code is unchanged. The new head is4802750. Here,cargo test --workspace -- --test-threads=4gives 963 passed, 0 failed, 43 ignored, and the same with every compile in workers (XCL_DXC_PROCESS=1). @DavidM1911, thanks for the run on the 3060 Ti.That leaves @eizispark's smoke pair on the old head
c7d07e1, so the description check needs a new one for4802750. @eizispark, or anyone with a title: ascripts/smoke.ps1pair onmainand4802750would put it back where it was. I'll copy it in as before.AI use: Claude Code (Claude Opus 5.5) did the rebase, ran the tests and drafted this comment.
@eizispark on GitHub · 2026-11-24 18:47 UTC · original · edited 2026-11-24 22:17 UTC
Hardware test report — commit
4802750(Updated for rebased head
4802750; previous headc7d07e1also passed.)Verified
4802750664de0842527ee479e61555908f0c2d17(clean merge withmain689f2db; rebased onmain4e3515e): pass.Tested
32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 x64,rustc 1.100.0 (0ef1bc386 2026-11-09), debug tests + release smokecargo test --workspace --no-fail-fast -- --test-threads=4:963 passed, 0 failed, 43 ignored(8 skipped: 6gpu::recomp::lower_dxil::testsf16/f32 direct-DXIL per-lane cases refused where#1426semantics differ from the console's;shaders::tests::pso_measurement_compiles_an_exact_synthetic_record— Windows Developer Mode required,0x887A002D;heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)gpu::recomp::dxc_process::tests(3/3passed:caps_from_the_setting,requests_and_replies_round_trip,without_a_worker_the_compile_runs_here) anddxc_worker(1/1passed withXCL_DXC_PROCESS:a_compile_past_the_cap_ends_its_worker_and_the_next_one_gets_a_new_worker)gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware, plusconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back) ran natively and passed on RDNA4Regression run (
scripts/smoke.ps1, 60 s, warm shader/driver cache,XCL_DXC_PROCESSunset as default)main(4e3515eed124b9f4779f5ef4e2b54adf97da936a):PR (
4802750664de0842527ee479e61555908f0c2d17):Not tested
XCL_DXC_PROCESS=1on a cold cache, NVIDIA/Intel GPUs, Wine/vkd3d-proton, gameplay past the menusAI use
@denverquane on GitHub · 2026-11-24 23:00 UTC · original
In-game runs with
XCL_DXC_PROCESS=1and a cold DXIL cache. Worker mode got through the retail title's world load without a compile failure. This load never reached the cap: DXC is not where memory went here.Setup: RTX 5070 12 GB (driver 621.24, 32-lane waves), Ryzen 7 9800X3D, 64 GB RAM, commit limit 129.5 GB, Windows 10 Home 22H2 (19045), rustc 1.100.0, release, DXC 1.9.2609.5. Retail 1.0.2.1, Series X. Tree: this PR's
c7d07e1(on9e3831e) with #684's heade56dbc3merged (without #684 the load ends at 63 s inxg::copy_from, #662). The PR has since been rebased onto1d027e5as4802750; the commit's change itself is unchanged (git range-diff), but these runs are on the old base.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50,XCL_DXIL_CACHEset to an empty folder for each run, runs alternated.XCL_DXC_PROCESS+0x23cf683at 130 s+0x23cf683at 311 s+0x23cf683at 91 s+0x23cf683at 166 s0x80000003at+0x4da6315, 98 s (#1164)title texture: upload failed: texture copy: GPU fence still pending after 10000 ms) and asked for almost no world pipelines after that. At the 120 s thread dump all DXC threads were waiting for jobs. Runs 3 and 5 did not stall, so I don't attribute it to this PR.xcl-psothreads are insidenvgpucomp64.dll. This load ends at the watchdog before it reaches the sources that grow DXC's heap in #1598, so it does not test the cap itself.Not tested: a load that reaches the >8 MB sources; other GPUs; repeat runs beyond these five; the rebased head
4802750.AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and drafted this; I checked it before posting.
@marquezinii on GitHub · 2026-11-24 23:18 UTC · original
@denverquane thank you, that's the first run of worker mode with a title and the piece that was missing. Five alternated runs with a cold cache, no failed compile, and the workers small (0.33 GB at most) all say the opt-in path holds up in a real load. I've added it to Tested with a link, and narrowed Not tested to what it leaves open, as you say: a load that reaches the cap.
The 28–31 GB against 31.5–33 GB for xcl.exe fits DXC's heap moving into the workers. With five runs ending at different times, I wouldn't read more into it than that.
AI use: Claude Code (Claude Opus 5.5) drafted this reply.
@wayback94 on GitHub · 2026-11-24 23:36 UTC · original
Test report: #1638 (
XCL_DXC_PROCESS) with a retail shader pack, Windows + NVIDIATested: PR head
c7d07e1400e7e96edbc5ce30a0848e18d8206cec(one commit, parent9e3831e1f570d3646e53ab753b19ec07eb8f1485)against
main9e3831e1f570d3646e53ab753b19ec07eb8f1485, release builds,xcl shaders <pack> --precompile --only cson the whole retail pack (26503 records, as in #1598).Yes, on this pack the cap does what the PR says. On
9e3831ethe compute-only precompile ran awayin XCL's own process (main process 22.94 GB private, commit from 22.11 to 35.19 GB in about 11 s) and my
sampler had to end it after
22600/26503. On the PR withXCL_DXC_PROCESS=1the same command finished:one 150952 KB source failed with
… past its 8192 MB capand there was no other error(compiled 2688 + 1 error = 2689, the pack's CS count), with the main process under 1.14 GB and commit at most 70.5 %.
9e3831e, DXC in processc7d07e1,XCL_DXC_PROCESS=1STOPPED AT 92 %); exit −1 is fromStop-Process. NoLLVM ERRORin the log22600/26503 (138 s)24600/26503 (1792 s))compiled 2688, already cached 0, errors 1, skipped (GS – paired at pipeline creation) 0, time 1859.6 sxcl.exe--dxc-workerprocesses at onceWith a 4096 MB cap (run 4) two more sources fail, 30222 KB and 30301 KB, which the 8192 MB cap compiled.
XCL_DXC_PROCESS=1(8192 MB)XCL_DXC_PROCESS=4096compiled 2688, already cached 0, errors 1, …, time 1859.6 scompiled 2686, already cached 0, errors 3, …, time 1782.7 sxcl.exeRun 2 did not die on its own: commit went 22.11 → 25.30 → 35.19 GB across three 5 s samples, and the
sampler (then checking every 5 s) caught it at 97.1 %, not at 92 %. It is not known whether it would have
ended with
LLVM ERROR: out of memoryor taken Windows to its commit limit.Tested
Hardware: NVIDIA GeForce RTX 3080 10 GB (10240 MiB), driver 621.14 (Windows driver 32.0.16.2114); Intel Core i7-13700K (24 threads); 32 GB RAM (34,084,311,040 B)
Windows 11 Home 26H2, build 26300.9974
Page file: system-managed (
AutomaticManagedPagefile: True),C:\pagefile.sysallocated 2048 MB before and after the runs; commit limit 36,231,794,688 B before, during (every sampler line) and after. Committed before the first run: 10.97 GB; when run 2 started: 12.82 GB (15.00 GB a few minutes earlier, with other programs still open); after run 3: 11.66 GBRust 1.100.0 (
stable-x86_64-pc-windows-msvc, rustc 0ef1bc386 2026-11-09, LLVM 23.1.5), cargo 1.100.0 (3acc79c0c 2026-11-05)Visual Studio Build Tools 2022 17.14.45, MSVC 14.44.35207, Windows SDK 10.0.26100.0
DXC: the Windows SDK's, as the logs print it:
dxcompiler 1.9.2602.17 (21d28f72), dxil 1.9.2602.17, from C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64;XCL_DXC_DIRnot setClone:
git statusempty before and after (checked again after run 4), HEAD back at9e3831eafter. PR fetched withgit fetch origin pull/1638/head;FETCH_HEAD=c7d07e1400e7e96edbc5ce30a0848e18d8206cec, its only parent9e3831e1f570d3646e53ab753b19ec07eb8f1485Builds:
cargo build --release -p xcl --bin xclat each commit, exit 0, 2 warnings each (bothdeprecated:fetch_update, renamed totry_update) →build-9e3831e.log,build-c7d07e1.logbin-9e3831e\xcl.exe36E5AF60369FCFC5545F0F605A706009FCA8F4B4E1EF3D876B9424808F71CBD1bin-c7d07e1\xcl.exeE22C4ED25BDDF71730ED1E07B57A5AE5214DC1081F6843D5CC275E4223281D59Every run: run from its own
bin-*folder, a new emptyXCL_DXIL_CACHE=C:\xcl-1638-cache\<run>,XCL_TRANSLATED_CACHE=0, no otherXCL_*variable (XCL_DXC_WORKER_EXEunset), no--pipelines, stdout and stderr together (*>&1) into<run>.log. A sampler (sampler.ps1) wrote<run>-sampler.csv: committed bytes, commit limit, mainxcl.exeprivate bytes, count / total / largest private bytes of the--dxc-workerprocesses, and ends the mainxcl.exeand its workers above 92 % of the commit limit. Up to run 2 it checked every 5 s; for run 3 every 1 s (CSV line every 5 s), because run 2 overshot.Pack stage counts (
xcl shaders <pack>, analysis only, no compile, →analysis-stages.log): 26503 shader records;stages (DXIL): PS 12101, MS 9282, CS 2689, VS 2236, GS 195. So--only cscompiles at most 2689 programs; the progress counter also counts the records it skips.Run 1, smoke check of the worker (
bin-c7d07e1)As written,
--precompile --only cs --limit 3000compiles nothing on this pack:--limittakes the first N records and the first 3000 have no CS. With and withoutXCL_DXC_PROCESS=1(run1a-unset.log,run1b-process1.log):compiled 0, already cached 0, errors 0, no worker started (no compile went to one).--limit 8000(run1c-unset-l8000.log): the same.I then looked for a limit with CS programs,
XCL_DXC_PROCESSunset, each with its own new cache (run1-probe-l*.log): 21000 to 22000 in steps of 200: compiled 0; 22200: 43; 22400: 243. (One probe at--limit 26000was started by a mistake in my loop and ended by me withStop-Processafter 11.8 s; it is not used here.)--precompile --only cs --limit 22400:XCL_DXC_PROCESSunset (run1-probe-l22400.log)XCL_DXC_PROCESS=1(run1d-process1-l22400.log)compiled 243, already cached 0, errors 0compiled 243, already cached 0, errors 0Workers started (23, one per DXC thread); no
compiling in XCL's processin the log. One run each, so the wall time difference is not a measurement of speed.Run 2:
D:\xcl-logs-1638\bin-9e3831e\xcl.exe shaders <pack> --precompile --only cs, envXCL_DXIL_CACHE=C:\xcl-1638-cache\run2-9e3831e XCL_TRANSLATED_CACHE=0→run2-9e3831e.log,run2-9e3831e-sampler.csv. Results in the table above. Progress lines:22200/26503 (2 s),22400/26503 (73 s),22600/26503 (138 s); stopped at 221 s (16:15:00 sample).Run 3:
D:\xcl-logs-1638\bin-c7d07e1\xcl.exe shaders <pack> --precompile --only cs, envXCL_DXC_PROCESS=1 XCL_DXIL_CACHE=C:\xcl-1638-cache\run3-c7d07e1-process1 XCL_TRANSLATED_CACHE=0→run3-c7d07e1-process1.log,run3-c7d07e1-process1-sampler.csv. Results in the table above. It went past run 2's last line (22600/26503at 107 s,22800/26503at 212 s) and finished; the sampler never reached 92 %.cs_6_6):Compile: Not enough memory resources are available to complete this operation. (0x8007000E) – a 150952 KB source in a DXC worker process past its 8192 MB capDXC worker process ended (…)line, no other DXC error, noLLVM ERROR. Its peak commit (25.55 GB, 16:18:25) and the 8.59 GB worker peak are while that compile ran into its cap.Run 4: as run 3 with
XCL_DXC_PROCESS=4096:D:\xcl-logs-1638\bin-c7d07e1\xcl.exe shaders <pack> --precompile --only cs, envXCL_DXC_PROCESS=4096 XCL_DXIL_CACHE=C:\xcl-1638-cache\run4-c7d07e1-process4096 XCL_TRANSLATED_CACHE=0→run4-c7d07e1-process4096.log,run4-c7d07e1-process4096-sampler.csv. Results in the run 3 / run 4 table above; the sampler never reached 92 %.cs_6_6:Compile: Not enough memory resources are available to complete this operation. (0x8007000E) – a 150952 KB source in a DXC worker process past its 4096 MB cap… (0x8007000E) – a 30222 KB source in a DXC worker process past its 4096 MB cap… (0x8007000E) – a 30301 KB source in a DXC worker process past its 4096 MB capDXC worker process ended (…)line, no other DXC error, noLLVM ERROR.Two observations from these runs
dxc_process.rs:23says "the biggest translations of a retail pack take ~0.7 GB in DXC". Here the 30222 KB and 30301 KB sources failed at 4096 MB and compiled at 8192 MB (runs 3 and 4), so each took more than 4 GB, and the 150952 KB source took more than 8 GB. 8192 MB was enough for every source except the 150952 KB one, which newermainno longer produces (#1321). A 4096 MB cap would also fail the two ~30 MB ones.wait_for_memory,dxc.rs:427, called atdxc.rs:461), not the job object. I did not test a case where several big compiles run at once.Not tested
--pipelines(NVIDIA driver memory on top of DXC's)xcl run) withXCL_DXC_PROCESS=1, and the regressionscripts/smoke.ps1runs--only cswas run on the whole packXCL_DXC_PROCESS=1) and 4096 MB (XCL_DXC_PROCESS=4096)cargo test), including the PR'scrates/xcl/tests/dxc_worker.rsLLVM ERRORor the commit limit)AI use
claude-opus-5-5): read the PR's diff, built both commits, wrote the sampler and run scripts, ran every run, and wrote this report from the logs and sampler CSVs. A second Claude Code session (Claude Opus 5.5) checked every figure against the logs and CSVs, corrected one, and wrote the two observations from the run results and a reading of the PR's code. The user reviews and posts it.@milesah3ad on GitHub · 2026-11-25 03:07 UTC · original
Speed, not just memory: with DXC in worker processes, NVIDIA pipeline builds that run alongside DXC are about 22 % faster on this machine, and the whole batch finishes 21 % sooner. No game files: synthetic programs, RTX 5080. This adds the side of #1638 nobody has measured. On #156, compiles in the same process slowed the driver down, and @wondercrash's WinDbg snapshot there showed
nvgpucomp64holding the NT process-heap lock while DXC threads waited.Setup: RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D (16 threads), 64 GB, Windows 11 Pro 26300, rustc 1.100.0, release, DXC 1.9.2609.5. This head
4802750.Probe (a local example, not pushed): it links
xcl, answers--dxc-workeritself throughdxc_process::serve()(so the workers are copies of it), and callsdxc::compile, the pool the runtime uses (XCL_DXC_THREADS=8).nv680shapes from #680: 4 memory windows, switch form, 250 and 500 rounds), 10.7 MB of DXIL in total. Fresh seeds every run, so neither the DXIL cache nor the driver's can answer.dxc::compile, and 6 threads build each DXIL withCreateComputePipelineStateas it arrives (each pipeline released right after). This is the overlap a world load has.XCL_DXC_PROCESS=1runs alternated, 2 rounds each, plus two controls.XCL_DXC_PROCESS=1, round 1XCL_DXC_PROCESS=1, round 2So beyond the cap that #1598 / #1566 need,
XCL_DXC_PROCESS=1takes the DXC-versus-driver heap contention out of the title's process. That matters for the world load, where cold DXC compiles and driver builds overlap. It may be worth noting when the default is decided.Tests on
4802750:cargo test -p xcl --lib dxc: 41 passed, 0 failed, 3 ignored (includingdxc_process::tests::*).Not tested
nvgpucomp64, and AMD's driver may differ). Two rounds per arm, so treat the size as approximate rather than exact.AI use: Claude Code (Claude Opus 5.5) wrote the probe, ran it on the machine above and wrote this report. I checked the numbers against the logs.
@marquezinii on GitHub · 2026-11-25 04:33 UTC · original
@wayback94 thank you, this is the run on the whole pack that the PR needed, and with numbers that are easy to trust. On
maincommit went 22 → 35 GB in 11 s; withXCL_DXC_PROCESS=1it finished with 1 cap failure and the main process under 1.14 GB.Both of your observations are right:
mainno longer makes (#1321). So 8 GB stays the default, and your 4096 MB run shows why.wait_for_memory), as you read it. The comment and the README now say so.That's in
2639c08, comments and README only, squashed into the one commit.@milesah3ad thank you, that's a side nobody had measured. Driver builds 22 % faster with DXC out of the process, and contention cut roughly in half, matches the
nvgpucomp64heap-lock snapshot on #156. Both reports are in Tested now, with links.The head moved again, so the smoke pair is still open: anyone with a title, a
scripts/smoke.ps1pair onmainand2639c08would complete it.AI use: Claude Code (Claude Opus 5.5) made the correction and drafted this reply.
@wayback94 on GitHub · 2026-11-25 08:31 UTC · original
@marquezinii here is the smoke pair on
2639c08, against its parentmain1d027e5: RTX 3080, driver 621.14, Windows 11 26300, release builds from clean trees, 60 s, warm caches (one discarded warm-up run of each build first). Ready to paste under Regression run:main1d027e5:PR
2639c08:Frames 100.3 % of
main's, peak commit 100.0 %, no device removal, no crash. This was the second of two pairs; I chose it before running it, because it would be the latest. The first pair gave 1632 / 1630 frames and 14681 / 14605 MB.Also on
2639c08:cargo test --workspace -- --test-threads=4(debug): 963 passed, 0 failed, 43 ignored.SKIPPED: the wave64 cases (no wave64), the wave32 f16 / f32-conversion per-lane caseslower_dxilrefuses,pso_measurement_compiles_an_exact_synthetic_record(no Developer Mode),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).XCL_DXC_PROCESS=1and an emptyXCL_DXIL_CACHE, 60 s, twice: 1576 and 1579 frames, no crash, no device removal.--dxc-workerprocesses at once, each at most ~4 MB private.Not tested: AMD, Wine, runs longer than 60 s or past the menus, a cap other than the default or a compile that reaches it, and a cold-cache run without the workers to compare the
XCL_DXC_PROCESS=1runs against.AI use: Claude Code (Claude Opus 5.5) built both commits, ran the tests, the smoke runs and the memory sampler, and wrote this from the logs. The blocks were copied from
smoke.ps1's output, not typed.@DavidM1911 on GitHub · 2026-11-26 05:58 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.@gut0to on GitHub · 2026-11-24 18:33 UTC · original · reviewed
The unit, worker-mode, and failure-cap tests are thorough. The required runtime regression evidence is still missing: CONTRIBUTING.md requires
scripts/smoke.ps1blocks for bothmainand this head whenevercrates/xcl/srcchanges, even if the title does not exercise the changed path. The Regression run section currently leaves both blocks empty and says no retail title was available. Please add the paired runs before merge (or get a maintainer with a title to run them). AI-assisted review; I checked the description against the project guide.xcl shaders --precompile --only cs --pipelines: access violation in dxcompiler.dll with parallel DXC compiles, not with XCL_DXC_THREADS=1 #2751@mokkamokacaffe on GitHub · 2026-11-26 12:11 UTC · original
I rebased the exact #1638 implementation onto current
main(b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7) without changing its scope. The original Git author remainsmarquezini; the rebased head ise8f0c3853b74dc1d866cacc9a4366746d0429945.Branch:
mokkamokacaffe:shaders/rebase-dxc-worker-processesThe two conflicts were resolved as follows:
README.md: retainedmain's linked memory-accessor documentation and added the worker-process setting after it.crates/xcl/src/gpu/recomp/dxc.rs: retained the currentcompile_here→ linked/whole compilation path, made it visible todxc_process, and kept the worker handoff inside the current pool after demand-aware memory admission.The existing coverage already checks the two required failure properties: a truncated worker reply is rejected, and the cap integration test verifies that the following compile succeeds through a replacement worker.
Checked on the rebased head
cargo check -p xcl --tests --target x86_64-pc-windows-msvc: passed in a Linux compile-only cross-check with a local archive wrapper.git diff --check: passed.Still required
xcl-smokeblocks on currentmainand this exact head.XCL_DXC_PROCESS=1.I prepared an updated description separately; its historical test and smoke results are explicitly marked as not rerun on this head.
AI use
xcl shaders --precompile --only cs --pipelines: access violation in dxcompiler.dll with parallel DXC compiles, not with XCL_DXC_THREADS=1 #2751@ettehn on GitHub · 2026-11-26 13:12 UTC · original
Native Windows verification of the rebased implementation, exact clean
e8f0c3853b74dc1d866cacc9a4366746d0429945onmainb49be183. Windows 11, RTX 5070 Ti Laptop (12 GB), Rust 1.97.1 MSVC, DXC 1.8.2502.11.Worker recovery passed 3/3 (one workspace run and two separate
cargo test --locked --offline -p xcl --test dxc_worker -j 2 -- --test-threads=1 --nocaptureruns). In every run the initial small shader compiled, a 176 KiB source under a 24 MiB worker cap returned0x8007000Ewith the cap diagnostic (23 MiB recorded peak), and the next small compile returned valid DXIL. The parent test process continued. This exercised the reported OOM path. It did not reproduce the specific access violation from #2751.cargo build --workspace --locked --offline -j 2passed.cargo test --workspace --locked --offline -j 2 --no-fail-fast -- --test-threads=1 --nocapturereported 1435 passed, 4 failed, 47 ignored (25 explicit skip markers within the pass count). The four GPU DXIL fuzz failures were the same seeds (70, 545, 1019, 1507) andCreateComputePipelineState0x8007000Eerrors reproduced on cleanb49be183on this machine. No retail title or pack test in this run.AI-assisted Windows verification (OpenAI Codex).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.