diff options
| author | dcastell1 <dcastell1@users.noreply.github.com> | 2026-11-22 02:58:59 +0100 |
|---|---|---|
| committer | dcastell1 <dcastell1@users.noreply.github.com> | 2026-11-22 02:58:59 +0100 |
| commit | 0a35e276d9d62a977a7efd2814e245e35b289aef (patch) | |
| tree | 75efa6e44b6f209bbbdfd6141dba8498cb6cc849 /runtime/src/root_signature.cpp | |
| parent | c432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff) | |
fix(tools): derive the 64 KB swizzle block extent from the element count
The solo-bit heuristic only works for the S modes; in the XOR modes the
high x/y bits are almost always XORed, so the block came out too small
(72/75 RDNA2 R_X entries). Use the same element-count formula as
tex_export.detile_offsets, which matches every 64 KB entry.
Also treat 1/2/4 bpe as one element per pixel in the CLI grid, and write
4 bpe guesses as uncompressed RGBA8 instead of BC7.
Verified with synthetic equations for 1/2/4/8/16 bpe (256x256, 256x128,
128x128, 128x64, 64x64) and the existing parser tests: 3/3 pass.
Diffstat (limited to 'runtime/src/root_signature.cpp')
0 files changed, 0 insertions, 0 deletions