Repository navigation
Conversation
…ags (xcl-dev#1894) Fixes xcl-dev#1894. Assisted-by: Antigravity (Gemini 4 Hydrogen)
|
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. |
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
32.0.15.9144), AMD Ryzen 5 7500F, Windows 11 25H2 (build26200),rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) and release (cargo build --release -p xcl+scripts/smoke.ps1), Windows SDKdxcompiler 1.9.2602.17/dxil 1.9.2602.17.cargo test -p xcl --lib gpu::dxil -- --test-threads=4: 128 passed, 0 failed, 3 ignored, 0 SKIPPED.cargo test -p xcl --lib -- --test-threads=4: 1102 passed, 2 failed (gpu::recomp::tests::gpu_clamp_and_omod_per_instruction, pre-existing HLSL/DXC pathv_pk_add_i16 clampfailure on this adapter;hle::d3d12x::real::readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state, passed 1/1 when rerun standalone), 26 ignored; 24 SKIPPED GPU tests (20no wave64, 3 refused#1426f16/f32 semantics on wave32 per-lane, 1cannot disable the driver cachewithout Windows Developer Mode).cargo test -p xcl --test '*' -- --test-threads=4: 56 passed, 0 failed, 20 ignored, 1 SKIPPED (heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows).Regression run
main:
PR:
Not tested
no wave64on RTX 3060).cargo test --workspace -- --test-threads=4as a single invocation (rancargo build --workspacepluscargo test -p xcl --libandcargo test -p xcl --test '*').Alloca align=0, deadf64extension ops, or Mesh shader stripped TGSM).AI use