Repository navigation
Conversation
|
Tested: current PR head merged onto current One red on this lane: the new transports test crashes inside
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 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. |
|
Independent AMD Radeon (native wave64) verification of exact head Tested
Regression run ( PR: Not tested
AI use
|
|
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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test report on an NVIDIA card (Windows, retail title). Tested
Not tested
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. |
|
|
|
Independent test and smoke report for head Tested
Regression run (
PR 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. |
bmjask
left a comment
There was a problem hiding this comment.
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.
…16/f64 Part of xcl-dev#2088 Part of xcl-dev#1269 Follow-up to xcl-dev#2080 in compute dispatch splitting (`dxil/module/split.rs`): - Run `dst.m.optimize()` before `dst.infer_piece_features()` and emit via `dst.finish_optimized(threads, Some(32))` so dead instructions eliminated by piece optimization never trigger stale feature flags. - Scan only live instructions in `self.m.blocks` and accurately re-infer piece-local flags to match DXC 1.9 `DxilShaderFlags`: `ResourceHeapIndexing`, `SamplerHeapIndexing`, `WaveOps`, `TiledResources` (`checkAccessFullyMapped` and non-undef, non-zero-constant sample LOD clamps), `TypedUavLoadAdditionalFormats` (multi-component typed UAV `textureLoad` and `bufferLoad`), `NativeLowPrecision`, `DoubleExtensions` (`dx.op.tertiary.f64` `Fma` op 47 in addition to `infer_type_features`), and 64-bit atomics (`AtomicInt64GroupShared`, plus tracing live `atomicBinOp.i64` / `atomicCompareExchange.i64` handles through `annotateHandle`, `createHandleFromHeap`, `createHandleFromBinding`, `Phi`, and `Select` to restore `AtomicInt64Typed`, `AtomicInt64Heap`, and per-binding `atomic64` metadata). - Support `TypeDef::Half` (1 scratch word via `bitcast half <-> i16` plus `zext`/`trunc`) and `TypeDef::Double` (2 scratch words via `split_double` / `make_double`) in `transport_words`, `pack`, and `unpack`. - Add regression tests verifying per-piece feature pruning and 64-bit typed/heap atomic feature restoration under DXC 1.9, plus bit-for-bit GPU execution of live `f16` and `f64` values crossing cuts. Assisted-by: Google Antigravity (Gemini 4 Neon)
1f70e67 to
c24f3e9
Compare
|
Added |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Independent Windows 11 / NVIDIA test report on exact PR head Tested
Not tested
AI use
|
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_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 against the unsplit shader and CPU reference.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.).cargo test --release -p xcl --lib gpu::dxil::module::split::tests -- --test-threads=1 --nocaptureon NVIDIA GeForce RTX 4060 (driver621.14, DXC1.9.2609.5):11 passed, 0 failed, 0 ignored(0.76 s,0skipped).XCL_ADAPTER=warpcargo test --release -p xcl --lib gpu::dxil::module::split::tests -- --test-threads=1 --nocapture:11 passed, 0 failed, 0 ignored(0.04 s); all 4 pure-CPU/DXC 1.9 tests (dispatch_chain_prunes_piece_local_features_after_optimize,dispatch_chain_restores_atomic64_typed_and_heap_features,dispatch_chain_declares_typed_uav_loads_only_where_they_are,oversized_loop_occupies_one_piece_up_to_the_hard_ceiling) ran with0skips, anddispatch_chain_transports_live_f16_and_f64_across_cutsvalidated all 3 split pieces + whole shader with DXC 1.9 before skipping GPU execution (SKIPPED: no wave32 GPU).CreateComputePipelineStatetimings (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%).cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocaptureon RTX 4060, atoporigin/main6d12f58a):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
Base (
origin/main889ef3e8aa7f267323ab4879e735e65da6bcef10):PR head (
c24f3e9743cf43a3d61112da82201d06a05a691d):Not tested
Native16BitShaderOpsSupported.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, and running the verification suite and cold-PSO benchmarks.