Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/228"
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?
Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-23T21:22:45Z.
Problem
As identified during retail game bring-up and Issue #159, several console Direct3D 12 extensions are frequently invoked by the game engine during startup:
ID3D12CommandAllocator::#9: Registers the title's custom command memory allocator callback.ID3D12GraphicsCommandList::#75,#126,#131,#132,#142: Console command list extensions.ID3D12CommandQueue::#31: Queue extension on newer GDK layouts.(Note:
XGTextureAddressComputer::#10was already implemented and merged upstream in commit38b05b7.)Changes
crates/xcl/src/hle/d3d12x/real.rs:Kind::CommandAllocator => Some(9)toconsole_extensionsand registeredalloc_register_custom_allocator_xat slot 9.alloc_register_custom_allocator_xto log the callback and returnS_OK.console_slots(Kind::CommandList).#31inqueue_dispatch.crates/xcl/src/hle/d3d12x/list_x.rs:cmd_list_75_x,cmd_list_126_x,cmd_list_131_x,cmd_list_132_x, andcmd_list_142_x.crates/xcl/src/hle/d3d12x/null.rs:v[9] = Ret_S_OK as usizeforKind::CommandAllocator.HANDOFF.md:Test Plan
cargo test -p xcl --lib hle::d3d12x: 56 passed; 0 failedcargo test -p xcl --lib: 548 passed; 0 failedImported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:29:56Z.
Not merged: these turn the generic stubs into named no-ops (and allocator #9 into S_OK as
RegisterCustomAllocator), but nothing here shows what the slots do - a name and a no-op are guesses that hide the call fromcalled_stubs, where it is visible now. A PR for one slot with evidence of its arguments and effect (a trace of the title's calls, the console library's code) would be welcome. It is also 78 commits behind main.Pull request closed