Shaders: read DXIL bitcode with abbreviations and BLOCKINFO #1953
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1953
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@sombraSoft on GitHub · 2026-11-24 23:51 UTC · original
sombraSoft:shaders/dxil-bitreader→main· +439 −1 · 2 files · 1 commits · draftPart 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
@DavidM1911 on GitHub · 2026-11-25 02:59 UTC · original
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!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.