Verify a multi-block mode-6 BCPack texture through BC7 GPU readback #769
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#769
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@R0Y00 on GitHub · 2026-11-23 01:55 UTC · original
Why this advances the port
#453 proves strict decode of a known mode-6 BCPack vector to one BC7 block and checks all 16 texels through the translated sampling path. #613 adds bounded multi-lane entropy decoding. A multi-block fixture can check the boundary between the decoded symbols, block reconstruction and the Windows texture upload, including the order of blocks in a row.
Scope
Use a generated or publicly licensed, revision-pinned source vector with two distinguishable mode-6 blocks in one stream. Give the two blocks different endpoint or selector patterns so a lane or block-position error is observable. Reuse the strict decode, the independent BC7 block reference and the existing
--check-bc7/translated copy-shader path. This is one bounded texture fixture. The broader archive-to-DDS workflow remains tracked in #458.Acceptance
To claim, comment with the proposed public vector or encoder source and expected block layout. Refs #453, #613 and #458.
@stan495 on GitHub · 2026-11-23 03:36 UTC · original
I'd like to take this issue.
Proposed Vector & Encoder Source
tests/bcpack_mode6_multiblock_vector.py(analogous to the single-block fixture in #453).b0befb4b88d6640354940117448ea19d52507584) andbcpack-rs(MIT/Apache-2.0, preserving third-party notices as intests/bcpack_symbols_check.py). The CI regression will consume the pinned byte vector directly so it requires no external encoder at test time.Expected Block Layout & Surface Geometry
(197, 71, 41, 25)and(144, 160, 180, 124)with the standard selector ramp.Verification & Negative Controls
(Block 0, Block 1)order.tools/bc7_blocks.py:decode(), arranged in row-major 8×4 raster order.offscreen_check.exeusing--check-bc7with the translated copy-shader. Compare every texel against the CPU reference on both WARP and physical hardware.bcpack_mode6_vector.pyandbc7_draw_check.pyremains untouched and passing.Environment
Refs #453, #613, #458.
@stan495 on GitHub · 2026-11-23 03:36 UTC · original
"I have verified the two-block mode-6 fixture with 8×4 surface readback on WARP and Intel Arc B390 GPU (driver 32.0.101.8509), along with block swap, selector mutation and truncation negative controls. Ready to open PR."
@rasptum on GitHub · 2026-11-23 15:26 UTC · original
@stan495 I noticed your
textures/mode6-multiblockbranch (5e1af169) has the two-block mode-6 work but no PR yet. Could you rebase it onto currentmainand open it? A separate CTest entry for the WARP readback (for examplebc7_mode6_multiblock_warp) would match how the other draw suites are registered.I was about to pick this up and stopped when I found the branch, so it's all yours. If you'd rather hand it off, say so and I'll carry it forward with your commit and credit.
@stan495 on GitHub · 2026-11-23 15:51 UTC · original
@rasptum Thanks for checking and for suggesting a separate WARP test. I rewrote the test on top of upstream
main, kept the original synthetic vector, and opened #886. The PR registersbc7_mode6_multiblock_warpandbc7_mode6_multiblock_hardwareseparately. Both passed locally. The strict decode output is what the GPU samples, and the block-swap, selector-change, and truncation controls all behaved as expected.