mirror of
https://github.com/vladtrc/iw4L
synced 2026-10-26 18:25:39 -04:00
d00bf2309a
An image variant's identity was one digest of the archive entries plus a bag of option bits, which mixed two unlike things. The map type chooses between the 2D and the cubemap decode, so it changes the bytes; the colour space and the sampler state change no byte of the payload, only the `Image` built around it. The identity now splits along that line: `payload` digests the resolved entries and the map type, `usage` carries the colour space and the sampler. Sharing still keys on the whole variant, because the wrapping lives inside the `Image` whose buffer would be shared. The merge census reads the split. A discarded claim whose winner held the same payload under a different wrapping was counted as overridden by another source, which reported nothing to share where the same archive entry had in fact been read into the same bytes twice. It is its own bucket now, `discarded_same_payload`, on the discard line and in the image demand report. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>