upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/coder.md
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-29 05:46:33 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-29 05:46:33 -0500
commitb589e0fe0b627cb39402c30d60a7b17da66e8023 (patch)
treef64cf5171ad3c9d6e51bda77796e2b21f31318ff /docs/coder.md
parent7b907de52311e08374a006e00402995f7a671ca8 (diff)
BC7 textures from DirectStorage decoded as Microsoft's decoder does: 73 % of their blocks were wrong
The BC7 dictionary's entries are read with all 32 index slots in order: in every entry but the first, the word after the index widths (the widths again) is pixel 0's index. The decoder skipped that word, so every stored index sat one pixel early, and a block predicted from a wrong entry was wrong, as was every block predicted from it in turn. Each reading passed its own unit test, so it was settled against Microsoft's decoder (the GDK's BCPack.dll, used on this PC only, never in the repository): the title's own streams, saved as DirectStorage hands them over with the new LEONIDA_BCPACK_DUMP=<folder> (local only), were unpacked by the DLL and by this decoder. Of 381 BC7 streams (2,866,176 blocks), 2,101,646 blocks were unlike the DLL's before and none now. BC1 (400 streams), BC3, BC5 (120) and BC6 were alike already. (Blocks packed by the DLL's own compressor never use the dictionary, which only blocks before a stream's 255th can reach.) After trustno1-coder/VIctory-NVIDIA f9de61c5 (GPL-3.0). AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64: leonida-formats unit tests, and the comparison above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/coder.md')
0 files changed, 0 insertions, 0 deletions