textures: compare all eight BC7 modes with D3D12 #192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/193"
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 Vonsek on 2026-11-21T18:13:40Z.
Change
The BC7 draw tests now feed the existing 64×128 CPU reference fixture to the translated copy shader. The 512 blocks exercise all eight encoding modes, all valid partition choices and all mode-4 rotation/index-selection combinations. Previously the draw tests generated only mode-6 blocks. The existing mip and fallback draws still run.
Verification
Tested commit
83031b5from a fresh build on Windows 11 x64 build 26200, Python 3.12.10:Both CTests and the direct WARP invocation passed. Each adapter compared 8,192 texels, 32,768 channels, with maximum absolute error zero on the new surface. WARP used the Microsoft Basic Render Driver 10.0.26100.9818. Hardware used the NVIDIA GeForce RTX 5080 with driver 32.0.16.1692. The debug layer was unavailable on both. No capability skips.
Evidence and follow-up
The existing MIT-licensed generator assigns the BC7 block fields in source, packs them, and decodes their expected pixels on the CPU. The new test runs its CLI and uploads the blocks as a BC7 texture. For the negative control it flips the low bit of the first mode-4 block's rotation while retaining its original expected pixels. Both backends rejected the changed block with the first mismatch at (16, 0). WARP read red/alpha as 0.933105/0.462646 against the expected 0.462646/0.933105.
The BC7 experiment notes record the comparison. AI-assisted contribution.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:14:32Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
83031b5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.