Repository navigation
docs(runtime): record the XG upload source pitches and mip order - #8557
Closed
jeremygold02 wants to merge 1 commit into
Closed
jeremygold02 wants to merge 1 commit into
jeremygold02 wants to merge 1 commit into
Conversation
Describe the source arguments measured at texture-computer slot 8 and the import counts from a pinned package dry run. Refs: ProjectLeonida#8344, ProjectLeonida#6891
Grimkaaah
reviewed
Nov 23, 2026
Grimkaaah
left a comment
Contributor
There was a problem hiding this comment.
Independent Linux docs review (623ff7b4)
What changed: docs/runtime_imports.md records XG upload source pitches and mip order.
Checked:
- Diff is docs-only (25 lines in one file); no code path to run.
Looks fine; no game files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Measured caller behavior
The 1.0.2.1 texture upload routine submits every mip of one array slice before moving to the next. Its slot-8 arguments include a compact source pointer, row pitch and slice pitch. The documentation gives the RGBA8 and BC1 cases, the shrinking depth of a volume mip, and a worked odd-sized BC1 example. The source-side rules come from the upload caller and its size and pointer helpers, read statically. Coordination claim
The import table now dates its earlier counts. On CMake main
dfe4e4ad, a package-backedgta6rt.exe --dry-runmapped five modules, resolved both XG exports through the shim, and listed 20 unimplemented imports. The dry run executes no title code.Verification
An original CPU fixture resolves both XG exports through the shim registry and calls texture-computer slot 8. On the linear candidate at
c77a4fa2, its six RGBA8 array calls, six BC1 array calls and two RGBA8 volume calls reproduced all 196,608 destination bytes including untouched padding. Swapping the mip-zero sources between array slices made the comparison fail even though all six calls returned success. Against the fallback indfe4e4ad, all 14 calls returnedE_NOTIMPLand left all three destinations untouched. The fixture's expected destination offsets describe the candidate's PC layout. Pinned test and CTest registrationWindows 11, MSVC 19.44, Intel Core Ultra 7 265K. The GeForce RTX 5070 (driver 621.01) was idle. The candidate's
xg_linear_uploadand main'sxg_xsCTests passed. The source-only no-game-data check andgit diff --checkpassed. GPU sampling and visible title rendering remain unmeasured here.Depends on: #6891 (merged). The fixture was independently checked against the implementation in #8134.
AI-assisted by GPT-6.2 Astra.