mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #395] [MERGED] d3d12_xs: command-allocator slot 9 (SetAllocatorCallbackX) is recorded, again (RT-ALLOC9) #447
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#447
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/395
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:allocator-slot9-callback📝 Commits (5)
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 table94c9e43Merge main into RT-QUEUE35 (#391)b06d096Merge main into RT-ALLOC9 (#395)📊 Changes
6 files changed (+220 additions, -32 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+1 -0)📝
runtime/shims/d3d12_xs_device.cpp(+65 -0)📝
runtime/shims/d3d12_xs_device.h(+17 -9)📝
runtime/test/allocator_proxy_test.cpp(+24 -7)📝
runtime/test/queue_proxy_test.cpp(+59 -13)📝
runtime/test/xs_proxy_mock_test.cpp(+54 -3)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.