BCPack's reference oracle reads BC7 dictionary indices as f9de61c5 made the decoder read them #2419
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2419"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Alilou92 on 2026-11-29T12:52:49Z.
What it changes
Since the wave-3 merge (
c777d871), three BCPack tests fail onmain:oracle_parity_all_bc7_modes_rotations_subsets,oracle_parity_errors_and_noiseand
oracle_parity_all_formats_and_strip_boundaries.Both parents pass on their own:
b075af8d(mint17) added the reference oracle, with its own copy of the tablereader that skips the widths word and reads 31 BC7 index slots;
f9de61c5changed the decoder to read all 32 slots, as BCPack.dll does.The merge kept the old reader in the oracle, so oracle and decoder no longer read
the same dictionary. This makes the oracle's
RefTablesread the BC7 dictionaryindices as the decoder now does. Test-only: no runtime code changes.
How it was tested
victory-formats, no game run)cargo test -p victory-formats: 80 passed, 3 failedcargo test -p victory-formats: 83 passed, 0 failedcargo testpassed for the crates it touches: yesb075af8dandf9de61c5pass separately,c777d871(their merge) failsChecked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RochDawid on 2026-12-01T01:32:32Z.
mainalready has this change.be0ba3b7("bcpack: the BC7 oracle reads the dictionary as Microsoft's decoder does") makes the same edit toRefTables::parse: no skipped word after the widths, and all 32 index slots read. It reachedmainwith the merge of #2565 (ac6b767d, 2026-11-29) and is in every release since v2026.11.30.01.On
mainatf5c3d243,cargo test --locked -p victory-formats --lib oracle_paritygives 4 passed, 0 failed (oracle_parity_all_bc7_modes_rotations_subsets,oracle_parity_errors_and_noise,oracle_parity_all_formats_and_strip_boundaries,oracle_parity_all_bc6_modes). I ran it on a macOS host with Rust 1.98.1, not on Windows.This pull request now conflicts with
mainand has nothing left to add, so it can probably be closed. #2236, #2419 and #3263 all make this same change.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Alilou92 on 2026-12-01T06:03:11Z.
Closing: the oracle fix landed in main (
85dd7a7e).Pull request closed