d3d12_xs: console list slot 139 is Reset (RT-LIST139) #396
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!396
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/396/head"
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?
@Mumogg on GitHub · 2026-11-24 04:31 UTC · original
Mumogg:list-slot139-reset→main· +235 −33 · 6 files · 7 commits · merged 2026-11-25 00:13 UTCClaimed in #14 as
RT-LIST139. Depends on: #349 to #395 in order (their commits come first here; this pull request is the last commit). The change itself is three places in the list proxy and its test.What and why
The retail title resets its command lists through list slot 139, with
(allocator proxy, pipeline state).main'sconsole_to_pc_list_slothas no entry for 139, so the call is recorded and dropped.d3d12_xs_device.h: the map sends 139 to the PC slot 10.d3d12_xs_device.cpp: the list proxy's unwrap keys on the PC slot instead of the console slot, so console slot 10 and console slot 139 both give the real list its real allocator (and a wrapped pipeline state the same way) and re-pin the inline cursor.xs_proxy_mock_test.cpp: the map entry, and a slot 139 call that reaches the real list's slot 10 with the real allocator and never its slot 139.This one is written by me, not cherry-picked: the mapping and the unwrap rule are those of
ef9d0759d(Nolan Cotter; the call shape was measured by Pipodi), which does not apply tomain's list proxy. The commit message credits it.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, on
mainece4ba5b3, with #142, #219, #328 and #387 applied on top for the boot runs (they are not in this branch).--runokamong themThe extra call is the list's
Reset, now reached.This does not move the stop either. The run still ends right after the first
ExecuteCommandLists ok, with the title writing through a null pointer of its own: it loads a pointer from one of its globals and stores a byte far into the object it expects there. So something the title sets up earlier is missing on this path, and it is not the list'sReset. I do not know yet what it is; the run of the integration branch (#321) at the same point goes on, and next I will narrow down which difference between the two matters (the memory shim is my first candidate, since #321 uses another one).xs_proxy_mock_testunder Wine passes.Not built with MSVC and not run on Windows.
AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
@Mumogg on GitHub · 2026-11-24 04:32 UTC · original
Follow-up on my own guess above: it is not the memory shim. I swapped the integration branch's
xmem.cppinto the measurement build and the run ends at the same call (11,950 traced, lastExecuteCommandLists ok) with the same fault. So that candidate is ruled out, and the difference is somewhere else in what the two trees do before the first submission.One thing visible in the logs that I have not explained: at this point the integration branch's run shows a first call of list slot 74 between list slot 72 and
WaitFrameEventX, and the run onmainnever calls it.AI-assisted.
@3L1A5-1 on GitHub · 2026-11-24 23:46 UTC · original
An independent confirmation of the slot-139 part, from another project's measurement (facts only, no code):
main's map here (61 = ExecuteIndirect, 85 = CopyTextureRegionX).Reset(allocator, NULL, 0)on each list it takes from its pool, before recording. While the slot was a stub, the list stayed closed: every later call on it was refused andClosefailed. So it matches this PR's mapping to PC slot 10, with the allocator unwrapped.On current
main(507029d1e)console_to_pc_list_slot(139)is stillkListNotForwarded, so the call returns 0 and does nothing. Since this PR isneeds rebaseand touches 18 files, would you split the one-line slot-139 mapping (with thepc == 10unwrap) into its own small PR? It would be easy to review and merge on its own.AI-assisted: yes.
@aslan2142 on GitHub · 2026-11-25 00:13 UTC · original
Merged. Mumogg is still away and this is the next rung on
main's boot path, so I brought the branch up to date as with the rungs before it: one merge commit on top of54ed404de(864337351), mergingmainwith #391 and #395 in it. Mumogg's commit is untouched and nothing was force-pushed. There were no conflicts.What it does: console list slot 139 now goes to the PC
Reset(slot 10). The allocator proxy is unwrapped, a wrapped pipeline state would be too, and the inline cursor is re-pinned as for console slot 10. Before, the call was dropped withS_OKand the real list stayed closed.How it is known: the slot is measured on the retail title, in
ef9d0759d(inmain's history, not in its tree): the title creates a list, closes it at slot 9, then calls 139 with(allocator proxy, 0). This PR rewrites that formain's list proxy.Holds and requests: none on this PR.
Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
mainwith #395: no test changed state on either device (259 pass and 15 fail on llvmpipe, 255 and 21 on the iGPU, on both sides).xs_proxy_mockwith its six variants anddevice_proxypass on both devices.check_no_game_data.pyon the three changed files is clean. The Linux portable subset does not build these files.okcall (11,949 to 11,950) and the stop does not move.For later:
docs/d3d12_vulkan.mdhas no row for list slot 139; the row inef9d0759dis ready to be brought over.RT-LIST139finding in #14: list slot 74 is never called onmain, and nothing is recorded after the first submission (slots 146 and 52).#403 (queue slot 18) is the next rung.
AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
@3L1A5-1 on GitHub · 2026-11-25 00:31 UTC · original
Native Windows + MSVC result for the part not run above: Mumogg's
54ed404deonmain1154976d4(no conflicts; same change as the merge), MSVC 14.44, Windows SDK 10.0.26100, Windows 11 26300, RTX 2060 SUPER (Turing, 8 GB, driver 617.14).gameinputtests are disabled here), includingxs_proxy_mockand its six variants.mainbefore it: 316 / 316.scripts/run_gpu_tests.pyonmain: 207 pass / 49 skip / 0 fail, and withLEONIDA_W64_EMULATE=1239 / 17 / 0.AI-assisted: yes.