textures: check BC7 raster placement at an odd block width #393
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/399"
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 BZ110 on 2026-11-22T00:20:27Z.
Change
Check the complete RGBA raster from
fixture(columns=5, rows=7)against a digest computed by decoding the same 35 synthetic BC7 blocks as one 20×28 image withtexture2ddecoder==1.0.6. The new check runs in the existingbc7_block_referencetest and uses only the standard library. #348 proposes running the same script in Linux CI.Verification
On Apple Silicon with Python 3.12.15 at
091a0b4:The first run passed seven checks and skipped the optional decoder comparison. All eight BCPack checks passed. With the independent decoder installed, the last run passed all eight BC7 checks, and the separate whole-image comparison matched all 560 RGBA texels after converting BGRA to RGBA.
For a negative control, I temporarily replaced
index % columnswithindex & (columns - 1)in the raster placement calculation. The seven existing BC7 checks passed with this change. The new check alone failed, with a raster SHA-256 beginning47425de0instead of3aac1b30.AI-assisted. The commands were run and the results checked locally.