Skip to content

Add experimental BCPack BC1 decoding and clarify pipeline activity - #233

Closed
Yeetbot159 wants to merge 3 commits into
xcl-dev:mainfrom
Yeetbot159:yeetbot159-fix-game-rendering
Closed

Yeetbot159 wants to merge 3 commits into
xcl-dev:mainfrom
Yeetbot159:yeetbot159-fix-game-rendering

Conversation

@Yeetbot159

@Yeetbot159 Yeetbot159 commented Nov 23, 2026 •

Copy link
Copy Markdown

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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Yeetbot159 Yeetbot159 changed the title Report only active pipeline builds in the window title Add experimental BCPack BC1 decoding and clarify pipeline activity Nov 23, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

#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 ivall closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants