textures: report all descriptor matches for a texture key #294
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/298"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:14:12Z.
Change
Add
--lookup-key KEYtotools/texture_descriptors.py. It returns each matching input path and zero-based descriptor index for an unsigned 64-bit key. Two descriptors can share a key across archives. Callers can inspect both candidates or distinguish an absent key from a unique match. Passing the same file twice, including by hard link, produces an error. Inventory and page mapping continue to accept one archive. Experiment and command · README experiment.Verification
Windows x64, Python 3.12.10, commit
661a539c100bf4d22ed3b0067f377b5064ce319don upstreamb53bfb0b6489398aba7a81f3761e2d56aaa00ccf.Before implementation the new CLI control exited 2 with
unrecognized arguments: --lookup-keyand the focused CTest failed. The change passed all 17 direct Python tests and that CTest. Two source-built same-basename archives give three exact matches in a specified input order, including two ordinals in one store. Changing either half of the test key selects the expected separate record. The maximum uint64 key also resolves, and the absent key returns an empty list.Evidence and follow-up
The MIT-licensed fixtures build all bytes from Python source. The profile accepts ETPF version 0x27a and derives the key array from the descriptor count. A guarded input with 65,536 records permits reads only in the headers and key array and only up to 4 KiB per call. Oversized descriptor counts, unsupported versions and a key table past the first range are rejected. The output identifies candidate descriptors and leaves the choice between them to the caller. The reader shares header validation with #266 and operates independently of the raw-page mapping change in #290. Parallel key table.
AI-assisted contribution.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T21:28:36Z.
At
99193fd, the merge conflicts are inREADME.md. Please keep both the landed raw-padding capability and the new multi-match lookup documented.Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:30:55Z.
Merged upstream in
661a539c100bf4d22ed3b0067f377b5064ce319d. The README keeps the upstream shader selection instructions and links the texture experiment. That section documents the padded raw-page map from #290 and the multi-store texture-key lookup together. Both commandsAll 17 tests passed with
python -B tests/resource_ranges_check.py -vand withctest --preset dev --no-tests=error -R '^resource_range_controls$' -Vafter a fresh configure. Those tests cover declared zero padding and exact key matches across same-named archives in different directories.Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:31:58Z.
@codex review the merged head
661a539c10.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T21:35:01Z.
Codex Review: Didn't find any major issues. Keep them coming!
Reviewed commit:
661a539c10ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T21:14:21Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
661a539ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.