Skip to content

docs(runtime): record the XG upload source pitches and mip order - #8557

Closed
jeremygold02 wants to merge 1 commit into
ProjectLeonida:mainfrom
jeremygold02:codex/xg-upload-contract
Closed

jeremygold02 wants to merge 1 commit into
ProjectLeonida:mainfrom
jeremygold02:codex/xg-upload-contract

Conversation

@jeremygold02

Copy link
Copy Markdown
Contributor

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-backed gta6rt.exe --dry-run mapped 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 in dfe4e4ad, all 14 calls returned E_NOTIMPL and left all three destinations untouched. The fixture's expected destination offsets describe the candidate's PC layout. Pinned test and CTest registration

Windows 11, MSVC 19.44, Intel Core Ultra 7 265K. The GeForce RTX 5070 (driver 621.01) was idle. The candidate's xg_linear_upload and main's xg_xs CTests passed. The source-only no-game-data check and git diff --check passed. 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.

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 Grimkaaah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants