Commit Graph

10 Commits

Author SHA1 Message Date
717bd20df9 Merge pull request #2434 from z3r0rc/bcpack-bc7-rank152
BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21), partition still inferred
2026-11-29 00:47:17 +01:00
70792ddf1f BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21) with the partition still flagged inferred
The ANCHOR status rule rejects every mode-2 reading of every corpus chunk
whose lane-15 signature ranks at 152 (full 64-partition scan over the
retail ttdb_* pools), so its mode is 3, not the ordering's mode-2 guess.
Partition 21 is a colour-coherence top-1 among the status-clean mode-3
readings and stays a guess: 152 remains in BC7_CONFIG_INFERRED, so strict
decoding still refuses chunks that reference it. The override duplicates
rank 119's (3, 21) and drops (2, 38): if 119 is ever confirmed at (3, 21)
by its own signature, this entry or the mode-2 head order is wrong.
Measured effect in a retail story-load run: with a fitted profile, the
last standing dstorage_failure 0x89240030 refusal (a BC6H entry that the
profile gap alone explained) cleared once the sidecar carried corrected
rank configs; BC7 chunks using rank 152 stopped refusing as well.

Tests: the config bijection assertion becomes a structure assertion plus
test_bc7_rank152_override_deviation, pinning the duplicate, the dropped
entry, and that 152 stays inferred. docs/textures.md wording updated.
2026-11-26 23:42:01 -05:00
74bd28ac71 tools/bcpack_tables_bptc.py: validate strict integer fields, dict keys, and bit/class bounds 2026-11-26 20:45:03 +08:00
81e34a5695 tools: harden bcpack_tables_bptc.py section validation, bounds and file cache 2026-11-25 20:25:15 +08:00
273b3bdf9d [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:42:12 -06:00
d239fd8556 tools: accept UTF-8 BOM JSON inputs in ten utilities (#6779)
Squash-merged after diff review of PR #6779 - tools: fix BOM-prefixed JSON inputs in 10 utilities (batch 01)
2026-11-23 09:56:38 -06:00
9e6fe1e74e fix(bcpack): preserve BC6H history confirmation depths 2026-11-22 19:10:20 +00:00
4695bb398e tools/bcpack: add pure-stdlib local history calibrator (bcpack_history_calib.py)
Add `tools/bcpack_history_calib.py` to derive external `--history <path>` JSON
tables (`bc1.json`..`bc7.json` or combined JSON) locally from a player's own
texture pools or exact reference block/DDS pairs using only the Python
standard library (`python -I`):

- Exact reference inversion (`--ref-dds POOL:INDEX=REF.dds`, `--ref-pairs`):
  algebraically inverts direct built-in history references (`d > i` in blocks
  0..255) across BC1/BC3/BC4/BC5/BC6H/BC7 into confirmed strict-mode entries.
- Read-only TTPF pool self-calibration (`inputs ...`): uses a prefix rANS lane
  decoder (`decode_lanes_prefix`) together with exact BC6H/BC7 anchor MSB and
  BC7 Mode-1 shared p-bit parity constraints, intra-block index smoothness
  voting, and sibling raw/zlib mip endpoint fitting to derive provisional
  tables usable with `--history <path> --allow-provisional`.
- Extend `tools/bcpack_tables_bptc.py`, `tools/bcpack.py`, and
  `tools/ttpf_mips.py` so `--history` also accepts optional BC1-BC5 JSON
  tables (`confirmed`, `provisional`, optional `replace`) alongside BC6H/BC7.
- Add synthetic unit tests in `tests/test_bcpack_history_calib.py` and document
  the schemas and CLI workflow in `docs/textures.md`.
2026-11-22 07:21:13 -08:00
fa866b43f8 Decode standard BC7 DDS textures in offline world previews 2026-11-21 21:03:55 -07:00
03d1e118a6 bcpack: add BC6H and BC7 decoders with external runtime history loader (ASSET-5) 2026-11-21 18:27:01 -08:00