DirectStorage: prototype documented BC7 mode-6 block reconstruction #438
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!438
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/438/head"
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?
@Prime1997 on GitHub · 2026-11-24 00:16 UTC · original
Prime1997:contrib/bc7-reconstruction→main· +230 −0 · 3 files · 1 commits · closed without mergingAdds an independently implemented, CPU-only reference for one documented BC7 mode-6 block configuration. The input is sixteen decoded symbol lanes. This gives #208 a tested reconstruction rule for a subset of its output. #233 and #273 handle BC1, and #340 covers BC3/4/5.
What is in it
crates/xcl/src/hle/bcpack_bc7.rsreconstructs the documented unrotated mode-6 configuration from decoded lanes, including zero and available same-mode history. Four synthetic tests cover fixed one- and two-block outputs and rejection paths.crates/xcl/src/hle/mod.rsincludes the reference undercfg(test).THIRD_PARTY.mdand the module identify the MIT-licensed fixture sources. DirectStorage integration and broader mode support remain separate.Tested
bf0ad870d921251b614c23e8afdf5b3bb8cd550ewithcargo build --locked --workspaceandcargo test --workspace --no-fail-fast -- --test-threads=4(debug). 680 passed, 0 failed, 41 ignored. 2 GPU tests reported a skip.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64a6f5f7ain isolation on this GPU.cargo test --locked -p xcl --lib bcpack_bc7 -- --test-threads=1 --nocapture. Built the PR withcargo build --locked --release --workspaceand main withcargo build --locked --release -p xcl.Regression run
Both release builds ran the same title offline from a fresh title-data directory. The retail runs check startup. The synthetic controls exercise the new code.
Main
PR
Not tested
Retail BC7 reconstruction, initial preset history, other configurations, comparison with console hardware, and AMD or Intel GPUs. Optional sample-data tests ran without external sample files.
AI use
OpenAI Codex (GPT-6) assisted with the independent reconstruction, tests, provenance and overlap checks, and validation.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
@Abuudiii on GitHub · 2026-11-24 06:58 UTC · original
Independent synthetic mode-6 check on exact head
bf0ad870d921251b614c23e8afdf5b3bb8cd550e(Arch Linux, GE-Proton 11-7, Rust 1.99.1 Windows GNU debug build).Tested: Built the library unit-test executable with
cargo test --locked --offline -p xcl --lib --target x86_64-pc-windows-gnu --no-run, then ran filterbcpack_bc7with--test-threads=1 --nocapture: 4 passed, 0 failed, 0 ignored. This exercised byte-exact one- and two-block assembly, same-stream prediction, and the existing refusal checks on synthetic decoded lanes.Not tested: rANS input, preset dictionary prediction, DirectStorage wiring, native Windows, or retail. No game assets or GPU were needed.
AI use: omp (GPT-6.2 Sol) ran the check and drafted this report.
@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 – BC7 (all its modes) is decoded there.Pull request closed