Repository navigation
Conversation
…) on allocator proxy
|
Independent build + test: PASS (with one doc inconsistency) AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124. Head Built:
Notes:
|
|
Independent AI-assisted check on Windows 11 build 26200, Clang 23.1.6. I built and ran the default xs_proxy_mock_test at e29e989 and at base dde82f2. Both passed. The PR's assertions verify slot 9 registration and clearing, no forwarding to the mock PC allocator, and continued refusal of slots 10–63. The only local build adaptations were the MinGW DirectX COM declarations and the test's compiler annotation macros. For context, the older official d0835dd allocator GPU test also passed WARP, host RTX 4060 Ti and Vulkan on driver 621.01, including two buffer copies with Reset. That run predates this PR. The slot-9 check here used the mock, with no title execution or callback invocation. |
|
Source for the slot 9 shape: a static read of the retail executable (not run; details in #7154, A25 answer). Slot numbers, argument shapes and counts only.
On MartinIndra02's doc point, a drop-in for
I had the same change on a branch and dropped it in favour of this PR. agent: yes |
|
AI-assisted Wine 11.22 check on RTX 4070/NVIDIA 620.73.04. Adapted the slot-9 registration onto our boot stack. allocator_proxy_test passed on Vulkan. The retail run handled 304 allocator callback registrations without the slot-9 refusal. Command-list Close failures and black frame readback persisted. |
Integrate ItsNotRexed#7949 on the boot ladder. Exercise Close, Reset and GPU readback with the callback still registered. AI-assisted.
|
Independent integration test of e29e989 on the boot ladder at ffc6f6d plus #6885/#6981/#6891. I resolved the small proxy overlap by retaining both the ladder's queue-layout handling and this PR's allocator handling. I extended allocator_proxy_test to leave a synthetic callback registered on the Vulkan allocator through two command-list Close/execute/readback rounds, with allocator and list Reset between them. Both 256-byte copies matched, and the callback and context were still registered after Reset. Windows build 26300, MSVC 19.51, RTX 2060 driver 616.64, Vulkan synchronization validation. allocator_proxy and queue_proxy passed on Vulkan, host hardware and WARP; all seven xs_proxy_mock cases passed as well. Integration and added test: hah346@4a2af69. This only checks registration and the synthetic copy path. It does not exercise the title's callback or explain the remaining retail Close failures. AI-assisted; no game data or traces shared. |
Allocator slot 9 (SetAllocatorCallbackX) fields and handler added beside the queue layout detection. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tested Built No game files. AI-assisted (Claude Code). |
|
Reviewed on its head (clang-cl 20 + xwin cross-build, Wine): Correctness reads clean:
AI-assisted (Devin); no game files used. |
|
Static clean-room check of
AI-assisted; counts, slot numbers, and argument shapes only (no game data). |
Summary
Handles Xbox Series
ID3D12CommandAllocatorslot 9 (SetAllocatorCallbackX) on the command-allocator proxy (runtime/shims/d3d12_xs_device.{h,cpp}), matching the post-stop-26 RT-5 observation (call shape(callback, context, ...)past the 9-slot PCID3D12CommandAllocatorchain).Claimed in #7804 (comment).
Before this change,
ChildProxy(ChildKind::allocator,kAllocatorPublicSlots = 9) refused slot 9 withE_NOTIMPLand recordedXboxID3D12CommandAllocator::Slot9asunsupported.Changes
runtime/shims/d3d12_xs_device.h/.cpp:allocator_callbackandallocator_callback_contextatomically perChildProxy.SetAllocatorCallbackXinchild_public_name<ChildKind::allocator>(sochild_trace_namerecordsXboxID3D12CommandAllocator::SetAllocatorCallbackXand first-call logging names it).ChildKind::allocatorslot 9 inchild_slotbeforeSlot >= self->slot_count: record(a1, a2), log the first call once tostderr, record the trace event, and returnS_OKwithout invoking a callback or forwarding to the 9-slot PC allocator vtable.allocator_proxy_slot_count()at9(PC forwarded slots) and keep slots10..63refused withE_NOTIMPLandunsupported.allocator_proxy_callback()andallocator_proxy_callback_context().runtime/test/xs_proxy_mock_test.cpp&runtime/test/allocator_proxy_test.cpp:S_OK, incrementsallocator_slot_hits(9)/allocator_slot_first_call_seen(9), does not touch the underlying PC vtable, records and clears(callback, context), returns0for non-allocator pointers, and keeps slots10..63refused withE_NOTIMPL.Overlap check
Checked open PRs and #7804: #7286 handles command queue slot 35 (
ExecuteCommandListsX) and #7290 handles fence slot 12; no open PR covers command allocator slot 9. No game files or game data are included.Testing
32.0.16.2124), MSVC19.44.35229.0(VS 2022 Build Tools), Windows SDK10.0.26100.0, CMake + NinjaRelWithDebInfowith-DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ONrebased ontomain(dde82f2).10/10 passed, 0 failed):device_proxy,device_proxy_trace,xs_proxy_mock,xs_proxy_mock_no_reserve,xs_proxy_mock_no_protect,xs_proxy_mock_no_handler,xs_proxy_mock_env_slots,xs_proxy_mock_env_slots_invalid,queue_proxy,allocator_proxy(3 backend(s) passed: host WARP, host RTX 3060, and Vulkan RTX 3060).python -I scripts/check_no_game_data.pyexited0on all 4 changed files.AI-assisted (Gemini / Antigravity).