D3D12.X: a command signature made at a freed one's address forgets its root-changing kind #2495
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2505"
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 tiagonleal on 2026-11-25T21:01:43Z.
ROOT_SIGNATURES only inserted. If a command signature with root arguments was freed and a simple one (Dispatch, DrawIndexed) was made at the same address, every ExecuteIndirect with it and a translated pipeline was skipped, with no counter and no log. It is now noted at every creation, the way DISPATCH_SIGNATURES is (
d6ff44ce). Overlaps #869 (open, conflicting, no review), which replaces ROOT_SIGNATURES altogether.What is in it
bind.rs:note_root_changing_signature(sig, changes)inserts or removes; testa_command_signature_made_at_a_freed_ones_address_does_not_keep_its_kinddevice_x.rs:create_command_signature_xnotes every successful creationTested
cargo test -p xcl --lib a_command_signature_made_at: 0 passed, 1 failed. After the fix, run 5 times: 1 passed, 0 failed each time.cargo build --workspaceandcargo test --workspace --no-fail-fast -j 6 -- --test-threads=4, run twice: 1420 passed, 4 failed, 46 ignored both times (25SKIPPEDlines). The 4 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3; they fail the same way onmain6d12f58a(cargo test -p xcl --lib fuzz_validate_and_gpu: 0 passed, 4 failed).Regression run
main (
6d12f58a):this PR's head:
Not tested
device_x.rscall is not exercised by a test.AI use
Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T21:01:55Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:14:11Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:15:39Z.
gpu_suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted run of
a_command_signature_made_at_a_freed_ones_address_does_not_keep_its_kind: passed.Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:42:08Z.
Independent AMD RDNA4 (native wave64) test report on exact head
fecb7c4d2c4721f3f99a83e00948091babaadb4b(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1422 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.hle::d3d12x::bind::tests::a_command_signature_made_at_a_freed_ones_address_does_not_keep_its_kind.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T03:05:09Z.
Independent desktop NVIDIA verification of PR #2505 at head
fecb7c4d2c4721f3f99a83e00948091babaadb4b(1commit; exact parent & merge-base:6d12f58a229bc73889878a448c64dc3af25eeba0, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
fecb7c4d)cargo test --release -p xcl --lib a_command_signature_made_at_a_freed_ones_address_does_not_keep_its_kind -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1324 filtered out× 3 (0.00s× 3,0skipped)cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1(3 consecutive runs)9 passed; 0 failed; 0 ignored; 1316 filtered out× 3 (0.43s,0.44s,0.43s,0skipped)cargo test --release -p xcl --lib hle::d3d12x::device_x:: -- --test-threads=1(3 consecutive runs)14 passed; 0 failed; 0 ignored; 1311 filtered out× 3 (0.34s,0.33s,0.34s,0skipped)cargo build --release -p xcl1m 06s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
6d12f58a229bc73889878a448c64dc3af25eeba0, cached baseline on the same machine):PR #2505 (
fecb7c4d2c4721f3f99a83e00948091babaadb4b):Runtime log observations (
xcl.log)9222log lines,0[ERROR]/ device-removal / panic lines.19642 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14024 MB committed by the process; video memory 6114 MB local, 4683 MB non-local.Limits of coverage
a_command_signature_made_at_a_freed_ones_address_does_not_keep_its_kind(3/3),hle::d3d12x::bind::(9/9× 3), andhle::d3d12x::device_x::(14/14× 3).title: 29640639confirms zero runtime regression on command-signature creation and indirect execution (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-28T12:35:19Z.
Closing this because
mainalready fixes it.5b03933e("D3D12.X: snapshot indirect signature traits", by bmjask, inmainsince the #2959 stack) removed theROOT_SIGNATURESset this PR cleaned up. Every successfulCreateCommandSignaturenow writes oneIndirectSignatureInforecord for its address, so a plain signature made at a freed root-changing one's address no longer inherits the stale bit. That is the bug this PR was for.AI use: Claude Code wrote this comment (Claude Fable 5.2). Claude Opus 5.5 found the overlap while rebasing, and I checked
5b03933eagainstmaine429936cbefore closing.Pull request closed