BCPack's reference oracle reads BC7 dictionary indices as f9de61c5 made the decoder read them #2419
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2419
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Alilou92 on GitHub · 2026-11-29 12:52 UTC · original
Alilou92:fix/bcpack-oracle-bc7-indices→main· +4 −2 · 1 files · 1 commits · closed without mergingWhat 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
f9de61c5made the decoder read them 7cd5c13ba9github-bot referenced this pull request2026-11-29 15:19:39 +00:00
@RochDawid on GitHub · 2026-12-01 01:32 UTC · original
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.@Alilou92 on GitHub · 2026-12-01 06:03 UTC · original
Closing: the oracle fix landed in main (
85dd7a7e).Pull request closed