textures: map descriptor pages in equal-size raw ranges #275
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!275
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/275/head"
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?
@Vonsek on GitHub · 2026-11-21 20:06 UTC · original
Vonsek:codex/texture-raw-page-map→main· +164 −9 · 3 files · 1 commits · merged 2026-11-21 20:26 UTCChange
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
@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 20:06 UTC · original · edited 2026-11-21 20:08 UTC
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.