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

Closed
Alilou92 wants to merge 1 commit from upstream-pr/2419 into main
Alilou92 commented 2026-11-29 12:52:49 +00:00 (Migrated from github.com)

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 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
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550890045 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419). Originally posted by [Alilou92](https://github.com/Alilou92) on 2026-11-29T12:52:49Z. --- ## 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
RochDawid commented 2026-12-01 01:32:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RochDawid on 2026-12-01T01:32:32Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7297622433 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419#issuecomment-7297622433). Originally posted by [RochDawid](https://github.com/RochDawid) on 2026-12-01T01:32:32Z. --- `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.
Alilou92 commented 2026-12-01 06:03:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Alilou92 on 2026-12-01T06:03:11Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7302424009 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2419#issuecomment-7302424009). Originally posted by [Alilou92](https://github.com/Alilou92) on 2026-12-01T06:03:11Z. --- Closing: the oracle fix landed in main (85dd7a7e).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

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