textures: verify the published mode-6 BCPack vector through GPU readback #447
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/453"
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 R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-22T04:30:47Z.
Fixes #442.
Motivation
Issue #442 supplies a 104-byte synthetic BCPack stream and the exact 16 bytes it should produce when decoded as BC7. This PR keeps timelery’s original input and expected block together and checks a second boundary: when that block is uploaded as a 4×4 BC7 texture, do the CPU decoder and the GPU agree on the color and alpha of every texel?
Coverage
40317204a56819be023456789abcdef0with an empty provisional set.The two endpoint colors are
(197, 71, 41, 25)and(144, 160, 180, 124). Clearing the high nibble of the final byte selects the first endpoint for the last texel. The CPU control checks that the first 60 bytes stay identical and the final four becomec5 47 29 19.Reproduction
After a Windows dev build:
The normal CPU and GPU checks use repository data. To repeat the compressed-byte comparison, point
BCPACK_REFERENCE_TOOLSat the localtoolsdirectory from Leonida revision03d1e118a676d73aba66b1793cf033f6ad23b2b2, then rerun the Python command. The check callsdecode_with_infowithallow_provisional=Falseand verifies both the block and the provisional set.Observed results
With the pinned Leonida decoder, nine Python tests passed. The existing optional
texture2ddecodercomparison was skipped because that package was absent. Bothbc7_draw_hardwareon GeForce RTX 4060 andbc7_draw_warppassed.This is one synthetic zero-history block. Reconstruction with preset history and comparison with Xbox hardware remain open.