Draw BC7 textures with a recompiled copy shader and validate mip selection #14

Merged
R0Y00 merged 1 commit from upstream-pr/14 into main 2026-11-21 08:17:55 +00:00
R0Y00 commented 2026-11-21 08:15:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T08:15:59Z.


Adds a converter for the published GFX10 4 KiB standard non-XOR layout with 16-byte blocks. The desktop checker uploads BC7 block rows with D3D12 copy footprints, runs the translated copy shader, compares all float channels to a CPU reference, and optionally captures the verified GPU pixels. The two-level test lets implicit derivatives select mip 1 at half resolution.

An original mode-6 fixture exercises tile boundaries, row padding, per-texel indices, and a negative control that moves the lower level's blocks. Reproduce with ctest --preset dev -R '^bc7_draw_' -V. Full local CTest had 49 passes and two capability skips. Both WARP and hardware passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6526444552 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/14). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T08:15:59Z. --- Adds a converter for the published GFX10 4 KiB standard non-XOR layout with 16-byte blocks. The desktop checker uploads BC7 block rows with D3D12 copy footprints, runs the translated copy shader, compares all float channels to a CPU reference, and optionally captures the verified GPU pixels. The two-level test lets implicit derivatives select mip 1 at half resolution. An original mode-6 fixture exercises tile boundaries, row padding, per-texel indices, and a negative control that moves the lower level's blocks. Reproduce with `ctest --preset dev -R '^bc7_draw_' -V`. Full local CTest had 49 passes and two capability skips. Both WARP and hardware passed.
upstream-sync closed this pull request 2026-11-24 06:40:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!14
No description provided.