textures: map descriptor pages in equal-size raw ranges #271
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/275"
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-21T20:06:09Z.
Change
Add
--raw-page-map INDEXto the ETPF descriptor inventory. A descriptor gives a virtual 4 KiB page address. The indexed command reports the logical and physical byte offsets of that first page when the enclosing interval has raw codec and equal stored and logical sizes. It visits the counted boundary table and reads the indexed descriptor's page field. The grouped inventory remains the default command. Usage.Verification
Windows 11 x64, Python 3.12.10, commit
91dcc71on upstream496fc28.The prior CLI exited 2 on
--raw-page-map 0. The new regression and focused CTest both failed. With this change, the CLI reported logical offset 12,288 and file offset 8,704 for synthetic descriptor zero. All 4,096 bytes at the reported offset matched its independently generated second-page pattern. Starting at the raw interval's beginning instead changed 4,064 of those bytes. All eleven Python tests passed, and the focused CTest passed in 0.37 seconds.Evidence and follow-up
The original MIT-licensed fixture places two distinct pages in one raw interval between zlib- and BCPack-marked intervals. It exercises a page exactly on a boundary, two descriptors sharing a page, invalid indices, a page at the logical end, and short or padded raw intervals. The boundary table must strictly increase in both address spaces, including after the selected interval. A separate guarded fixture checks an interval split between two boundary-table reads, each limited to 4 KiB. The profile accepts up to 1 MiB of boundary records. Neither CLI mode reads texture payloads. Interpreting texel layout or runtime mip residency requires separate evidence.
AI-assisted contribution.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T20:06:21Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
91dcc71ℹ️ 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.