Shaders: read DXIL bitcode with abbreviations and BLOCKINFO #1943
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1953"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by sombraSoft on 2026-11-24T23:51:11Z.
Part of #1269.
xcl shaders --explain(later in this stack) reports the structure of the DXIL a console program becomes (blocks, phis, values), the numbers the thread uses to explain driver compile cost. XCL can write DXIL bitcode but not read the abbreviated bitcode DXC emits; this adds a reader.What is in it
Shaders: read DXIL bitcode with abbreviations and BLOCKINFO–crates/xcl/src/gpu/dxil/bitreader.rs: LLVM bitstream reader (fixed, VBR, char6, arrays, blobs, local andBLOCKINFOabbreviations). Iterative, and every length is checked against the bits left in its block, so malformed input is anErr, never a panic. No code from other DXIL readers (Kalmarv/dx is GPL-3.0 and was not used).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on852bb2d: 977 passed, 0 failed, 45 ignoredSKIPPED(all from existing tests): 18 × no wave64, 1 × no heap windows, 1 × cannot disable the driver cache (Developer Mode off), 3 × per-lane form refused (f16 / VOP3 modifiers)Regression run
main:
this PR (
852bb2d):Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:59:22Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Pull request closed