Repository navigation
Conversation
…ags (xcl-dev#1894) Fixes xcl-dev#1894. Assisted-by: Antigravity (Gemini 4 Hydrogen)
Collaborator
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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