Repository navigation
D3D12.X: a command signature made at a freed one's address forgets its root-changing kind - #2505
tiagonleal wants to merge 1 commit into
Conversation
…ress is reused ROOT_SIGNATURES only ever 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, as DISPATCH_SIGNATURES is. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
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.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
|
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
…cl-dev#2504 + xcl-dev#2505) (cherry picked from commit 50408106f8c91d09d051233527b544d33ef9acc4)
|
Independent desktop NVIDIA verification of PR #2505 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
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, 0 skipped) |
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, 0 skipped) |
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, 0 skipped) |
cargo build --release -p xcl |
Clean build (1m 06s, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (6d12f58a229bc73889878a448c64dc3af25eeba0, cached baseline on the same machine):
xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14004 MB
PR #2505 (fecb7c4d2c4721f3f99a83e00948091babaadb4b):
xcl-smoke v1
commit: fecb7c4d2c4721f3f99a83e00948091babaadb4b
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1633 (PresentX 1633)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14024 MB
Runtime log observations (xcl.log)
9222log lines,0[ERROR]/ device-removal / panic lines.- Final draw/memory telemetry in log:
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
- Clearing stale root-changing command-signature classification when a new signature reuses a freed pointer address was verified via
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). - The 60 s retail smoke on
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).
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 (d6ff44c). 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 onmain6d12f58 (cargo test -p xcl --lib fuzz_validate_and_gpu: 0 passed, 4 failed).Regression run
main (6d12f58):
this PR's head:
Not tested
device_x.rscall is not exercised by a test.AI use