Repository navigation
Conversation
…ts description The retail executable calls the texture computer's slot 10 with the arguments of ID3D12Device::GetResourceTiling without the resource (measured at its one call site: zeroed 4- and 12-byte outputs, a count of 16, first 0 and an array), then adds the packed mip info's standard and packed counts. The shim answered E_NOTIMPL, so the title read 0 mips. XGCreateTextureComputer now keeps the description it is given. Its first 52 bytes are a D3D12_RESOURCE_DESC (measured at the game's call sites under gta6rt --run: dimension, 4 KiB alignment, width, height, array size, mips, DXGI format, sample count, the console layout word and console flag bits). Slot 10 answers the PC device's 64 KiB tiling of it, from src/resource_tiling.h, the same rules as the Vulkan layer's GetResourceTiling, through a small table of DXGI element sizes. A description it cannot tile keeps the old answer, E_NOTIMPL with nothing written. Computers are still never freed (no site calls AddRef, and one stores the computer for later), so there is one per distinct description, kept for the run. XGCreateTextureComputer still returns E_NOTIMPL, and slots 2 and 8 are unchanged. xg_xs_test: the measured 256 x 128 R8_UNORM description (one tile, one standard mip, the 256 x 256 8-bit tile shape), a full RGBA8 chain from its second subresource against src/resource_tiling.h, and one computer per description. 24 checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
|
|
Verified head
AI-assisted. |
|
checked: 32fb9d2 on Wine 11.22 / RTX 5070 Ti, NVIDIA 620.73.04. base: local dd44a4b53 boot integration + #7685, #7448, #8591, #7880 and #8458. With the new fixture alone, xg_xs reports 7 failures in 24 checks. With the runtime change applied, all 24 pass and gta6rt builds. In a 185-second offline retail run, the previous texture-computer slot-10 refusal no longer appeared. The run recorded 4,228 successful PresentX calls to the visible title window, with no pipeline creation or command-list Close failures observed. Four sampled frames remained black. This validates the tiling path on this stack and does not identify the cause of the remaining black frames. AI-assisted; aggregate results only. |
|
Tested #8763's AI-assisted (Claude Code). |
The retail executable calls the
xg_xs.dlltexture computer's slot 10 with the arguments ofID3D12Device::GetResourceTiling, without the resource: zeroed 4- and 12-byte outputs, a count of 16, first 0 and an array, measured at its one call site. It then adds the packed mip info's standard and packed counts. The shim answeredE_NOTIMPL, so the title read 0 mips.What changes, in
runtime/shims/xg_xs.cpp:XGCreateTextureComputerkeeps the description it is given. Its first 52 bytes are aD3D12_RESOURCE_DESC(measured at the game's call sites undergta6rt --run): dimension, 4 KiB alignment, width, height, array size, mips, DXGI format, sample count, the console layout word inLayoutand console bits inFlags.src/resource_tiling.h: the same rules as the Vulkan layer'sGetResourceTiling, through a small table of DXGI element sizes. A description it can't tile keeps the old answer,E_NOTIMPLwith nothing written.Unchanged:
XGCreateTextureComputerstill returnsE_NOTIMPL(two callers check it), and slots 2 and 8 still answerE_NOTIMPLwithout writing. Slot 8 is a copy into the title's own memory, which on the PC isn't the GPU texture.What it does and doesn't fix: in the retail boot (Windows 11, RTX 4070 SUPER, NVIDIA 616.56, Ryzen 7 5700X3D, own 1.0.2.1 copy, with the boot-chain stack in #8554), slot 10 is now answered and the title's mip counts are the description's. The boot's current stop, a
memsetthrough a bad destination about 23 s in, is not this; it happens with or without the change.Tested:
xg_xs_test, 24 checks: the measured 256 x 128R8_UNORMdescription (one tile, one standard mip, the 256 x 256 8-bit tile shape); a full RGBA8 chain from its second subresource, compared withsrc/resource_tiling.h; one computer per description; and the old checks for a description it can't tile. The new checks fail on main, where slot 10 isE_NOTIMPL.scripts/check_no_game_data.pypasses on both files.Claimed on #8683.
Depends on: none.
No game data. AI-assisted (Claude Code).
🤖 Generated with Claude Code