Repository navigation
Conversation
Single-wave 2D/3D native wave32 compute groups (y * z > 1, total <= 32) no longer allocate @xcl_wt or emit the wave-index atomic and barriers, since tid equals WaveGetLaneIndex(). Multi-wave 2D/3D groups also skip the trailing barrier unless sharing xcl_lds[8191]. Extend direct DXIL compute dispatch splitting to all full-wave native wave32 threadgroup shapes without guest LDS (total >= 32, total % 32 == 0): size per-group scratch by total threads, preserve @xcl_wt only as the wave-ID prefix for multi-wave 2D/3D groups while gating the wave64 exchange state machine on xcl_xs, select FlattenedThreadIdInGroup() for multi-wave 1D groups, and recompute Feature::WaveOps per piece so pieces without wave ops validate. Part of xcl-dev#1269, xcl-dev#2088. Assisted-by: Antigravity (Gemini 4 Neon)
|
AMD native wave64 run (listed as untested), plus an RTX 3060, paired against Head
Per-test comparison: on both cards the only differences are the 2 new tests ( Not tested: the newly split |
|
Ran the split-compute tests at 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 1.9.2609.5, debug build. All ten tests pass, including What this adds: the author tested an Ada RTX 4070 SUPER with DXC 1.8.2502.11; this is a Blackwell wave32 part with DXC/DXIL 1.9.2609.5. No test report exists in the thread yet. Not tested: the whole workspace suite, the retail shader corpus validation, the cold PSO compile A/B, a paired 60 s smoke run, AMD/native wave64 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. |
|
Tested: current PR head merged onto current One red on this lane: the new group-shapes test crashes at the same
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. |
Extends direct DXIL compute dispatch splitting beyond
[32, 1, 1]to all full-wave native wave32 threadgroup shapes without guest LDS ([8, 4, 1],[4, 8, 1],[4, 4, 2],[8, 8, 1],[128, 1, 1], etc.), and removes redundant@xcl_wt/ atomic / barrier setup on single-wave 2D/3D compute groups. Part of #1269, #2088.What is in it
crates/xcl/src/gpu/dxil/lanes.rs: skip allocating@xcl_wtand emitting the wave-index atomic and barriers for single-wave 2D/3D native wave32 compute groups (y * z > 1 && total <= lanes, wheretid == WaveGetLaneIndex()); skip the trailing barrier on multi-wave 2D/3D groups unless sharingxcl_lds[8191].crates/xcl/src/gpu/dxil/kernel.rs: enablesplit_computefor all full-wave native wave32 groups without guest LDS (total >= 32 && total % 32 == 0), passingsplit_tidfor multi-wave 2D/3D wave-ID prefixes.crates/xcl/src/gpu/dxil/module/split.rs: size per-group scratch bytotal = threads[0] * threads[1] * threads[2], permit@xcl_wtonly as the wave-ID prefix while gating the wave64xcl_xsexchange state machine onhas_xs(so guest barriers / shared-memory ops in native wave32 cleanly decline splitting), selectFlattenedThreadIdInGroup()for multi-wave 1D groups, recomputeFeature::WaveOpsper piece so pieces without wave ops validate, and add unit +dxil.dllvalidation + GPU bit-exact parity tests (including slabbeddispatch_split_by) across[8, 4, 1],[4, 4, 2],[8, 8, 1], and[128, 1, 1].Tested
32.0.16.2140), AMD Ryzen 7 7800X3D,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.8.2502.11..\scripts\test.ps1(cargo test --workspace -- --test-threads=4, debug): 1274 passed, 0 failed, 46 ignored across 23 test binaries, including all 10gpu::dxil::module::splittests (bit-exact whole vs split and slabbed GPU parity across[8, 4, 1],[4, 4, 2],[8, 8, 1],[128, 1, 1]).SKIPPEDGPU tests on this adapter (27 total): 21no wave64, 3 per-lane form#1426refusals (V_CVT_F16_F32,V_MUL_F16,V_PK_MUL_F16), 1cannot disable the driver cache (Windows Developer Mode is required)(0x887A002D), 1no xgameruntime.dll, 1no heap windows.2,689CS shaders,dxil.dll): 96 newly split native wave32 shaders ([8, 4, 1]: 86,[4, 8, 1]: 6,[4, 4, 2]: 2,[8, 8, 1]: 1,[128, 1, 1]: 1) produced 287 validated pieces with 0 validation errors (existing 806[32, 1, 1]shaders / 7,906 pieces also validated with 0 errors).CreateComputePipelineStateA/B benchmark (main06c9f55vs this branch, release builds, 4 UMA windows, warm 2nd calls1.33–8.52 ms) across the top 8 newly split native wave32 shaders:[4, 4, 2](56ddc92162fbb20f, 8 pieces) 25.80 s → 1.86 s (13.9×);[8, 4, 1](de83041b451429d1/0526ab24d5e0993b/d53818c323d15ea1, 6 pieces each) 13.18–14.27 s → 1.16–1.32 s (9.8×–11.4×);[128, 1, 1](14009b6da78ed223, 5 pieces) 11.52 s → 1.57 s (7.4×).Regression run
Not tested
[8, 4, 1]/[4, 4, 2]/[8, 8, 1]/[128, 1, 1]shaders are registered at startup and dispatched lazily on world load, so their runtime execution was verified via the synthetic GPU parity tests and corpusdxil.dll+ NVIDIA PSO compile benchmarks rather than in-world dispatches).AI use