d3d12_xs: command-allocator slot 9 (SetAllocatorCallbackX) is recorded, again (RT-ALLOC9) #395
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!395
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/395/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:28 UTC · original
Mumogg:allocator-slot9-callback→main· +220 −32 · 6 files · 5 commits · merged 2026-11-24 23:59 UTCClaimed 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
@aslan2142 on GitHub · 2026-11-24 23:59 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 ofdfd62d7e2(b06d096ad), mergingmainwith #391 in it. Mumogg's two commits (DevilNine's change and the docs row) are untouched and nothing was force-pushed.What it does: command-allocator slot 9, named
SetAllocatorCallbackXafter the commit that added it, now stores the title's callback and context on the allocator proxy, logs once and answersS_OK; before, it was refused as past the PC allocator table. Slots 10 and up are still refused. This restores DevilNine'se29e98998, which is inmain's history but was no longer in its tree.It is a stand-in: nothing calls the callback, and whether the title needs it called is open. The new row in
docs/d3d12_vulkan.mdsays so.Conflict: one, in
docs/d3d12_vulkan.md: both sides added a row at the same place of the Xbox-only table. Both are kept (allocator slot 9, then slot 81 /PresentX). The code and the tests merged without conflicts; the merge adds exactly this PR's five files tomain.Holds and requests: none on this PR.
Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
mainwith #391: no test changed state on either device (259 pass and 15 fail on llvmpipe, 255 and 21 on the iGPU, on both sides).allocator_proxy,xs_proxy_mockwith its six variants anddevice_proxypass on both devices.test_docs_*files andcheck_no_game_data.pyon the changed files are clean.ExecuteCommandLists.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).