Repository navigation
Conversation
…hing The pass that rewrites a two-pass ExecuteIndirect's arguments clamped each command's groups to the record cap, so a command whose groups D3D12 does not allow for DispatchMesh (a dimension over 65,535, or over 2^22 in all) still ran cap groups of the compute pass and cap x split mesh groups, over records nothing wrote. Such words are not a count the title can mean. Those commands now get no groups in either pass; legal counts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
AMD run (listed as untested), with an RTX 3060 in the same PC: the new GPU test passes on both. Tested: pass, head
The only result change on both cards is Not tested: a world run with AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
xcl-dev#2630, xcl-dev#1663, xcl-dev#2549, xcl-dev#2759, xcl-dev#3056 guard, uma_driver test lock) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
merge-check claim |
|
PortBridge confirmed the Exact comparisons and controls. If this workflow is useful, your team or agent can send the next public PR URL, target SHA, and behavior to preserve via PortBridge #98. No install is needed. |
|
merge-check |
Under two-pass mesh deferral (
XCL_TWO_PASS_BATCH=2), the pass that rewrites an ExecuteIndirect's arguments (SCALE_ARGS_HLSL) clamped every command's groups to the record cap. So a command whose groups D3D12 does not allow for DispatchMesh (a dimension over 65,535, or over 2^22 in all) still ran cap groups of the compute pass and cap × split mesh groups, over records nothing wrote. Such words are not a count the title can mean; those commands now run no groups in either pass. Legal counts run exactly as before.This changes one internal shader, not the translated-program cache, so it stands alone. It does not claim to be the cause of any hang: counts D3D12 forbids are simply not run.
What is in it
crates/xcl/src/hle/d3d12x/bind.rs:SCALE_ARGS_HLSLgives a command 0 groups when x, y or z > 65,535 or x·y·z > 2^22 (x·y fits 32 bits after the per-dimension test; z is tested against 2^22 / (x·y), so no product overflows).gpu_indirect_two_pass_counts_d3d12_forbids_are_not_run: 11 commands (cap 1000, split 2), each over-limit form runs 0 groups in both passes, the limits themselves (65,535 × 64, 2^22 exactly) and small counts run in full.gpu_indirect_two_pass_groups_go_in_x: its case of 70,000 per dimension is now a legal 60,000 × 60 × 1 (same expectations), since 70,000 is now rejected.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on 9cb1927: 1825 passed, 8 failed, 48 ignored, 26SKIPPEDlines (mostly "no wave64" on this adapter). The 8 failures are 6 tests (two fail twice), all of which also fail on nvidia-dev a5e2d85 on this machine (it has two test-title failures more), none in the code changed here:async_compute_pso_registers_real_pso_and_not_standin,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,gpu_parts_of_a_texture_go_up_and_the_rest_stays,pieces_hold_the_texels_of_their_levels,split_compute_prefers_the_offline_whole_pipeline,two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.cargo test -p xcl --lib gpu_indirect_two_pass: 4 passed, 0 failed (the new test and the three that were there).Regression run
150 s each, same title, same environment (
XCL_DIRECT_DXIL=all, heap windows, DRED on), on a copy of the same warmed translated-program cache. The head run ran beside acargo testof the workspace, and its startup took about 28 s longer, so it had fewer of the fast menu frames than a run of nvidia-dev a5e2d85 alone in the same setup (2,464 frames). It reaches the changed pass: its log counts more than 8,192 two-pass ExecuteIndirects (#8192at 198 s; the log names them at powers of two).main(b49be18):This PR's head (9cb1927):
Not tested
XCL_TWO_PASS_BATCH=2in a long world run (the smoke uses the default mode); the suite on d1be810 itself (the base run named above is the older nvidia-dev commit a5e2d85).AI use
🤖 Generated with Claude Code