mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #396] [MERGED] d3d12_xs: console list slot 139 is Reset (RT-LIST139) #448
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#448
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/396
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:list-slot139-reset📝 Commits (7)
bbae96dd3d12_xs: handle ID3D12CommandAllocator slot 9 (SetAllocatorCallbackX) on allocator proxy1bd72a8d3d12_xs: route command queue slot 35 to ExecuteCommandListsdfd62d7docs: the recorded, never-called allocator callback of slot 9 has a row in the Xbox-only table54ed404d3d12_xs: console list slot 139 is Reset, routed to the PC slot 1094c9e43Merge main into RT-QUEUE35 (#391)b06d096Merge main into RT-ALLOC9 (#395)8643373Merge main into RT-LIST139 (#396)📊 Changes
6 files changed (+235 additions, -33 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+1 -0)📝
runtime/shims/d3d12_xs_device.cpp(+69 -1)📝
runtime/shims/d3d12_xs_device.h(+18 -9)📝
runtime/test/allocator_proxy_test.cpp(+24 -7)📝
runtime/test/queue_proxy_test.cpp(+59 -13)📝
runtime/test/xs_proxy_mock_test.cpp(+64 -3)📄 Description
Claimed 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.