Formats: test BC1 endpoint prediction and quadrant packing #2036
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2036
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2036/head"
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?
@Dathinel on GitHub · 2026-11-25 03:50 UTC · original
Dathinel:tests/bc1-synthetic-reference→main· +19 −0 · 1 files · 1 commits · merged 2026-11-25 21:53 UTCAdd 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.
@jeremygold02 on GitHub · 2026-11-25 03:55 UTC · original
Triage verdict — Ready as a standalone regression (
3f69be2)Evidence
Checks and limits
Next step
This verification was AI-assisted.
@Marvisak on GitHub · 2026-11-25 09:19 UTC · original
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