Repository navigation
d3d12_xs: command-allocator slot 9 (SetAllocatorCallbackX) is recorded, again (RT-ALLOC9) - #395
Conversation
339f43f to
6d5b2d4
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
6d5b2d4 to
dfd62d7
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 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. Mumogg is still away and this is the next rung on What it does: command-allocator slot 9, named It is a stand-in: nothing calls the callback, and whether the title needs it called is open. The new row in Conflict: one, in Holds and requests: none on this PR. Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
For later: the header comment's "Slot 9 wraps only an allocator…" means device slot 9 and should say so, now that allocator slot 9 is described just above it. #396 (console list slot 139) is the next rung. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5). |
Claimed in #14 as
RT-ALLOC9. Depends on: #349, #350, #356, #362, #369, #375, #377, #383, #385, #391 (their commits come first here; this pull request is the last commit). The code itself only touches the allocator proxy.What and why
The retail title calls command-allocator slot 9 with a function pointer and a context: the console's
SetAllocatorCallbackX. It is past the PC allocator's 9 slots, somainrefuses it withE_NOTIMPL.Commit
e29e98998by DevilNine (-x, authorship kept; an ancestor ofmainwhose content is not in the tree) records the callback and its context on the proxy and answersS_OK, leaving slots 10 and up refused. The layer manages its command buffers itself and never calls the callback. The conflict was one neighbour (the queue's slot 35 branch of #391); both sides are kept.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).--runXboxID3D12CommandAllocator::Slot9 unsupportedXboxID3D12CommandAllocator::SetAllocatorCallbackX called, and one[rt]line with the recorded wordsThis does not move the stop. The run ends as with #391 alone: after the first
ExecuteCommandLists okthe title faults writing through a null pointer. I thought the refused slot 9 might be the cause and it is not. What differs from a run that goes on is in the console command-list proxy; I posted that as a finding in #14.So this pull request removes one refused console call from the path and nothing more. It is small and tested, but it can wait for the list work if you prefer to take them together.
Tests under Wine:
xs_proxy_mock_testpasses;allocator_proxy_testexits 0.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