D3D12.X: fix AllocateFromCommandAllocatorX (#148) 32-bit UINT x64 ABI #3235
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3235"
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 Kalmarv on 2026-11-28T23:37:36Z.
Fix
ID3D12GraphicsCommandList::AllocateFromCommandAllocatorX(#148) x64 ABI to take 32-bitu32sizeBytesandalignmentBytesinstead ofusizeso upper 32 register bits are ignored.What is in it
crates/xcl/src/hle/d3d12x/bind.rs,real.rs,console_list.rs: changeallocate_from_command_allocator_xandcl_allocate_upload_memoryparameter types fromusizetou32(widening inside the body), and add unit testallocate_from_command_allocator_ignores_upper_32_register_bitswith poisoned upper register bits (0xDEAD_BEEF_0000_0040,0xCAFE_BABE_0000_0020).Tested
rustc 1.99.0, DXC 1.9 (XCL_DXC_DIR), debug for unit tests and release forxcl-smoke.cargo test -p xcl --lib allocate_from_command_allocator -- --nocapture: 1 passed, 0 failed, 0 ignored.BISECT1, RTX 5070 Ti,XCL_DIRECT_DXIL=all):exit 0x0,1.69 fps(matching baseline),0removals,0crashes.Regression run
main (
f0e8fdd5c3942ddd399d5ee11384c8595c5aacff):PR head (
8a40c0df06fdec1570c70d418991cf56d87ebe38):Not tested
AI use
xcl-smokeregression run.Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T14:57:34Z.
Merge-check run and written with Claude Code (Claude Opus 5.5): a test merge onto the base above, the full suite, and a 60 s
scripts/smoke.ps1run of a retail title against main on the same machine. The 4fuzz_validate_and_gpu_*failures happen on main on this machine too.Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T20:30:41Z.
Closing: consolidated with #3234 into #3727 (rebased onto
main5ad98adbc, fullscripts/test.ps1+ paired 60 sscripts/smoke.ps1verified, and addressing theHANDOFF.mdnaming / ABI provenance note from review).Pull request closed