No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!228
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/228/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?
@Lum7nt on GitHub · 2026-11-23 21:22 UTC · original
Lum7nt:fix/d3d12x-console-extensions→main· +67 −1 · 4 files · 1 commits · closed without mergingProblem
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 failed@ivall on GitHub · 2026-11-23 21:29 UTC · original
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