Repository navigation
d3d12_xs: command-queue slot 35 is the console's ExecuteCommandLists (RT-QUEUE35) - #391
Conversation
447138c to
5d5afde
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
(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.
5d5afde to
1bd72a8
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>
|
Merged. Mumogg is still away and this is the next rung on What it does: queue slot 35 is the console's Conflicts: two files, each because both sides had added something at the same place; both are kept.
The diff of the merge against Holds and requests: none on this PR. The owner's hold on the stack was the Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
Follow-ups, none blocking the boot path:
#395 (allocator slot 9) is the next rung. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5). |
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>
Claimed in #14 as
RT-QUEUE35. Depends on: #349, #350, #356, #362, #369, #375, #377, #383, #385 (their commits come first here; this pull request is the last commit). The code itself only touches the queue proxy; the dependency is the measurement.What and why
On the retail title, command-queue slot 35 is
ExecuteCommandLists(count, lists). It is past the PC queue's 19 slots, somainrefuses it withE_NOTIMPL; nothing is submitted and the title faults a little later.Commit
e925b6345by Vadson159 (old PR 7286; cherry-picked with-x, authorship kept) routes the slot to the PCExecuteCommandLists(slot 10), with the count taken as aUINT. Unlike the other pieces I have sent, this one is neither inmain's history nor among theold-pr/*branches; I had it locally from the original pull request.Adapted to
main, as the commit message says:mainhands the title command-list proxies. The commit's shared execute function passed the array on as it came, which also took the PC slot 10 through that path and madexs_proxy_mock_test's existing slot 10 case fail (the real queue got a proxy). The function now replaces list proxies by their real lists in a copy of the array (UnwrappedArray), for both slots.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).--runXboxID3D12CommandQueue::Slot35 unsupportedXboxID3D12CommandQueue::ExecuteCommandListsX called, thenID3D12CommandQueue::ExecuteCommandLists okThat is the first command-list submission on this path. The run still ends in the same place, an access violation in the title writing through a null pointer, so slot 35 was not what caused it. The call just before the submission that is still refused is command-allocator slot 9 (
XboxID3D12CommandAllocator::Slot9 unsupported), which on the console hands out upload memory. That is the next thing to look at, and it is not a small cherry-pick: it belongs to the console command-list work of old PR 2490, whichmainhas in a different shape.Tests under Wine:
xs_proxy_mock_testpasses (the slot 10 case and the adapted slot 35 case),queue_proxy_testpasses on the Vulkan backend (1 backend(s) passed).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