Recompiler: flatten direct DXIL root-UAV loads for compute #2368
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!2368
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2368/head"
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?
@coolpersonnn on GitHub · 2026-11-25 16:50 UTC · original
coolpersonnn:direct-dxil-flat-loads→main· +312 −38 · 4 files · 1 commits · merged 2026-11-25 19:59 UTCPart of #2088. Replace per-load
switch i32CFGs across the 4 root-UAV memory windows (u2..u5) in direct DXIL (XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0) with branchless straight-linerawBufferLoad+selecton non-graphics stages (self.gfx.is_none()).In direct DXIL root-UAV mode, every scalar, buffer, or flat load previously branched through
with_mem_many_tys, emitting a per-load 5-armswitchand mergephinodes. Compute shaders with hundreds or thousands of loads grew thousands of basic blocks, driving multi-minute cold NVIDIA driver compiles and multi-gigabyte driver commit spikes. Flattening read-only loads resolves the effective windoww_eff = sel(guard, w, n)once, comparesw_eff == kacross windows0..n, reads offset0on unselected windows/lanes, and selects the result — preserving#1693out-of-range (0) and inactive-lane (0) semantics while issuing only valid offset-0 reads on bound windows.Scope and relationship to other work
with_mem_many_tys, PR #2288),bvh_intersect,XCL_HEAP_WINDOWS=1(PR #1695), and the HLSL path (PR #1380 / PR #2191) are untouched.VS/PS,self.gfx.is_some()) keep theswitchpath. Measuringps-200-loadson0829441showed that flattening root-UAV loads on Pixel Shaders regressed NVIDIA cold compile time 5.64x (1,632 -> 9,203 msstraight-line,2,224 -> 2,592 mslooped). On3f4495a(with PR #2346 non-coherent compute windows), both non-coherent andGLC-coherent compute speed up consistently with zero regression, while PS DXIL stays byte-identical (dxil_hash=98a91ac649117912,132,508 B).bind.rs(u2..u5, filteringv != 0) andrunner::dispatch_withalways bind valid non-null buffers for all 4 root-UAV window slots so unselected offset-0 reads never touch GPU VA0.What is in it
crates/xcl/src/gpu/dxil/lower_mem.rs: addwith_mem_raw_loadsandmem_ld_chunks, routing direct DXIL read-only raw loads (mem_ld,mem_ld_n,ld_raw_guarded,ld_raw_u32_guarded,s_buffer_load,s_load, single-componentBufKind::FormatLoad) through branchless offset-0 loads +selectwhenself.heap_mem.is_none() && self.gfx.is_none().crates/xcl/src/hle/d3d12x/bind.rs: filterv != 0when populatingu2..u5so an unpopulated(0, 0)UMA_BUFFERslot falls back tofirst.crates/xcl/src/gpu/recomp/runner.rs: bind root UAVsu2..u5indispatch_with(previously onlyu2was bound).crates/xcl/src/gpu/dxil/core_tests.rs: addraw_loads_in_root_windows_are_branchless(IR shape across wave32, split-wave64, native-wave64, heap windows, stores/atomics, and PS exclusion) andraw_loads_in_root_windows_respect_exec_and_bounds(GPU readback over 4 windows, offset-0 canaries, window bounds,hi == 0-> w0, 64-bit carry across windows, maskedEXEC, and unaligned format loads).Tested
shaders.rpfdirect-DXIL scan & validation (3f4495a->58bb1f5,splitenabled for wave64 on RTX 5090, 4 root UAV windows): 2,682 / 2,682 unique compute records translated directly (0HLSL fallbacks,0DXIL validation errors across all emitted pieces), modifying 2,635 compute records.shaders.rpfcoldCreateComputePipelineStatebenchmarks on RTX 5090 (3f4495a->58bb1f5, release builds, 3 paired interleaved trials per record, isolatedXCL_DXIL_CACHE, fresh per-run.execopies, distinct unused root-constant layout keysShaderRegister=6, Num32BitValues=1..39; immediate same-layout warm replays took0.82–15.80 ms; 0 errors, 0 timeouts, 0 device removals):3f4495a)58bb1f5)219287eb2f6021fe95cc13288a27a96e73fb752d7f62c3a5dca1b25b4487801884eee477d68b6fdf620491641aa9bad656c0cd3b82a00c6e4585e350d1b864e3715d367152768991a4c70d5842b40e132099a37cbf86d15530a7bbba88b255cc777348c43857fdd23f4495a->58bb1f5(3 paired interleaved trials, 128 root-window loads/lane across 4 windows, 128 groups x 128 timed dispatches after 8 warmups, 100% readback dwords verified, 0 device removals):uniform wave32:10.560 -> 3.296 us(3.20x faster)uniform split-wave64:9.696 -> 5.280 us(1.84x faster)mixed wave32:22.608 -> 4.832 us(4.68x faster)mixed split-wave64:21.408 -> 6.688 us(3.20x faster)58bb1f5(with an isolated freshXCL_DXIL_CACHE):XCL_ADAPTER=5090cargo build --workspace --locked --offline -j 8: passed.XCL_ADAPTER=5090XCL_SAMPLE_RPF=$RetailPack:cargo test -p xcl --lib --locked --offline -j 8 gpu_retail -- --nocapture: 1 passed, 0 failed, 0 ignored.cargo test -p xcl --lib --locked --offline -j 8 raw_loads_in_root_windows -- --nocapture: 2 passed, 0 failed, 0 ignored, 0SKIPPED.cargo test -p xcl --lib --locked --offline -j 8 compute_globallycoherent_only_when_needed -- --nocaptureandgpu_compute_coherent_and_cached_loads -- --nocapture: 1 passed, 0 failed each (0SKIPPED).cargo test --workspace --locked --offline -j 8 --no-fail-fast -- --test-threads=4 --nocapture: 1,273 passed, 4 failed, 46 ignored, 26SKIPPEDnotices across 23 test binaries (xcl --lib: 1,204 passed, 4 failed, 26 ignored; the 4 failures are pre-existing RTX 5090gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3seeds 70, 545, 1019, 1507 hittingCreateComputePipelineState: 0x8007000E, identical to cleanmain).XCL_ADAPTER=warpcargo test -p xcl --lib --locked --offline -j 8 -- --test-threads=4 --nocapture: 1,208 passed, 0 failed, 26 ignored, 322SKIPPEDnotices.Rebased workspace verification on the same RTX 5090 (driver 621.01), Windows 11 build 26300, Rust 1.100.0 MSVC, DXC 1.8.2502.11. The original offline benchmarks above retain their measured revisions.
cargo build --workspace --locked --offline -j 8passed on both revisions.cargo test --workspace --locked --offline -j 8 --no-fail-fast -- --test-threads=4withXCL_ADAPTER=5090,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0and separate DXIL caches reported 1,341 passed, 6 failed, 46 ignored, 26 SKIPPED notices on3ceb550and 1,343 passed, 6 failed, 46 ignored, 26 SKIPPED notices onc685e12across 24 test result blocks.CreateComputePipelineState0x8007000Eon seeds 70, 545, 1019, and 1507. The bridged-mask barrier assertion andoffline_compute_pipeline_is_reused_by_a_second_processalso failed on both revisions.Rebased head GPU skips
SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refusedSKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missingSKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windowsRegression run
Release builds from both clean commits used
cargo build -p xcl --release --locked --offline -j 8. Both ran./scripts/smoke.ps1 -Game $RetailTitleFolder -Seconds 60 -Xcl $ReleaseExe -OutDir $SmokeOutwithXCL_ADAPTER=5090,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0,XCL_PSO_TRACE=1, andXCL_FRAME_DUMP=300. Each run started with separate emptyXCL_DATA_ROOTandXCL_DXIL_CACHEdirectories. All three paired sampled frames matched byte-for-byte by SHA-256.Clean main
Clean head
Not tested
XCL_HEAP_WINDOWS=1(unchanged by this PR).58bb1f5(earlier Radeon iGPU check passed 2/0 onraw_loads_in_root_windowsbefore excluding graphics stages and rebasing onto3f4495a).AI use
T3 Code (Antigravity harness, gemini-pro-orchestrator-neon) designed and implemented the direct DXIL flattening and tests, extended the offline pack benchmark harness, ran the tests, retail cold PSO benchmarks, and paired 60 s smoke runs, and drafted this description.
Codex in T3 Code (gpt-6.2-sol) resolved the rebase, ran the workspace and smoke comparisons on the new commits, and updated the report.
@bielfreedom on GitHub · 2026-11-25 17:56 UTC · original
AMD Windows driver timing for #2368: on the RX 9070 XT, AMD's
CreateComputePipelineStateis 1.86× faster over 26 large retail compute programs, and peak memory halves.CS_RaytracingResolve(84eee477d68b6fdf) builds in 20 s instead of 60 s. This is the largest direct-DXIL driver-time gain I've measured on this card.Setup
3f4495a;58bb1f5.fnv64) and per-CreateComputePipelineStatetime.Method
XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0(the root windows this PR changes),XCL_PIPELINE_THREADS=1.XCL_PSO_DISK_CACHE=0and a fresh exe name per run, because the AMD driver cache is keyed on the exe file name.84eee477d68b6fdfand620491641aa9bad6, the two AMD-slow programs from #1269.Census (all 2,689 retail compute programs, translation only): 2,641 change. 2,639 grow and 2 shrink, for +1.3 % of DXIL in total.
26 programs (means of 2 rounds; all 104 builds succeeded, 0 refused)
3f4495aThe gain grows with program size:
84eee477d68b6fdfCS_RaytracingResolveed2f8fa2e996c6a6b3618a0fd76af79cc6f8ee0f53ed5709d8435f454a5102706d1e4583f81297717c08ec6429245b8e620491641aa9bad6Read / inference
84eee477d68b6fdfbuilds whole in 20 s on the direct path, against more than 20 minutes on the HLSL path (data).selectform, not just from removing the switch.Tests on this card (
XCL_REQUIRE_GPU=1,XCL_ADAPTER=9070)cargo test --release -p xcl --lib -- raw_loads_in_root_windows --test-threads=1: 2 passed, 0 failed, no SKIPPED notice.raw_loads_in_root_windows_respect_exec_and_boundson native wave64.Not tested
XCL_HEAP_WINDOWS=1(unchanged by the PR).AI use: Claude Code (Claude Opus 5.5) ran the census, measurements and tests and drafted this. Counts and timings only, no game data.
@Aniseto on GitHub · 2026-11-25 18:11 UTC · original
Ran the two new root-UAV load tests at
58bb1f5:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC/DXIL 1.9.2609.5, debug build.
Both
raw_loads_in_root_windows_are_branchlessandraw_loads_in_root_windows_respect_exec_and_boundspass here; the second one does GPU readback across the four windows, so the EXEC/bounds and canary checks ran on the real adapter.What this adds: the author's hardware results are all on an RTX 5090 32 GB with Windows SDK DXC/DXIL 1.8.2502.11. This adds a second Blackwell part (16 GB) with DXC/DXIL 1.9.2609.5, and the thread has no test report from another machine yet.
Not tested: the retail shader-pack cold PSO benchmarks, the synthetic dispatch timings, a paired 60 s smoke run,
XCL_HEAP_WINDOWS=1, AMD and Intel GPUs, Wine, release profile, title data.AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
@emirduran707 on GitHub · 2026-11-25 18:34 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
58bb1f5a5d10732516dce40619f7509e8a4c4d43(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1275 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.gpu::dxil::core_tests::raw_loads_in_root_windows_are_branchlessandraw_loads_in_root_windows_respect_exec_and_bounds.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@thiagocalile on GitHub · 2026-11-25 18:49 UTC · original
Independent test and smoke report for head
58bb1f5a5d10732516dce40619f7509e8a4c4d43on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon XCL_DIRECT_DXIL=0 cargo test --no-fail-fast -p xcl --lib -- gpu_ --test-threads=1: 147 passed, 1 failed, 1 ignored (0skipped).gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1XCL_ADAPTER=radeon XCL_DIRECT_DXIL=1 cargo test --no-fail-fast -p xcl --lib -- gpu_ --test-threads=1: 147 passed, 1 failed, 1 ignored (0skipped).gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1Regression run (
scripts/smoke.ps1, release builds,XCL_ADAPTER=radeon)main(50a9fde):PR
#2368(58bb1f5):Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.
AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
@DavidM1911 on GitHub · 2026-11-25 18:50 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@SlopTart on GitHub · 2026-11-25 19:06 UTC · original
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 targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).suite: 145/3 = the three known baseline failures on this lane (
fuzz_validate_and_gpu_2seed 1003,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_depth_buffer_created_for_unordered_access_is_placed). Targeted run of the new raw-load root-window tests: 2 passed.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.
@thehollowedone on GitHub · 2026-11-25 19:24 UTC · original
Independent RTX 3080 Ti check on clean c685e12, whose parent is 3ceb550. Windows 11 build 26300, NVIDIA 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, SDK DXC/DXIL 1.8.2502.11. Offline Cargo;
XCL_ADAPTER=RTX 3080 Ti XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=0 XCL_NETWORK=0; no sample data.Tested
cargo build --offline --locked --workspace --jobs 6passed.cargo test --offline --locked -p xcl --lib raw_loads_in_root_windows --jobs 6 -- --test-threads=1 --nocapture, withXCL_D3D12_DEBUG=1: 2 passed, 0 failed, 0 ignored, 0 skipped. The GPU readback test checked active and masked lanes, bounds, four root windows, the offset-zero canaries, and the cross-window carry.cargo test --offline --locked --workspace --no-fail-fast --jobs 6 -- --test-threads=4 --nocapture, with the debug-layer override unset: 1,347 passed, 2 failed, 46 ignored, including 26 runtime skip notices. The failures werea_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierandoffline_compute_pipeline_is_reused_by_a_second_process.Option::unwrap()site. I did not run the parent's full suite.Not tested: retail smoke, cold NVIDIA driver compile time, AMD/Intel, or full title output. This report does not establish merge readiness. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the checks and drafted this report.
@upipibi on GitHub · 2026-11-25 19:31 UTC · original
NVIDIA test report for
c685e12(head as is, base3ceb550), for #1607 and #2088. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2 --skip gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier: 1339 passed, 0 failed, 46 ignored. The end-to-end title tests pass.a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier: this head's base has that test but not its fix (#2420, merged 18:45Z), so it fails onmainat that base too. The PR doesn't touch it.hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
@ivall on GitHub · 2026-11-25 19:44 UTC · original
Closing and reopening at once, only to get a CI run on today's
main: the failed one ran on amainfrom before #2420, which fixeda_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier. Nothing is wanted from the author. (Claude Code, Claude Opus 5.5, on the maintainer's behalf.)@ivall on GitHub · 2026-11-25 19:59 UTC · original
Merging: direct-DXIL compute loads from the root memory windows become straight-line loads and selects. Stores, atomics, graphics stages and heap windows keep their form. The cold-compile gain is measured by others above: 1.86 times over 26 large programs on AMD RDNA4, about half the peak memory (bielfreedom), and the RTX 5090 table in the description. I did not repeat those.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
maine0d93c8with #2097 (d5c2781) and #2368 (c685e12) merged locally, againstmaine0d93c8. Whole suite: 1423 passed, 2 failed, 46 ignored, 7 SKIPPED (main: 1419 / 2 / 46, 7 SKIPPED). WithXCL_DIRECT_DXIL=1,cargo test -p xcl --lib -- gpu:: hle::d3d12x: 953 passed, 2 failed, 24 ignored (main: 949 / 2 / 24). The two failures arefuzz_validate_and_gpu_1and_3on both. Both new tests ran here without a skip. Not tested here: a title run withXCL_DIRECT_DXIL=1.AI use: Claude Code (Claude Opus 5.5) read the diff and the thread, ran the tests and wrote this on the maintainer's behalf.
@humsterbumster on GitHub · 2026-11-25 20:50 UTC · original
A crash in dxil-spirv's CFG structurizer after this change (Linux + vkd3d-proton 3.2.0, retail title world load).
Environment: Linux x64, RTX 5090, NVIDIA 620.73.04, Proton 11's Wine, vkd3d-proton 3.2.0 (
ec20719, dxil-spirv7c04863, built with-Db_ndebug=true), DXC 1.9.2609.5. Title run withXCL_DIRECT_DXIL=1 XCL_PSO_WAIT_MS=50 XCL_PSO_IMAGE_SKIP=0, a warmvkd3d-proton.cache, and A pressed on the loading cards.Tree:
main6d12f58+ #541 + #1803 + #684 + mimalloc, plus #2422 merged.0xc0000005 in d3d12core.dll+0x184de5 (read at address 0x130)on threadxcl-pso-11, 182.3 sXCL_PSO_DISK_CACHE=0(no XCL-supplied cached blob)objdumpon the builtd3d12core.dllat0x184de5(image base0x1cad90000) lands indxil_spv::CFGNode::find_common_post_dominator(CFGNode *, CFGNode *):So a null node reaches the post-dominator walk as the second argument;
assert(b)innode.cppis compiled out under-Db_ndebug, and the walk then reads0x130of a null pointer on a background PSO worker (xcl-pso-N, 64 MB stack, so not a stack overflow). Every crash follows a burst of small compute PSOs (7–11 KB DXIL) and arootsigline; the compile that dies is one XCL started on a worker, so the DXIL that triggers it is not the one just logged.Attribution, same tree and knobs, only this commit reverted (
git revert -n c685e12, binaryde29de2c293c126d…):rc=1with no exception and no device removal;main3ceb550(before this change), same knobs: no dxil-spirv fault, the run reaches the usualD3D12 device removed: 0x887a0005at 332.9 s.Two reverted runs against three merged ones is a small sample, but the crash is deterministic in place (same frame, same null read) and absent in both reverted runs, and the only difference between the trees is this commit. Whatever the flatten emits for at least one console compute program ends up in dxil-spirv's structurizer as a CFG with a null successor/post-dominator edge — could the flattened path leave a branch target unset (or an empty edge) in the emitted DXIL, or is this a known dxil-spirv null-edge case that the DXIL shape exposes? I can run any patch on this box and report back with the same A/B.
Logs, screenshots and the crash log stay local (they contain title data).
AI use: omp (DeepSeek V4.1 Flash 1017) ran the builds, the A/B legs and the disassembly, and wrote this comment from those logs.
@luckyteagirl on GitHub · 2026-11-25 21:11 UTC · original
RX 6800M failure control for merged PR #2368. The same focused test was run on clean
main6d12f58a229bc73889878a448c64dc3af25eeba0and on #2221 head89d71f2d3c8c941dc992dd916517b4267043ecc1.Environment: AMD Radeon RX 6800M, driver
30.0.13002.13003; Windows 11 Home build26200; Ryzen 9 5980HX; Rust1.99.0MSVC; DXC/DXIL1.8.2502.11.Command on each head:
Both test processes exited
0xc0000005(STATUS_ACCESS_VIOLATION) before libtest produced a summary. No pass/fail counts are available. Local output:work-dot8-clamp/lib-raw-loads-main-6d12f58.logandwork-dot8-clamp/lib-raw-loads-head-89d71f2.log.This result does not attribute the crash to #2368 or #2221. I did not run an A/B against #2368's parent.
AI use: OpenAI Codex (GPT-6; exact variant unavailable) inspected the recorded logs and prepared this report.
@humsterbumster on GitHub · 2026-11-25 21:11 UTC · original
Follow-up on my comment above, with a result that argues against a clean attribution: the same merged tree (
6d12f58+ #541 + #1803 + #684 + mimalloc + #2422,9dc0292d…), same warm cache and knobs, but withXCL_PSO_TRACE=1andXCL_PSO_DISK_CACHE=0, ran without the dxil-spirv fault and ended at 311 s (rc=1, no exception, no device removal). So it is 3 crashes in 4 runs on the merged tree, not 4 in 4, and the one run that escaped is the one that logs every driver compile (which serialises the starts on the log lock) — a timing dependence, or a specific program that this run did not reach, is at least as likely as a clean cause in the flattened DXIL.The reverted tree is still 0 in 3 (283 s, 266 s, 303 s with
XCL_GPU_WAIT_TIMEOUT_MS=600000; 307 s withXCL_PSO_PRELOADon), all endingrc=1with no exception, so the A/B stands as a hint and not as proof.If someone wants the crash under a debugger rather than a guess, the runs that crash are the ones with
XCL_PSO_TRACEoff; the last compile XCL started before the fault can be picked from aXCL_PSO_TRACE=1run and replayed alone withxcl shaders <game folder> --measure-pso <record>, which is a single-threaded driver compile of that exact record — that would tell apart "the DXIL from the flatten breaks the structurizer" from "concurrent compiles do".AI use: omp (DeepSeek V4.1 Flash 1017) ran the legs and wrote this.
@humsterbumster on GitHub · 2026-11-25 21:18 UTC · original
One more datum, and it moves the fault away from XCL's background workers: the same merged tree with
XCL_ASYNC_PSO=0(every pipeline built in the call, on the title's own thread) hits the samed3d12core.dll+0x184de5null read, twice, at 344.6 s and 345.3 s, on thread 372 — a title thread. Around it, thread 368 finishesdriver compile #51291: compute PSO, 332124 B DXIL, 4691 ms, huge, and the activity line just before is 60 presents / 177 draws / 0 dispatches in 2 s.So: the null post-dominator is not specific to
xcl-psoworkers, it is not XCL's blob cache, and it is not #2422. It shows up while a very large (332 KB DXIL) compute program is being compiled, on whichever thread runs that compile, which is also the shape of @wayback94's Linux report on #2403 (376 KB and 484 KB programs, thread stack overflow in dxil-spirv).If it helps, the next step I would take here is to replay one of those large records alone (
xcl shaders <game folder> --measure-pso <record>, single-threaded) and see whether it faults by itself or only next to a concurrent compile; I can run that on this box with any build you want.AI use: omp (DeepSeek V4.1 Flash 1017) ran the leg and wrote this.