docs(d3d12_vulkan): the title already supports the linear tile path (XG-SWIZZLE-LINEAR-PATH) #1018
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1018"
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 ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T16:58:59Z.
Item: XG-SWIZZLE-LINEAR-PATH (claimed in #14).
What
Adds a short, anchored note to
docs/d3d12_vulkan.md(end of section 4.2, before 4.3) recording that the title already has a linear tile path, measured statically from the shipped executable:XGSuggestSwizzleModeis thexg_xs.dllIAT thunk at0x145F3FF50. Its two call sites (0x140C4B030at0x140C4B3CE,0x144ECC940at0x144ECCCA2) load the description's tile-class byte[desc+8], compare it with0xFF, and only then call withRDX = 0andR8 = desc+0x2C, i.e.XGSuggestSwizzleMode(desc, NULL, &desc->tileMode).+0x28first, so the mode field is 0 unless a class is known; known classes write0x100 | class(with0x102/0x10Aspecial cases) and never 0.CMP x,0x100/BT x,9and take the linear arithmetic on 0:0x14555E9E0(0x14555EA2C→0x14555EA45),0x14193DE10(0x14193DE73→0x14193DE9E, which calls0x1416F7100at0x14193DF4B),0x1404F4210(0x1404F448A→0x1404F44E4), and0x145121690's non-0x980path.S_OK; the computer can be an identity that passes offsets through and reports the linear row span), the0x145121980cache key, and what remains unmeasured (whether0x102/0x10Aare meant to be tiled).Why
The current
xg_xsshim returnsE_NOTIMPLand models no layout, so twoXGCreateTextureComputercallers fail cleanly and textures are never laid out. The title's own linear path means a shim does not need a tiled layout at all to make progress: returning 0 is a mode the game already understands, and the texture computer only has to be an identity.Tested
python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md→ exit 0.python -m compileall -q make_game.py tools tests→ exit 0.GPUs tested: n/a
AI-assisted: yes (OpenCode)
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T14:28:33Z.
Reviewed
cad4ceecf: docs-only section; ran the docs tests in the sandbox on both trees (links, list items,repeated lines, table ids/rows, repo paths — all OK) and
check_no_game_data.py— clean. No reproducedfinding. Two notes: "a shim writes 0" is an alternative to the shipped
XGSuggestSwizzleMode, which writes0x100|mode— the section should say the shipped behaviour differs; and "linear everywhere" is measured atfour consumers while the layout word's recorded meaning is "pick one" (the section concedes the nuance).
AI-assisted review.
Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:08:08Z.
#1018 | head
cad4ceecfa(merged cleanly onto origin/main829530dbd0) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesIndependent Verification (Windows 11)
+43/-0indocs/d3d12_vulkan.md) adding the<a id="xg-swizzle-linear-path"></a>subsection (XG-SWIZZLE-LINEAR-PATH) under §4.2. Contains only static call-site offsets, register/argument shapes, and consumer branch behavior;python -I scripts/check_no_game_data.py docs/d3d12_vulkan.mdpassed (rc=0).#1018 + origin/main(829530dbd0):origin/main(829530dbd0), and clean combined 3-way merge alongside open PR#1125(docs/d3d12_vulkan.md).tests/test_docs_links.pyandtests/test_docs_cli_flags.pychecks ondocs/d3d12_vulkan.md:0broken links/anchors (including[textures.md](textures.md)and<a id="xg-swizzle-linear-path"></a>) and0unknown CLI flags.python -I tests/test_docs_table_rows.py(2/2),tests/test_docs_repo_paths.py(5/5, confirmingruntime/src/gfx10_tiling.hexists),tests/test_docs_encoding.py(1/1),tests/test_docs_list_items.py(3/3), andtests/test_docs_repeated_lines.py(3/3) all passed (OK).runtime/shims/xg_xs.cppon currentmain:XGSuggestSwizzleMode(desc, 0, &desc->tileMode)across 2 call sites writing0x100 | modewhen known, andXGCreateTextureComputercallers invoking computer vtable slots2,8(+0x40), and10— matches the call-site summary at the top ofruntime/shims/xg_xs.cpp.origin/main,runtime/shims/xg_xs.cppnow implements two-model swizzled layout selection (XGSuggestSwizzleModewriteskSwizzled | select_mode(d)andXGCreateTextureComputerbacks slots0, 1, 2, 6, 8, 9, 10viaxg_xs_layout.handruntime/src/console_texture_layout.h), so the "What a shim can do with that" paragraph documents a minimal linear fallback option rather than whatxg_xs.cppcurrently returns by default.Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T08:59:01Z.
Validation run of this pull request.
cad4ceecfa. main:54b2a81e95. Merged cleanly (git merge --no-edit --no-ff pr-1018, no conflicts). The merge changes onlydocs/d3d12_vulkan.md(43 lines added).gta6rtwas not rebuilt (same sources as main; no new imports possible from this change).python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md: exit 0.python -m unittest tests.test_docs_env_vars tests.test_docs_list_items tests.test_docs_repeated_lines tests.test_docs_table_ids: 14 tests, OK.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:38:48Z.
Merged at head
cad4cee. Docs-only (docs/d3d12_vulkan.md), reviewed on this head by PierreEbele, enlight3d, zmasi; no test applies. AI-assisted: yes.