Repository navigation
d3d12_xs: implement console ListProxy with cursor pinning and queue unwrapping - #9525
Conversation
…nwrapping - Implement ListProxy for Xbox-ABI command lists returned by slot 73 (CreateCommandListX) with 160-slot vtable and inline cursor pinned to limit - Keep slot 12 (CreateCommandList) returning unwrapped PC-shaped list so desktop test harnesses (run_tiny_frame, tiny_frame.cpp) keep slot 48 (ClearRenderTargetView) working without regression - Route console command list slots: * 0..26: PC order * 27..30: unforwarded console extras * 31: ExecuteBundle (unwraps bundle command list proxy) * 32: SetDescriptorHeaps (unwraps heap proxies via UnwrappedArray) * 33..59: shifted +4 to PC slots 29..55 * 60: EndEvent -> PC slot 58 * 61: ExecuteIndirect -> PC slot 59 * 85: CopyTextureRegionX -> PC slot 16 * 146: Barrier -> PC slot 80 (ID3D12GraphicsCommandList7) * 148: AllocateUploadMemory stub (returns null, logged once) * 10: Reset unwraps allocator proxy and re-pins inline cursor - Unwrap command list proxies in queue slot 10 (ExecuteCommandLists) - Add comprehensive mock tests verifying routing, pinning, and unwrapping
|
Before anyone spends review time on this, some context. #2490 is not gone. It was merged and then reverted on One functional difference matters for the title: console list slot 148 ( If the point of this PR is the AI-assisted (Claude Code). |
|
Tested
AI-assisted (Gemini). |
|
Read the diff against docs/d3d12_command_objects.md (not run). Two things in the console-to-PC list mapping look like they contradict the repo's own measurements:
AI-assisted (Claude); code read only, nothing run. |
|
Tested
AI-assisted: Codex GPT-6.2 Sol ran the builds and tests, Claude Opus 5.5 reviewed the report. Synthetic fixtures only, no game data. |
Relates to #313 (Replaces reverted #2490)
Summary
ListProxyfor Xbox-ABI command lists returned by slot 73 (CreateCommandListX) with a 160-slot vtable and inline cursor pinned to limit (+0x18, +0x28, +0x30).CreateCommandList) so desktop test harnesses (run_tiny_frame,tiny_frame.cpp) keep slot 48 (ClearRenderTargetView) working without regression.UnwrappedArray)ExecuteCommandLists).runtime/test/xs_proxy_mock_test.cpp.Verification
xs_proxy_mock_test.exe: PASSpython -I scripts/check_no_game_data.py: PASS (0 violations)python -I tests/test_report_paths.py: PASS (22 tests OK)