texture: add gfx10 tiling round-trip #1075
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1082"
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 lambirou on 2026-11-24T00:29:27Z.
Change
Add the missing forward GFX10 4 KiB tile and mip-tail packers to the existing BC7 tiling tools,
with a byte-exact synthetic round-trip.
tools/bc7_tiles.pygainstile_4k_s()andpack_4k_s_tail()as exact inverses of theexisting
linearize_4k_s()andlinearize_4k_s_tail().tests/gfx10_texture_roundtrip_check.pybuilds a BC7 64×64 texture with seven mips(64, 32, 16, 8, 4, 2, 1). Mip 0 is exactly one 4 KiB tile; mips 1–6 occupy one 4 KiB tail at
slots 32×32→0, 16×16→1, 8×8→2, 4×4→3, 2×2→6 and 1×1→7. Total: 8 KiB.
(mip, x, y)tag and0xffpadding. The expected tile isbuilt by an independent block-index oracle, not by the production packer.
linearizes each tail mip.
Verification
out\pe-env\Scripts\python.exe -B tests/gfx10_texture_roundtrip_check.pygfx10_texture_roundtrip all: PASS.pitch_blocks=21first differs exactly at
(0, 1);pitch_blocks < widthraisesValueError.at the first block; 4095- and 4097-byte tails raise.
docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 242 links..git diff --check origin/main...HEAD: clean.a GPU draw. This PR is offline tiling evidence only.
Evidence and follow-up
texture/gfx10-tiling, headb75ff64, based on the currentorigin/main.y0 y1 x0 x1 y2 x2 y3 x3; theindependent oracle and first-difference controls guard against a self-consistent wrong
swizzle.
docs/experiments.mddocuments the chain, the byte-exact comparison and the negativecontrols. The check is registered in the Linux Python job and AGENTS list.
this tree; no XCL code, table or output is used.
claim that a title texture uploads or renders.
Checklist