BCPack's reference oracle reads BC7 dictionary indices as f9de61c5 made the decoder read them #2419

Closed
github-bot wants to merge 1 commit from github-bot/gh-2419 into main AGit
Owner

@⁠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 merging

What it changes

Since the wave-3 merge (c777d871), three BCPack tests fail on main:
oracle_parity_all_bc7_modes_rotations_subsets, oracle_parity_errors_and_noise
and 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 table
    reader that skips the widths word and reads 31 BC7 index slots;
  • f9de61c5 changed 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 RefTables read the BC7 dictionary
indices as the decoder now does. Test-only: no runtime code changes.

How it was tested

  • GPU and profile: not applicable (test-only change in victory-formats, no game run)
  • Before: cargo test -p victory-formats: 80 passed, 3 failed
  • After: cargo test -p victory-formats: 83 passed, 0 failed
  • cargo test passed for the crates it touches: yes
  • Also checked: b075af8d and f9de61c5 pass separately, c777d871 (their merge) fails

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none
**@⁠Alilou92** on GitHub · 2026-11-29 12:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419) `Alilou92:fix/bcpack-oracle-bc7-indices` → `main` · +4 −2 · 1 files · 1 commits · closed without merging ## What it changes Since the wave-3 merge (c777d871), three BCPack tests fail on `main`: `oracle_parity_all_bc7_modes_rotations_subsets`, `oracle_parity_errors_and_noise` and `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 table reader that skips the widths word and reads 31 BC7 index slots; - f9de61c5 changed 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 `RefTables` read the BC7 dictionary indices as the decoder now does. Test-only: no runtime code changes. ## How it was tested - GPU and profile: not applicable (test-only change in `victory-formats`, no game run) - Before: `cargo test -p victory-formats`: 80 passed, 3 failed - After: `cargo test -p victory-formats`: 83 passed, 0 failed - `cargo test` passed for the crates it touches: yes - Also checked: b075af8d and f9de61c5 pass separately, c777d871 (their merge) fails ## Checked for overlap - [ ] I searched the open pull requests for the same issue and for the files this touches. Related: none
Since the wave-3 merge (c777d871), the reference oracle still skipped the
widths word and read 31 BC7 index slots, while the decoder reads all 32
(f9de61c5, as BCPack.dll does). Three oracle parity tests failed on main.
Test-only change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:54:58 +00:00
Author
Owner

@⁠RochDawid on GitHub · 2026-12-01 01:32 UTC · original

main already has this change. be0ba3b7 ("bcpack: the BC7 oracle reads the dictionary as Microsoft's decoder does") makes the same edit to RefTables::parse: no skipped word after the widths, and all 32 index slots read. It reached main with the merge of #2565 (ac6b767d, 2026-11-29) and is in every release since v2026.11.30.01.

On main at f5c3d243, cargo test --locked -p victory-formats --lib oracle_parity gives 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 main and has nothing left to add, so it can probably be closed. #2236, #2419 and #3263 all make this same change.

**@⁠RochDawid** on GitHub · 2026-12-01 01:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419#issuecomment-7297622433) `main` already has this change. be0ba3b7 ("bcpack: the BC7 oracle reads the dictionary as Microsoft's decoder does") makes the same edit to `RefTables::parse`: no skipped word after the widths, and all 32 index slots read. It reached `main` with the merge of #2565 (ac6b767d, 2026-11-29) and is in every release since v2026.11.30.01. On `main` at f5c3d243, `cargo test --locked -p victory-formats --lib oracle_parity` gives 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 `main` and has nothing left to add, so it can probably be closed. #2236, #2419 and #3263 all make this same change.
Author
Owner

@⁠Alilou92 on GitHub · 2026-12-01 06:03 UTC · original

Closing: the oracle fix landed in main (85dd7a7e).

**@⁠Alilou92** on GitHub · 2026-12-01 06:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419#issuecomment-7302424009) Closing: the oracle fix landed in main (85dd7a7e).
github-bot closed this pull request 2026-12-01 06:09:25 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2419
No description provided.