Add experimental BCPack BC1 decoding and clarify pipeline activity #233

Closed
github-bot wants to merge 3 commits from gh-pr/233/head into gh-pr/233/base
Owner

@⁠Yeetbot159 on GitHub · 2026-11-23 21:37 UTC · original
Yeetbot159:yeetbot159-fix-game-rendering → main · +254 −15 · 7 files · 3 commits · closed without merging

Summary

  • Add an opt-in experimental BCPack BC1 decoder to DirectStorage, using the MIT-licensed bcpack-rs dependency pinned to a revision. Supports direct BC1 and zlib-then-BC1 requests to virtual or physical-page destinations.
  • Reject malformed streams, unknown lane 1 symbols, and unfitted endpoint entries without writing the destination. Document that fitted tables may still be inaccurate; BC2–BC7 and hardware swizzling remain unsupported. The separately published bcpack-decoder requires learned tables that are not distributed and does not reconstruct BC5–BC7 blocks.
  • Exclude dormant lazy pipelines from the window's compilation activity indicator.

This does not establish that the affected game renders or runs fully. Enable BC1 with XCL_DSTORAGE_BCPACK_BC1=1.

Validation

  • Synthetic DirectStorage queue tests cover direct and zlib-wrapped BC1, physical pages, malformed inputs, opt-in, unsupported formats, and unfitted table entries; a focused test checks rejection of unknown lane 1 symbols.
  • ./scripts/test.ps1 (before the lane 1 check)
  • cargo test -p xcl hle::dstorage::tests --lib
  • cargo build --release --workspace
  • Attempted a real-game run with BC1 enabled; stopped after roughly 13 seconds when private memory exceeded the 10 GiB safety limit. No BCPack request appeared in the captured log, so this did not validate the decoder against real textures or demonstrate gameplay.
**@⁠Yeetbot159** on GitHub · 2026-11-23 21:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/233) `Yeetbot159:yeetbot159-fix-game-rendering` → `main` · +254 −15 · 7 files · 3 commits · closed without merging ## Summary - Add an opt-in experimental BCPack BC1 decoder to DirectStorage, using the MIT-licensed `bcpack-rs` dependency pinned to a revision. Supports direct BC1 and zlib-then-BC1 requests to virtual or physical-page destinations. - Reject malformed streams, unknown lane 1 symbols, and unfitted endpoint entries without writing the destination. Document that fitted tables may still be inaccurate; BC2–BC7 and hardware swizzling remain unsupported. The separately published `bcpack-decoder` requires learned tables that are not distributed and does not reconstruct BC5–BC7 blocks. - Exclude dormant lazy pipelines from the window's compilation activity indicator. This does **not** establish that the affected game renders or runs fully. Enable BC1 with `XCL_DSTORAGE_BCPACK_BC1=1`. ## Validation - Synthetic DirectStorage queue tests cover direct and zlib-wrapped BC1, physical pages, malformed inputs, opt-in, unsupported formats, and unfitted table entries; a focused test checks rejection of unknown lane 1 symbols. - `./scripts/test.ps1` (before the lane 1 check) - `cargo test -p xcl hle::dstorage::tests --lib` - `cargo build --release --workspace` - Attempted a real-game run with BC1 enabled; stopped after roughly 13 seconds when private memory exceeded the 10 GiB safety limit. No BCPack request appeared in the captured log, so this did not validate the decoder against real textures or demonstrate gameplay.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:16:59 +00:00
github-bot closed this pull request 2026-11-26 04:16:59 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-24 10:39 UTC · original

#905 is merged (67a3735): DirectStorage now unpacks BCPack BC1, BC3, BC4, BC5, BC6H and BC7 with the format's exact tables, so this PR is superseded. Thanks for the early BC1 work.

**@⁠ivall** on GitHub · 2026-11-24 10:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/233#issuecomment-7129074206) #905 is merged (67a3735): DirectStorage now unpacks BCPack BC1, BC3, BC4, BC5, BC6H and BC7 with the format's exact tables, so this PR is superseded. Thanks for the early BC1 work.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.