Repository navigation
Conversation
Keep the independent reconstruction and synthetic controls compiled only for tests. Accept the documented mode-6 configuration, zero predictors and references to preceding decoded mode-6 blocks; refuse unavailable preset history, other configurations and unsupported anchors without returning partial output. Carry the MIT fixture provenance and licence notice. This supplies a narrow block-rule prototype alongside the community entropy work in ivall#208 without activating a second DirectStorage implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds 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.