textures: verify strict two-block BCPack decode through GPU readback #879
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/886"
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 stan495 on 2026-11-23T15:50:18Z.
Fixes #769.
5e1af169. Build the expected mode-6 blocks and the 8x4 RGBA reference independently from their endpoints and selectors.--check-bc7and compare the complete capture through the translated copy shader. Registerbc7_mode6_multiblock_warpandbc7_mode6_multiblock_hardwareseparately.(0, 0)after swapping blocks and at(7, 3)after changing the last selector. Truncations at 131, 66 and 32 bytes fail before upload. The first diagnostic at 131 bytes islane 10 (width 6, q 0) at input byte 131: input ran out.Verification
Tested
71ad6ef3a0658b9c73d68e6f47687c13feba9dbdon Windows 11 build 26200.9974. Both Microsoft Basic Render Driver (WARP 10.0.26100.9818) and Radeon RX 7900 XTX (32.0.32029.2010) matched all 32 pixels and 128 channels exactly. The D3D12 debug layer was enabled and reported zero errors or warnings on the positive draw.With the pinned Leonida checkout under
out/Leonidaand the repository Python environment configured:All six selected CTest entries passed, including the original single-block case. The optional
texture2ddecodercomparison insidebc7_block_referencewas skipped. Both documentation checks passed. WithBCPACK_REFERENCE_TOOLSunset, the two new tests report a skip.