mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1018] docs(d3d12_vulkan): the title already supports the linear tile path (XG-SWIZZLE-LINEAR-PATH) #1056
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1056
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1018
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:docs/agent5📝 Commits (1)
cad4ceedocs(d3d12_vulkan): the title already supports the linear tile path📊 Changes
1 file changed (+43 additions, -0 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+43 -0)📄 Description
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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.