Repository navigation
Conversation
…TCH (slot 41) The retail title creates five one-argument command signatures with no root signature at startup (device slot 41, CreateCommandSignature at its PC position). One has the console argument type 105 and a 12-byte stride, next to a DISPATCH and a DISPATCH_MESH of 12 bytes. The PC layer refuses the unknown type, which is stop 19 of the RT-5 boot measurements. Read statically from the title's call sites (shapes only): the two ExecuteIndirect sites of that signature pass MaxCommandCount 1 and an offset into the same argument buffer as the DISPATCH sites. Right before, they set the same compute state as the DISPATCH path (pipeline, compute root signature, tables, constants, SRV and UAV); they record on a second command list of the title's context. So the argument is taken as a D3D12_DISPATCH_ARGUMENTS. Slot 41 now has its own handler. A description that holds type 105 is copied with that type replaced by DISPATCH (logged once). Any other description is forwarded as the same pointer. What the console does differently for type 105 is left open in docs/d3d12_vulkan.md (section 4.9). xs_proxy_mock_test: a two-argument description (a root constant, then type 105) reaches the PC slot 41 as a copy with DISPATCH, the same stride, count, root signature, IID and output, and the caller's description is untouched; a PC description is passed through unchanged. With main's d3d12_xs_device.cpp the new check fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Native Windows clang-cl/xwin build of I tested a local patch that reads the field's bytes into a |
105 is outside D3D12_INDIRECT_ARGUMENT_TYPE's range [0, 15], so clang-cl rejects a constant expression that casts it to the enum (reported by umnitus on ProjectLeonida#7163). The handler now reads each argument's Type field as a uint32_t through memcpy and compares it with 105; the test writes and reads the raw value the same way, and the mock records it the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @umnitus, good catch. Fixed in |
|
Tested on the retail boot: pass. Own 1.0.2.1 copy, Windows 11, RTX 4090 / 617.42,
AI-assisted (Claude Code). |
|
Retail check of |
|
Independent native Windows 11 / MSVC 19.44.35230.0 / AMD Radeon RX 6700 XT (
AI-assisted (Gemini, Antigravity). |
|
Retail boot test (RT-5): own 1.0.2.1 copy, Windows 11, i9-12900KF, RTX 3070 (NVIDIA 617.42), MSVC 2022 RelWithDebInfo, Result on NVIDIA: with this PR, AI-assisted test run. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
checked: #7163 | with: merge of PR head onto main, then
AI-assisted. |
d3d12_xs: a console indirect argument of type 105 is created as DISPATCH (device slot 41, RT-5 stop 19) Preserve the per-slot layout from ProjectLeonida#7460 while integrating the slot 41 handler and regression tests. Fork integration. AI-assisted (Codex).
|
checked: 084c8c6 | base: main@464887b4f + #7163 | on: Windows 11, MSVC 14.51, NVIDIA RTX 4070 SUPER (621.14) | result: builds clean and
AI-assisted. |
|
checked: #7163 | with: applied the diff on main 6312c05, built xs_proxy_mock_test (MSVC, Ninja RelWithDebInfo) | on: Windows 11, RX 9060 XT | result: PASS (9 intentional refusals), incl. the new slot-41 cases: type-105 desc reaches PC slot 41 rewritten to DISPATCH in a copied description (stride, count, CONSTANT arg and root signature kept, caller's array untouched), a PC description forwards as the same pointer Code read: the enum value is read as raw 32 bits via memcpy (clang-cl safe), the rewrite works on a fresh copy so the title's desc is never mutated, non-105 descriptions forward unchanged, allocation failure returns E_OUTOFMEMORY with *out nulled, and the hypothesis (what the console does differently) is labelled Open in both code and docs. AI-assisted check. |
|
Independent Windows/MSVC synthetic proxy checks passed in a temporary integration. In an offline Windows Sandbox retail experiment, the type 105 signature was translated to DISPATCH and returned S_OK. The following fifth startup signature, DISPATCH_MESH (type 10), returned E_NOTIMPL, then the title hit the same breakpoint; this is the separate mesh indirect work already tracked in #3777/#5899. This does not establish semantic equivalence for type 105 or a rendered frame. |
…f type 105 is created as DISPATCH (device slot 41, RT-5 stop 19) Squashed from ItsNotRexed#7163 by mrp1no, head 084c8c6 (security scan PASS). Conflicts with ItsNotRexed#7115 (slot 61) and the earlier slots: both handlers, routing branches, mock cases, docs rows and test checks kept side by side; device_slot_overridden takes the union.
…t expectations) ItsNotRexed#7759 carries ItsNotRexed#7201's slot 86/101/108 handlers; its squash added them a second time next to ItsNotRexed#7201's copy (the 101/108 bodies are identical, and ItsNotRexed#7759's slot 86 keeps the PSO stream for slot 55), so ItsNotRexed#7201's copy is removed. xs_proxy_mock_test: the check_xbox_slots summary line merged for ItsNotRexed#7163 had its \n written as a line break; ItsNotRexed#7235's slot-127 hook check now expects no PC slot 25 call for a listed render target (the console-size port from ItsNotRexed#7240 sizes it, same 33,423,360 B); ItsNotRexed#7821's check_view_heap_cap releases the heaps it makes, since its CreateDescriptorHeap mock case is now ItsNotRexed#7021's, which makes a heap proxy holding the device. d3d12_vulkan_device_test: the meta-command checks run on the device behind the Xbox proxy, as ItsNotRexed#7125 does for CreateReservedResource2: proxy slot 61 is the title's CreateSamplerX (ItsNotRexed#7115).
|
Tested 084c8c6 under Wine: Proton Experimental (wine 11),
AI-assisted run (Claude Code); no game files used. |
Claimed in the coordination issue: stop 19 of @KkelebekK's RT-5 finding (#6910 (comment)). Claim: #7049 (comment)
What and why
At startup the retail title creates five one-argument command signatures through device slot 41 (
CreateCommandSignature, at its PC position), with no root signature. One of them uses the console argument type 105 with a 12-byte stride, next to aDISPATCHand aDISPATCH_MESHof 12 bytes. The PC layer refuses the unknown type withE_INVALIDARG, which is stop 19 of the boot measurements.What type 105 is, read statically from my own copy's call sites (shapes and counts only, no code):
ExecuteIndirectsites passMaxCommandCount1, and the argument offset is in the same upload buffer theDISPATCHsites use;DISPATCHpath sets: pipeline, compute root signature, descriptor tables, root constants, root SRV/UAV, at the console command-list slots (PC + 4);DISPATCH_MESHgo through a different, graphics state path;DISPATCH: they record on a second command list of the title's rendering context.So the 12 bytes are taken as a
D3D12_DISPATCH_ARGUMENTS.The change. Slot 41 now has its own handler:
DISPATCH, and the substitution is logged once;docs/d3d12_vulkan.md, and HYPOTHESIS in the code.The
DISPATCH_MESHsignature of the same stop stays with #3777 / #5899.Tested
Windows 11, MSVC RelWithDebInfo,
main464887b4:xs_proxy_mock_test: PASS. The new check sends a two-argument description (a root constant, then type 105). It expects the PC slot 41 to get a copy withDISPATCHand the same stride, count, root signature, IID and output, and the caller's description untouched. A PCDISPATCH_MESHdescription must arrive as the same pointer. Withmain'sd3d12_xs_device.cppthe check fails (line 774).ctest -R xs_proxy: 6/6.python -I tests/test_docs_links.pyandtests/test_docs_design_rows.py: OK.gta6rt --run, 2 runs: the same stops asmain(the firstXMemVirtualAlloccheck, or the known intermittent TLS slot 0 crash, Loader: the mapped game executable owns module TLS index 0 (RT-259) #4313). The boot doesn't reach slot 41 onmainyet.Independent of #7115 (slot 61); the two touch neighbouring lines of
d3d12_xs_device.cpp, so whichever lands second needs a trivial rebase. No game data. AI-assisted (Claude Code).🤖 Generated with Claude Code