Repository navigation
Conversation
|
Two contributors checked independently and found that #1952 #2227 solves the same problem (for #1894) in a different way: #1607, group D73. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Ran the direct-DXIL 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/DXIL 1.9.2609.5, debug build. All five new tests for #1894 pass here: What this adds: the author's run was an Ampere RTX 3060 with Windows SDK DXC/DXIL 1.9.2602.17; this is a Blackwell wave32 part with DXC/DXIL 1.9.2609.5, so the DXIL validator sees a different driver and toolchain. Not tested: a paired 60 s smoke run, AMD and Intel GPUs, native wave64, release profile, retail title data. The four 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. |
…ags (xcl-dev#1894) Fixes xcl-dev#1894. Assisted-by: Antigravity (Gemini 4 Hydrogen)
fb9e401 to
f43fa7f
Compare
|
Independent desktop NVIDIA verification of PR #2255 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib compute_tg_size_wave_count_rounds_up_partial_waves -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.25s, 0.21s, 0.22s, 0 skipped; live RTX 4060 execution) |
cargo test --release -p xcl --lib dead_f64_inst_does_not_set_double_extensions -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.00s × 3, 0 skipped) |
cargo test --release -p xcl --lib alloca_align_zero_encodes_without_inalloca_and_validates -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.00s × 3, 0 skipped) |
cargo test --release -p xcl --lib alloca_non_power_of_two_align_panics -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.00s × 3, 0 skipped) |
cargo test --release -p xcl --lib dead_tgsm_global_does_not_inflate_psv0_size_and_validates -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.00s × 3, 0 skipped) |
cargo test --release -p xcl --lib heap_raw_buffer_omits_static_raw_flag_and_validates -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1341 filtered out × 3 (0.00s, 0.01s, 0.01s, 0 skipped) |
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) |
190 passed; 0 failed; 3 ignored; 1149 filtered out × 3 (4.34s, 4.65s, 4.28s; 1 self-skipped: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole — no wave64 on Wave32-only Ada; 189 executed) |
cargo build --release -p xcl |
Clean build (1m 26s, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):
xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB
PR #2255 (f43fa7fbc388d44a27294bdadc2dd36b20dc2e15):
xcl-smoke v1
commit: f43fa7fbc388d44a27294bdadc2dd36b20dc2e15
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1541 (PresentX 1541)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14006 MB
Runtime log observations (xcl.log)
9220log lines,0[ERROR]/ device-removal / panic lines (dxil_cache:460hits,0misses,0compilation failures;228background pipelines,0failures).- Final draw/memory telemetry in log:
19228 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14005 MB committed by the process; video memory 6116 MB local, 4683 MB non-local.
Limits of coverage
- Partial-wave
TG_SIZErounding,allocaalign=0bitcode encoding & non-power-of-two rejection, deadf64/TGSM shader-flag/PSV0 exclusion, and heap raw-buffer flag omission were directly verified via all 6 new tests (including live RTX 4060 execution anddxil.dllvalidation,3/3each) andgpu::dxil::(189executed,0failed,1Wave64-only test self-skipped on Wave32-only Ada). - The 60 s retail smoke confirms zero runtime regression on
title: 29640639(single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Fixes three remaining direct DXIL encoder/flag bugs from #1894 and adds synthetic DXIL-validator unit tests across all five items (note: item 1
TG_SIZEdiv_ceilwas already fixed onmainin5b31ca7, and item 5heap_raw_bufferkeepsFeature::RawAndStructuredBuffersomitted becausedxil.dll1.9.2602.17 rejects that flag on heap-only raw buffers withFlags must match usage: declared=1073741840, actual=1073741824, matchingdxc.exe).Fixes #1894
What is in it
crates/xcl/src/gpu/dxil/module.rs: scan liveself.blocks.iter().flatten()instead ofself.insts.iter()inuses_double_extensionsso dead or unreachablef64ops do not triggerFeature::DoubleExtensions.crates/xcl/src/gpu/dxil/module.rs: encodeOp::Allocaalignment0as0instead of33((1 << 5) | 1, which setinallocabit 5), and assertalign == 0 || align.is_power_of_two().crates/xcl/src/gpu/dxil/module.rs: shareused_globals_and_funcsbetweenwrite_bitcodeandglobal_bytes_layoutso stripped/unreferenced TGSM globals are excluded fromPSV0NumBytesGroupSharedMemory.crates/xcl/src/gpu/dxil/module.rs,crates/xcl/src/gpu/dxil/core_tests.rs,crates/xcl/src/gpu/dxil/graphics_tests.rs,crates/xcl/src/gpu/dxil/shader.rs: add synthetic unit anddxil.dllvalidation tests for all five Direct DXIL: TG_SIZE truncation, dead-inst double-extension scan, Alloca align=0 inalloca bit, stripped TGSM PSV0 size, and heap_raw_buffer feature flag #1894 items, and updategroupshared_bytes_follow_the_16bit_layoutso its test globals are referenced by live instructions.Tested
591.44), AMD Ryzen 5 7500F, Windows 11 Pro (build26200),rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo build/cargo test) and release (cargo build --release -p xcl+scripts/smoke.ps1), Windows SDKdxcompiler 1.9.2602.17/dxil 1.9.2602.17.cargo build --workspace: 0 new warnings (3 pre-existing warnings outsidegpu/dxil).cargo test -p xcl --lib gpu::dxil -- --test-threads=4 --skip fuzz_validate_and_gpu: 186 passed, 0 failed, 3 ignored; 1SKIPPED(gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64).XCL_ADAPTER=warp cargo test -p xcl --lib gpu::dxil -- --test-threads=4 --skip fuzz_validate_and_gpu: 186 passed, 0 failed, 3 ignored (GPU execution tests skipped on WARP).Regression run
main:
PR:
Not tested
cargo test --workspace -- --test-threads=4andfuzz_validate_and_gpuafter the rebase ontoupstream/main(b49be183).no wave64on RTX 3060).Alloca align=0, deadf64extension ops, or Mesh shader stripped TGSM).AI use
upstream/main(b49be183), ran the build, targeted DXIL tests, and smoke checks, and updated this PR description.