upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authordcastell1 <dcastell1@users.noreply.github.com>2026-11-22 02:58:59 +0100
committerdcastell1 <dcastell1@users.noreply.github.com>2026-11-22 02:58:59 +0100
commit0a35e276d9d62a977a7efd2814e245e35b289aef (patch)
tree75efa6e44b6f209bbbdfd6141dba8498cb6cc849 /runtime/src/pe_loader.cpp
parentc432cdce127ed2d22a99aa6ef57d91db4a10b5bb (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/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions