DXIL split: prune piece-local features after optimize and transport f16/f64 #2334
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2344"
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?
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T16:08:12Z.
Part of #2088
Part of #1269
What is in it
Follow-up to #2080 in compute dispatch splitting (
crates/xcl/src/gpu/dxil/module/split.rs) fixing two classes of shaders that were previously refused during splitting and fell back to compiling whole:make_piece,infer_piece_features,trace_atomic64_handle):dst.m.optimize()beforedst.infer_piece_features()and emit pieces viadst.finish_optimized(threads, Some(32))instead of inferring flags before optimization and scanning deadself.m.instsentries.self.m.blocks.iter().flatten()and re-infer piece-local flags to match DXC 1.9 (DxilShaderFlags):ResourceHeapIndexing,SamplerHeapIndexing,WaveOps(dx.op.wave*/dx.op.quad*),TiledResources(dx.op.checkAccessFullyMappedand sample ops with a non-undef, non-zero-constant LOD clamp),TypedUavLoadAdditionalFormats(multi-component typed UAVdx.op.textureLoad*/dx.op.bufferLoad*viaannotateHandleproperties, with fallback),NativeLowPrecision(kept only when the whole shader used it and the piece has livehalf/i16instructions),DoubleExtensions(dx.op.tertiary.f64Fmaop 47 in addition tofinish_optimized'sinfer_type_features), and 64-bit atomics (AtomicInt64GroupSharedfor 64-bitAtomicRmw/CmpXchg, plus tracing livedx.op.atomicBinOp.i64/dx.op.atomicCompareExchange.i64handles throughannotateHandle,createHandleFromHeap,createHandleFromBinding,Phi, andSelectto restoreAtomicInt64Typed,AtomicInt64Heap, and per-bindingb.atomic64metadata with conservative fallback on unrecognized handles).f16andf64transport across cuts (transport_words,pack,unpack):TypeDef::Halfin 1 scratch word (bitcast half -> i16+zext i16 -> i32, restored viatrunc i32 -> i16+bitcast i16 -> half) andTypeDef::Doublein 2 scratch words (Shader::split_double/Shader::make_double).split::tests):dispatch_chain_prunes_piece_local_features_after_optimize: pure-CPU + DXC 1.9 validator test covering clampedsample_grad(0.5settingTiledResourcesand0.0clearing it per DXC 1.9hasSampleClamp) with a cross-cut heap handle, plus split-wave64 isolation ofWaveOps,NativeLowPrecision, andDoubleExtensions(Tertiary::Fmaop 47).dispatch_chain_restores_atomic64_typed_and_heap_features: pure-CPU + DXC 1.9 validator test covering split pieces with static typedi64UAV atomics (u4->AtomicInt64Typedand per-bindingi32 3, i32 1only onu4), static rawi64UAV atomics (u5-> per-bindingi32 3, i32 1only onu5, neither typed nor heap flag), heap rawi64UAV atomics (AtomicInt64Heaponly), and heap typedi64UAVatomicCompareExchange.i64(AtomicInt64Typed | AtomicInt64Heap), while asserting pieces withouti64atomics prune those flags and binding tags.dispatch_chain_transports_live_f16_across_cuts: DXC 1.9 validation of a 3-piece chain where livef16(including-0.0f16in lane 0) crosses cuts over an intermediate piece that uses nof16ops, plus GPU execution gated only onrunner::wave32_supported()andD3D12_FEATURE_D3D12_OPTIONS4::Native16BitShaderOpsSupported(so FP16-capable GPUs without FP64, such as Intel Arc A770, execute livef16transport directly).dispatch_chain_transports_live_f16_and_f64_across_cuts: DXC 1.9 validation of a 3-piece chain where livef16(including-0.0f16) andf64cross cuts over an intermediate piece that uses neither type, plusskip_test-guarded bit-for-bit GPU readback gated onrunner::wave32_supported(),Native16BitShaderOpsSupported, andD3D12_FEATURE_D3D12_OPTIONS::DoublePrecisionFloatShaderOps(gpu_float_ops_support(), addressing@JJAutoCompare's Arc A7700x80070057test-gate report; strictly#[cfg(test)]-only vsc24f3e97with0production lines changed).Tested
1.9.2609.5):0829441):dispatch_chain_prunes_piece_local_features_after_optimizerefused piece 1 of 2 (error: Flags must match usage.) anddispatch_chain_transports_live_f16_and_f64_across_cutsreturnedNonefromsplit_compute(transport_wordsrejectedHalf/Double).e26cba1):dispatch_chain_restores_atomic64_typed_and_heap_featuresfailed (piece 2 of 3 refused, the program stays whole: error: Flags must match usage.).5ed6946e(0production lines changed vsc24f3e97,rustc 1.100.0, DXC1.9.2609.5, NVIDIA GeForce RTX 4060 8 GB driver621.14, Windows 11 26200):cargo clippy --all-targets -- -A clippy::approx_constant: exit0,0warnings and0errors incrates/xcl/src/gpu/dxil/module/split.rs.XCL_ADAPTER=warp)cargo test -p xcl --lib -- gpu::dxil::module::split::tests:: --nocapture --test-threads=1:12 passed, 0 failed, 0 ignored(0.06 seach); all pure-CPU/DXC 1.9 validation checks (including bothdispatch_chain_transports_live_f16_across_cutsanddispatch_chain_transports_live_f16_and_f64_across_cuts) validated all 3 split pieces + whole shader with DXC 1.9 before skipping GPU execution (SKIPPED: no wave32 GPU).cargo test --release -p xcl --lib -- gpu::dxil::module::split::tests:: --nocapture --test-threads=1:12 passed, 0 failed, 0 ignored(0.30-0.37 s,0skipped — bothf16andf16+f64GPU transport tests executed bit-for-bit on GPU).git merge-tree --write-tree origin/main HEADexits0against liveorigin/main(8b957bec).CreateComputePipelineStatetimings (measured onc24f3e97, identical production code; fresh-named.execopies per mode with unique bytecode salt, verified cold by immediate 2nd warm call, on synthetic 16-loop shaders that0829441refused to split):tiled_clamp(hasha1baa443fcac1d43,1,465DXIL insts,16,996B whole ->6pieces): whole cold53.78 ms(warm0.411 ms) vs parallel 6-piece cold wall28.23 ms(max piece27.54 ms, sum90.97 ms, max warm1.147 ms) —1.91xfaster cold wall (-47.5%).live_f16_f64(hash95eb3b58dad86457,1,470DXIL insts,17,008B whole ->6pieces): whole cold37.18 ms(warm0.375 ms) vs parallel 6-piece cold wall20.50 ms(max piece19.48 ms, sum87.19 ms, max warm0.359 ms) —1.81xfaster cold wall (-44.9%).c24f3e97, identical production code, atop exact parent6d12f58a):cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocaptureon RTX 4060:37test binaries,1426 passed, 0 failed, 46 ignored(186/186gpu::dxil::*);29pre-existing hardware/debug-layerSKIPPEDlines (0insplit::tests):21no wave64(RTX 4060 is wave32-only),3per-lane form: refused(lower_dxil::testswave32 per-lane),3no D3D12 debug layer/no d3d12SDKLayers.dll,1cannot disable the driver cache(shaders::tests::pso_measurement_compiles_an_exact_synthetic_record),1no heap windows(heap_window_out_of_memory_falls_back_to_the_switch_form).Regression run
mainancestor (889ef3e8aa7f267323ab4879e735e65da6bcef10):PR head (
5ed6946efba188ba5fe3646b9ac494d9dbad4931):Not tested
Native16BitShaderOpsSupportedorDoublePrecisionFloatShaderOpssuch as Intel Arc A770).d3d12SDKLayers.dllis not installed on this host).AI use
Google Antigravity (Gemini 4 Neon) assisted with checking DXC 1.9
DxilShaderFlagsrules, implementing per-piece feature inference (including 64-bit resource atomic handle classification) andf16/f64transport insplit.rs, adding regression tests (including the Arc A770DoublePrecisionFloatShaderOpstest gate and standalonef16transport test), and running the verification suite, cold-PSO benchmarks, and retail smoke run.Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T16:22:59Z.
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).One red on this lane: the new transports test crashes inside
d3d12core.dllunder Wine.gpu_suite (--release --locked,--test-threads=2): 144 passed / 3 failed / 1 ignored, same three baseline failures as plainorigin/mainon this rig (rig's known baseline: fuzz seed 1003 of #2115,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_depth_buffer_created_for_unordered_access_is_placed).dispatch_chain_prunes_piece_local_features_after_optimize: passes, targeted run.dispatch_chain_transports_live_f16_and_f64_across_cuts: deterministic crash, 4/4 runs, and it is not a Rust panic. WithWINEDEBUG=warn+seh(the default-allhides this), wine reportsEXCEPTION_ACCESS_VIOLATION(0xc0000005); the whole unwind is insided3d12core.dll(+0x1AB118, +0x1784EC, +0x1A1676, +0x1A7852, +0x1A9450, +0x0DF8DB) called from the test exe frame. Process exit status 5 (= 0xC0000005 truncated), which is why it looked silent at first.gpu_cvt_norm_f16_exact_rounding_and_edge_cases,gpu_f16_defaults_to_round_to_nearest_even,gpu_s_round_mode_controls_f16_rounding_across_modesare all among tonight's 144), so it is not blanket f16 breakage on RADV.offline_split_compute_pipeline_is_reused_by_a_second_processe2e from #2338 crashes at the samed3d12core.dlloffsets on this lane (also deterministic), while the pre-existingoffline_compute_pipeline_is_reused_by_a_second_processpasses inside the same test binary (4 passed / 1 failed / 1 skipped). Two different new split-chain pipeline paths AV at one site in the shim; native Windows lanes (author, Aniseto, DarkPanda69) do not see it.Reading: something in the new split-chain piece transport builds a pipeline shape this Linux stack (patched vkd3d-proton 3.1 + Mesa 26.2.5 + RADV) faults on inside the D3D12core shim. I cannot say from a stripped backtrace whether the faulting code is XCL's vkd3d-proton patch or upstream vkd3d-proton; a debug-pdb run on a Wine/Proton bot would pin it. Addresses are module-relative offsets into the vkd3d-proton 3.1 XCL-patched
d3d12core.dllas shipped on this lane.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.
Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-25T16:26:42Z.
Independent AMD Radeon (native wave64) verification of exact head
1f70e6796fbd0a8e893d264497135a8235607321(clean detached worktree, compared againstmain3f4495a2b325).Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64)(XCL_ADAPTER=radeon, native wave64)cargo test -p xcl --lib gpu::dxil -- --test-threads=2— 158 passed, 1 failed, 3 ignored (exit 101); failed: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1Regression run (
scripts/smoke.ps1 -Seconds 60, release build,XCL_ADAPTER=radeon)main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T18:24:50Z.
Diff review on
1f70e67(infer_piece_features after optimize + live 16/64 transport in split.rs): clean change on the compiler side and Windows native checks are green, but holding merge until the deterministic d3d12core.dll access violation reported on dispatch_chain_transports_live_f16_and_f64_across_cuts under Wine/vkd3d-proton is diagnosed and resolved.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:25:27Z.
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!
Imported from ivall/xcl. Originally posted by SashaTun on 2026-11-25T18:40:20Z.
Test report on an NVIDIA card (Windows, retail title).
Tested
Commit:
1f70e6796fbd0a8e893d264497135a8235607321(fix-2080-split-features-f16-f64), clean checkout of the PR head, no uncommitted changes.Hardware: NVIDIA GeForce RTX 5060 (8 GB), driver
32.0.16.2101; 31.9 GB RAM; Windows 11 build 26200 x64.Toolchain: Rust
1.100.0(stable-x86_64-pc-windows-msvc); DXC 1.9 (Windows SDK10.0.26100.0); release profile; noXCL_SAMPLE_*variables.Command:
cargo test --release --workspace --no-fail-fast -- --test-threads=4→ 1270 passed, 4 failed, 46 ignored; 28
SKIPPEDlines (21 of themno wave64— this card runs 32-wide waves only).The 4 failures are
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0,1,2,3}, all with the same error:CreateComputePipelineState: 0x8007000E(out of memory) — the 8 GB VRAM wall. The same 4 failures occur onmainon this card, so they are not from this PR.Regression run on a retail title (
scripts/smoke.ps1, 60 s, same title, same duration, same card, both runs from a clean data directory; themainblock is on the commit this branch forked from):The PR's run shows no device removal and no crash, 855 frames against
main's 912 (≥ 80 %) and a peak commit of 14 978 MB againstmain's 15 022 MB (≤ 125 %).Not tested
f16/f64cross a cut, so the wave32 path is where it is exercised here.f16/f64transport.main, so the tree tested here is the branch head as it stands.mainhas one further failure on this card that this branch does not contain:gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, a test added after the branch point. It is not card-specific -main's own CI fails on it too - and I am reporting it separately.AI use
MiniMax Code (MiniMax-M3.1-Flash) built the commits, ran the test suite and the smoke runs, and wrote this report from the real output.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T18:44:58Z.
@raylitebull@SlopTart— Checked the code paths behind#2344and#2338againstorigin/main:#2344nor#2338modifiespso::dispatch_chain_root_signature(u0, space2+b0, space28x 32-bit root constants) orsplit_compute'sSlab::new/Scratch::newbindings;#2338's failing test (offline_split_compute_pipeline_is_reused_by_a_second_process) does not touchsplit.rsor usef16/f64at all, yet crashes at the exact same 6d3d12core.dlloffsets (+0x1AB118, +0x1784EC, +0x1A1676, +0x1A7852, +0x1A9450, +0x0DF8DB) on Wine + vkd3d-proton 3.1.cargo test ... gpu_does not matchorigin/main's pre-existingdispatch_chain_*GPU tests (dispatch_chain_wave32_live_loops,dispatch_chain_payload_skips_middle_piece,dispatch_chain_divergent_forward_edges_3d), which also callrunner::dispatch_split.@SlopTartCould you runcargo test -p xcl --lib dispatch_chain_wave32_live_loopson unmodifiedorigin/mainto confirm whether those samed3d12core.dlloffsets reproduce onmain's existing split-chain path under vkd3d-proton 3.1?Imported from ivall/xcl. Originally posted by thiagocalile on 2026-11-25T18:49:25Z.
Independent test and smoke report for head
1f70e6796fbd0a8e893d264497135a8235607321on 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 cargo test --no-fail-fast -p xcl --lib -- split --test-threads=4: 34 passed, 0 failed, 1 ignored (0skipped).Regression run (
scripts/smoke.ps1, release builds,XCL_ADAPTER=radeon)main(50a9fde):PR
#2344(1f70e67):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.
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:45:32Z.
Review: COMMENTED
P1: infer_piece_features removes AtomicInt64Typed and AtomicInt64Heap but never restores either for live resource i64 atomics. The atomicBinOp.i64/atomicCompareExchange.i64 match only sets has_i64_atomic; finish_optimized restores Int64Ops/Doubles, and only group atomics reinsert a feature. A split piece with typed static/heap i64 UAV atomic can therefore omit required DXIL SFI0 flags. Classify annotated handles and restore AtomicInt64Typed/AtomicInt64Heap, with split-piece typed/static and heap i64 atomic tests.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T21:39:11Z.
@bmjaskGood catch — fixed inc24f3e97(and rebased onto6d12f58a):infer_piece_featuresnow traces livedx.op.atomicBinOp.i64/dx.op.atomicCompareExchange.i64handle operands throughannotateHandle,createHandleFromHeap,createHandleFromBinding,Phi, andSelect(trace_atomic64_handle) to restoreFeature::AtomicInt64Typed,Feature::AtomicInt64Heap, and per-bindingb.atomic64metadata (with conservative fallback on unrecognized handles), and clears them on pieces without those atomics.Added
dispatch_chain_restores_atomic64_typed_and_heap_featuresinsplit::testsvalidating 3-piece chains with DXC1.9.2609.5across static typed (u4), static raw (u5), heap raw, and heap typedatomicCompareExchange.i64cases (11/11split::testspass on both RTX 4060 and WARP; full workspace1426 passed, 0 failed; paired 60 s RTX 4060 smoke1550vs1530frames,0crashes/removals).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T08:15:38Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib:hle::d3d12x::real::passthrough_mesh_stream_accepts_a_triangle_driver_blobfailed once under parallel scheduling; clean on--test-threads=1rerun (1309 passed, 0 failed, 27 ignored, 76s). The test is unchanged frommainand outside this PR's area (gpu/dxil/module/split.rs) — looks like the known parallel flake tracked in #1978.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by a-DuckGod on 2026-11-26T19:15:41Z.
Independent Windows 11 / NVIDIA test report on exact PR head
c24f3e9743cf43a3d61112da82201d06a05a691d(clean detached checkout; merge-base6d12f58a).Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc), Windows SDK DXC1.8.2502.11, D3D12 debug layer installed, debug build.cargo build --workspace: succeeded.cargo test -p xcl --lib gpu::dxil::module::split -- --nocapture: 11 passed, 0 failed, 0 ignored, 0 skipped — includingdispatch_chain_prunes_piece_local_features_after_optimize,dispatch_chain_restores_atomic64_typed_and_heap_features(validated under DXC1.8.2502.11), and GPU testdispatch_chain_transports_live_f16_and_f64_across_cuts(ran on RTX 3080 Ti).cargo test --workspace --no-fail-fast -- --test-threads=4: 1425 passed, 1 failed, 46 ignored (including alle2etests under the D3D12 debug layer and DRED).hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memoryunder parallel GPU load; standalone reruncargo test -p xcl --lib d32s8_targets_take_their_own_size_of_video_memory -- --nocapture: 1 passed, 0 failed, 0 ignored (2.86 s).SKIPPEDGPU tests (26): 21no wave64(RTX 3080 Ti is 32-lane waves only), 3 per-lane #1426 refused forms (V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32), 1shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(cannot disable driver cache; Windows Developer Mode required), 1heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Not tested
scripts/smoke.ps1run,XCL_SAMPLE_*tests, AMD / Intel / native wave64 GPUs.AI use
c24f3e97(dxil/module/split.rs), ran the build and tests, and drafted this report. I checked it before posting.Imported from ivall/xcl. Originally posted by upipibi on 2026-11-27T00:03:19Z.
Tested head
c24f3e9743cf43a3d61112da82201d06a05a691d, merge-base6d12f58a229bc73889878a448c64dc3af25eeba0, RTX 3070 (Ampere) driver 616.56, Windows 11, rustc 1.100.0 (0ef1bc386 2026-11-09)Debug build, no env vars needed (none set), run on a GeForce RTX 3070 (wave32 only), no game files.
cargo test -p xcl --lib gpu::dxil::module::split::tests -- --test-threads=1, 3 runs on head:11 passed, 0 failedeach time (includes the 3 new testsdispatch_chain_prunes_piece_local_features_after_optimize,dispatch_chain_restores_atomic64_typed_and_heap_features,dispatch_chain_transports_live_f16_and_f64_across_cuts).split.rs) applied to the merge-base6d12f58a, same command:8 passed, 3 failed; the 3 new tests fail (the two feature tests logcompute split: piece 1 of 2/3 refused, the program stays whole: error: Flags must match usage., the f16/f64 transport test fails).cargo test -p xcl --lib -- --test-threads=4(whole lib): head1301 passed, 0 failed(26 ignored); merge-base1298 passed, 0 failed(26 ignored). The +3 is the three new tests.hle::xaudio2tests ran normally here (9 passed), nothing skipped for them.no wave64(RTX 3070 is wave32-only), 3 per-lane form refused (#1426f16/VOP3 semantics), 1pso_measurement_compiles_an_exact_synthetic_record(SDK component missing: cannot disable the driver cache).Not tested: retail title.
AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:27:48Z.
Tested:
c24f3e9743cf43a3d61112da82201d06a05a691d, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17, debug.cargo test --locked -j 2 -p xcl --lib --no-run; exact feature-flag and mixed-transport filters in the built executable. With GPU selection disabled, libtest counted 3 passed and 0 failed/ignored, including one explicit GPU skip after validating the mixed FP16/FP64 shader. With A770 selected, the stock mixed FP16/FP64 fixture failed at pipeline creation (0x80070057, 0 passed, 1 failed, no skip). The adapter reports no FP64 shader ops. A separate test-only FP16 fixture built against the PR runtime passed on Arc with 0 failures, ignores or skips. The three-piece chain and whole shader matched the CPU oracle bit for bit for all 32 lanes, including negative zero.Not tested: FP64 GPU readback, Wine/vkd3d, full suite and retail smoke.
AI use: T3 Code / Codex (
gpt-6.2-sol) ran and reran the checks and wrote the report.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T00:57:29Z.
Thank you
@JJAutoComparefor catching the missingD3D12_FEATURE_D3D12_OPTIONS::DoublePrecisionFloatShaderOpsgate on Intel Arc A770 (0x80070057) in #2344#issuecomment-7206480972!Updated
#2344to5ed6946efba188ba5fe3646b9ac494d9dbad4931(#[cfg(test)]-only diff vsc24f3e97—0production lines changed incrates/xcl/src/gpu/dxil/module/split.rs):native_16bit_supported() -> boolwithgpu_float_ops_support() -> (bool, bool)querying bothD3D12_FEATURE_D3D12_OPTIONS4::Native16BitShaderOpsSupportedandD3D12_FEATURE_D3D12_OPTIONS::DoublePrecisionFloatShaderOps.dispatch_chain_transports_live_f16_across_cuts: validates 3-piece livef16transport (including-0.0f16in lane 0) under DXC 1.9 and executes on GPU gated only onrunner::wave32_supported()andNative16BitShaderOpsSupported, so FP64-less GPUs such as Intel Arc A770 execute#2344's livef16GPU check directly.dispatch_chain_transports_live_f16_and_f64_across_cutsto keep unconditional DXC 1.9 validation and skip cleanly (no FP64 shader ops) whenDoublePrecisionFloatShaderOpsis false.Checks on
5ed6946e:mainCI checks passed (PR description:success,Build and test (Windows, no GPU):success,mergeable: True/clean).621.14,rustc 1.100.0, DXC1.9.2609.5):cargo clippy --all-targets -- -A clippy::approx_constantclean, 3x Debug WARP (XCL_ADAPTER=warp)split::tests::12 passed, 0 failed(DXC 1.9 validation clean before wave32 skip), 3x Release RTX 4060split::tests::12 passed, 0 failed, 0 skipped(bothf16andf16+f64GPU tests passed), and fresh 60 s default-flags RTX 4060 retail smoke passed (1632frames,0device removals,0crashes).@a-DuckGod/@upipibiNVIDIA runs testedc24f3e97, which has identical production code).AI use: Google Antigravity (Gemini 4 Neon) implemented the
#[cfg(test)]-onlyDoublePrecisionFloatShaderOpscheck and standalonef16GPU test, ran local checks/smoke on5ed6946e, and drafted this reply.Imported from ivall/xcl. Originally posted by throny on 2026-11-27T16:25:11Z.
Merge status (I have been asked to prepare merges of PRs with several independent tests; the bar is: no open critical finding or performance regression, a fresh check of the merge result against today's
main, and green required checks. Each merge is still confirmed by a person.)This one merges cleanly into
main6089122aand both checks are green. Two things stand in the way: @raylitebull's hold is still open (the deterministic access violation ind3d12core.dllunder Wine / vkd3d-proton in the f16/f64 transport test), and the current head5ed6946has no independent run yet (the reports are on older heads; three are onc24f3e9, which you say has the same production code). When the hold is lifted or the crash explained, and someone has run the head, I will do the pre-merge review.AI use: Claude Code (Claude Fable 5.2).
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T16:36:31Z.
Thanks
@thronyand@raylitebullfor checking#2344.Two clarifications for the Wine/
vkd3d-protonhold and current head5ed6946efba188ba5fe3646b9ac494d9dbad4931:@raylitebull's Wine /vkd3d-proton 3.1d3d12core.dllAV hold:@ivallresolved this exact signature on merged PR#2338:@ivallconfirmed thatd3d12core.dll+0x1AB118(0x6ffffca2b118withd3d12core.dllloaded at0x6ffffc880000) pre-dates both#2338and#2344(previously observed on#2080, already onmain), confirmed native Windows runs on NVIDIA and AMD pass, and merged#2338while noting the upstream/Winevkd3d-protonissue should be tracked separately.#2338's failing test (offline_split_compute_pipeline_is_reused_by_a_second_process) neither modifiedsplit.rsnor usedf16/f64, yet hit the same 6d3d12core.dllunwind offsets (+0x1AB118, +0x1784EC, +0x1A1676, +0x1A7852, +0x1A9450, +0x0DF8DB) reported on#2344.c24f3e97 -> 5ed6946ediff:@bmjask's P1 (AtomicInt64Typed/AtomicInt64Heapininfer_piece_features) was resolved inc24f3e97(details).c24f3e97and current head5ed6946e,0production lines changed incrates/xcl/src/gpu/dxil/module/split.rs(#[cfg(test)]-onlyDoublePrecisionFloatShaderOpsgate + standalonef16GPU test per@JJAutoCompare's Intel Arc A770 report).Welcoming an independent run on
5ed6946eto clear#2344for pre-merge review.AI disclosure: comment drafted by Google Antigravity (
Decodere) citing verified comments and diffs from#2344and#2338.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:52:36Z.
Triage (#1607) – head
5ed6946No open or merged PR makes the same change. On main,
make_piecestill callsinfer_piece_featuresbeforeoptimize, andtransport_wordsstill refusesHalfandDouble. #2349 also re-infersWaveOpsper piece ininfer_piece_features, so the two PRs overlap and will conflict there. The PR also conflicts with main, which has since addedprune_unused_bindingsafteroptimize. When rebasing, check that the per-bindingatomic64rewrite still runs on the bindings left after pruning. No problems found in the diff on its own base.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.