D3D12.X: clear Flags in null heap GetDesc (bytes 40-43) #2846
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2846"
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 guinpereira on 2026-11-26T18:26:25Z.
Fixes #2783.
Clears the full 48-byte D3D12_HEAP_DESC in the null backend's GetDesc instead of only the first 40 bytes, so Flags (bytes 40-43) is zeroed. Adds a regression test.
What is in it
crates/xcl/src/hle/d3d12x/null.rs:Hidden_ZeroDesc40->Hidden_ZeroDesc48, writing 48 bytes instead of 40; vtable slot updated.null_heap_getdesc_clears_flags.Tested
cargo test -p xcl --lib -- --test-threads=4: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored. New test passes.cargo build -p xcl: clean.Regression run
Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit (
a4421e0) is still pending (cold shader cache crashes the title's startup precompile on this machine).Not tested
AI use
OpenCode, Beam Free - drafted the change and the regression test; smoke run and review by the author.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T21:09:54Z.
Linux (Wine) dual-lane run at head
a4421e06(base verified as exactly current main8b957bec) - your Flags fix is green on both Wine stacks.Suite:
cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::, compared against today's fresh main baseline on the same machines (rig 606/2, boxb 605/3).null::tests::null_heap_getdesc_clears_flags(new here): ok on both lanes. This closes the bytes 40-43 gap our #2802 row certified around - the 48-byte fill was right there, but Flags was never asserted until now.sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory- investigated, not yours: solo--exactruns are green 3/3 at your head and 3/3 at the main base, and your head is green in boxb's suite. One appearance under suite load on one machine = load-dependent flake in that sparse test, worth knowing about independently of this PR.No other movement in either red set.
AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-28T21:13:45Z.
Closing as a duplicate of #2802 (confirmed by 2+ contributors in #1607, group D143). Thanks for the contribution — feel free to comment if this covers something #2802 does not.
Pull request closed