Repository navigation
d3d12_xs: console list slot 139 is Reset (RT-LIST139) - #396
Conversation
|
Follow-up on my own guess above: it is not the memory shim. I swapped the integration branch's 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 AI-assisted. |
c804722 to
7d58fa5
Compare
…stack Contains ProjectLeonida#375 ProjectLeonida#377 ProjectLeonida#383 ProjectLeonida#385 ProjectLeonida#391 ProjectLeonida#395 ProjectLeonida#396 ProjectLeonida#403 ProjectLeonida#414 ProjectLeonida#416 ProjectLeonida#427 ProjectLeonida#430 ProjectLeonida#432. # Conflicts: # runtime/shims/d3d12_com.cpp # runtime/shims/d3d12_vulkan_device.cpp # runtime/src/command_list.h
…) on allocator proxy (cherry picked from commit e29e989)
(cherry picked from commit e925b63) Adapted to main by Mumogg: main has command-list proxies, so the shared execute function replaces them by their real lists in a copy of the array (UnwrappedArray), for the console slot 35 as for the PC slot 10, whose test failed otherwise. The slot 35 mock case passes two mock lists instead of two numbers and checks that they arrive and that the caller's array is not written.
…ow in the Xbox-only table Asked for in review on ProjectLeonida#377. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
The retail title resets its command lists through list slot 139, with (allocator proxy, pipeline state). main's slot map had no entry for it, so the call was recorded and dropped and the list stayed closed. The map sends it to the PC slot 10, and the unwrap keys on the PC slot, so console slot 10 and console slot 139 both hand the real list its real allocator (and a wrapped pipeline state the same way) and re-pin the inline cursor. The mapping and the unwrap rule are those of ef9d075 (Nolan Cotter; measured by Pipodi), written again for main's list proxy, where that commit does not apply. xs_proxy_mock_test checks the map entry and a slot 139 call. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
7d58fa5 to
54ed404
Compare
Two files conflicted; in each, both sides had added something at the same place and both are kept. runtime/shims/d3d12_xs_device.cpp: this branch's queue_execute_command_lists() next to main's XboxQueueSlotRoutes and xbox_queue_slot_routes() (the PresentX, SuspendX and ResumeX routes). runtime/test/xs_proxy_mock_test.cpp: main() runs check_xbox_queue_slots() and then check_presentation_wiring(). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
An independent confirmation of the slot-139 part, from another project's measurement (facts only, no code):
On current AI-assisted: yes. |
Merged on top of the merge made for ProjectLeonida#391 (main 507029d plus RT-QUEUE35). One conflict, in docs/d3d12_vulkan.md: both sides added a row at the same place of the Xbox-only table. Both are kept: this branch's "Command-allocator slot 9" row, then main's "Device slot 81, queue PresentX/SuspendX/ResumeX" row. The code and the tests merged without conflicts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged on top of the merge made for ProjectLeonida#395 (main 507029d plus RT-QUEUE35 and RT-ALLOC9). No conflicts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Merged. Mumogg is still away and this is the next rung on What it does: console list slot 139 now goes to the PC How it is known: the slot is measured on the retail title, in Holds and requests: none on this PR. Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
For later:
#403 (queue slot 18) is the next rung. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5). |
|
Native Windows + MSVC result for the part not run above: Mumogg's
AI-assisted: yes. |
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