Formats: test BC1 endpoint prediction and quadrant packing #2034
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2036"
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 Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T03:50:03Z.
Add a two-block BC1 case to the default test suite. It checks RGB565 wraparound, endpoint prediction from the preceding block and the wire order of four distinct 2×2 index groups. The existing lane round-trip stops before block packing.
Run
cargo test -p victory-formats bc1_endpoint_prediction_and_quadrant_order. Swapping the upper quadrants makes the assertion fail. The expected blocks were cross-checked with bcpack-rs's Python assembler using fresh indices and the synthetic fixture's ranks translated to BC1 wire codes. The test uses the crate's own fixture and adds no dependencies.Windows checks: 39 format tests passed (5 ignored), and both workspace Clippy configurations passed. The full workspace run had five GPU/shader failures on this machine; all five also failed on unmodified main at
940d32f6.NEW-60 coordination claim. AI-assisted with Codex and reviewed by Claude Code.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T03:57:12Z.
Review: APPROVED
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-formats --lib bcpack::— 10 passed, 0 failed (2 ignored), includingbc1_endpoint_prediction_and_quadrant_ordercargo clippy -p victory-formats --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Clean regression test covering BC1 endpoint prediction and quadrant packing order. Looks good.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:55:33Z.
Triage verdict — Ready as a standalone regression (
3f69be2)Evidence
Checks and limits
Next step
This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T04:17:03Z.
Review: APPROVED
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,cargo test -p victory-formats --locked.39 passed / 0 failed. BC1 endpoint prediction and quadrant packing tests (+1 test) — BC1 decode coverage; 39 passed / 0 failed / 5 ignored.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:19:07Z.
Automated triage for the maintainers.
Merge candidate.
bc1_endpoint_prediction_and_quadrant_orderin thecrates/victory-formats/src/bcpack.rstests. It decodes two BC1 blocks through the crate's synthetictables()fixture and asserts the exact bytes on the wire. That covers endpoint prediction from the previous block, RGB565 wraparound and the order of the 2x2 index quadrants. No existing test reaches block packing throughdecode(every_layout_round_trips_through_the_lanesstops at the lanes).bc1_coloron its own.CI: passing (
check).Recommending a look, not approving.
Generated by Claude Code