D3D12.X: the same root signature set again keeps the root arguments #2494

Merged
tiagonleal merged 1 commit from upstream-pr/2504 into main 2026-11-29 12:19:19 +00:00
tiagonleal commented 2026-11-25 21:01:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T21:01:38Z.


SetComputeRootSignature and SetGraphicsRootSignature zeroed the root arguments on every call. In D3D12 a redundant set of the same root signature keeps the bindings; only a different root signature makes them stale. Microsoft Learn, Using a Root Signature (https://learn.microsoft.com/en-us/windows/win32/direct3d12/using-a-root-signature): "If the root signature is redundantly set to the same one currently set, existing root signature bindings do not become stale." Compute and graphics each have their own root signature. A title that sets the same signature again and then binds only some parameters left the rest at address 0 in the argument table of the translated shader.

The arguments are cleared only when the layout is not the one already set (the same layout object, so a signature made at a freed one's address still clears). The console list replay does the same. Reset and ClearState still clear everything. No tracked issue fits this exactly, so none is linked; neither #667 nor #1652 changes this clearing.

Rebased onto main 309c3ec5. The only conflict was in the test module, where main added tests in the same place.

What is in it

  • bind.rs: set_compute_root_signature / set_graphics_root_signature clear only for a different layout; test the_same_root_signature_again_keeps_the_root_arguments (same signature twice keeps the arguments, a different one clears, compute and graphics are independent, a signature re-made at the same address clears, ClearState and Reset clear)
  • console_list.rs: same_layout helper, used by the replay of RS_MARKER

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0
  • New test, before the fix (the code of this commit with the new behaviour switched off): cargo test -p xcl --lib the_same_root_signature: 0 passed, 1 failed. After the fix, run 5 times: 1 passed, 0 failed each time.
  • cargo build --workspace and cargo test --workspace --no-fail-fast -j 6 -- --test-threads=4, run twice: 1420 passed, 4 failed, 46 ignored both times (25 SKIPPED lines). The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3; they fail the same way on main 6d12f58a (cargo test -p xcl --lib fuzz_validate_and_gpu: 0 passed, 4 failed).
  • After the rebase onto main 309c3ec5 (head ea1258f8): cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4, one run: 2139 passed, 4 failed, 48 ignored (25 SKIPPED lines). All 4 failures also fail on main 309c3ec5 on this machine (2138 passed, 4 failed, 48 ignored): the 4 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_* (#1919 fixes them). The other results in this section are from the earlier heads named in them.

Regression run
scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e (Newer Retail Game), release builds of both commits in clean trees, main 309c3ec5 first, one run each, in one queue with this account's other PRs. Both runs had XCL_PREPARE=0 and the same warm DXIL cache. A warm-up run of main came before them and is not shown. A second run of main at the end of the queue showed 302 frames and a peak commit of 10988 MB, so differences of a few tens of frames between runs are noise here. main is slow for about the first minute of this title since #2959 (#3164 has the cause), which is why both runs show few frames.

main (309c3ec5):

xcl-smoke v1
commit: 309c3ec5a25ea231ddbe01f76748ab8ed3d9d953
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 389 (PresentX 389)
presents per 2 s (last 3): 26 29 10
device removals: 0
crashes: 0
peak commit: 11030 MB

This PR (ea1258f8):

xcl-smoke v1
commit: ea1258f89361c94d42f64901e28d582420147c4e
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 344 (PresentX 344)
presents per 2 s (last 3): 12 10 11
device removals: 0
crashes: 0
peak commit: 10983 MB

Not tested

  • Whether the retail title sets the same root signature again and then binds only part of it: not known. No claim about world loading or any visible change; the smoke run shows only that nothing regressed.
  • AMD, other drivers, Wine.
  • The console list replay change has no unit test of its own (it needs a recorded console list).

AI use

  • Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing.
<!-- greyfinch-sync:ivall/xcl:issue:5499111636 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T21:01:38Z. --- SetComputeRootSignature and SetGraphicsRootSignature zeroed the root arguments on every call. In D3D12 a redundant set of the same root signature keeps the bindings; only a different root signature makes them stale. Microsoft Learn, Using a Root Signature (https://learn.microsoft.com/en-us/windows/win32/direct3d12/using-a-root-signature): "If the root signature is redundantly set to the same one currently set, existing root signature bindings do not become stale." Compute and graphics each have their own root signature. A title that sets the same signature again and then binds only some parameters left the rest at address 0 in the argument table of the translated shader. The arguments are cleared only when the layout is not the one already set (the same layout object, so a signature made at a freed one's address still clears). The console list replay does the same. Reset and ClearState still clear everything. No tracked issue fits this exactly, so none is linked; neither #667 nor #1652 changes this clearing. *Rebased onto `main` `309c3ec5`.* The only conflict was in the test module, where `main` added tests in the same place. **What is in it** - `bind.rs`: `set_compute_root_signature` / `set_graphics_root_signature` clear only for a different layout; test `the_same_root_signature_again_keeps_the_root_arguments` (same signature twice keeps the arguments, a different one clears, compute and graphics are independent, a signature re-made at the same address clears, ClearState and Reset clear) - `console_list.rs`: `same_layout` helper, used by the replay of `RS_MARKER` **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 - New test, before the fix (the code of this commit with the new behaviour switched off): `cargo test -p xcl --lib the_same_root_signature`: 0 passed, 1 failed. After the fix, run 5 times: 1 passed, 0 failed each time. - `cargo build --workspace` and `cargo test --workspace --no-fail-fast -j 6 -- --test-threads=4`, run twice: 1420 passed, 4 failed, 46 ignored both times (25 `SKIPPED` lines). The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`; they fail the same way on `main` 6d12f58a (`cargo test -p xcl --lib fuzz_validate_and_gpu`: 0 passed, 4 failed). - After the rebase onto `main` `309c3ec5` (head `ea1258f8`): `cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4`, one run: 2139 passed, 4 failed, 48 ignored (25 `SKIPPED` lines). All 4 failures also fail on `main` `309c3ec5` on this machine (2138 passed, 4 failed, 48 ignored): the 4 `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_*` (#1919 fixes them). The other results in this section are from the earlier heads named in them. **Regression run** `scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e` (Newer Retail Game), release builds of both commits in clean trees, `main` `309c3ec5` first, one run each, in one queue with this account's other PRs. Both runs had `XCL_PREPARE=0` and the same warm DXIL cache. A warm-up run of `main` came before them and is not shown. A second run of `main` at the end of the queue showed 302 frames and a peak commit of 10988 MB, so differences of a few tens of frames between runs are noise here. `main` is slow for about the first minute of this title since #2959 (#3164 has the cause), which is why both runs show few frames. `main` (`309c3ec5`): ``` xcl-smoke v1 commit: 309c3ec5a25ea231ddbe01f76748ab8ed3d9d953 gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 389 (PresentX 389) presents per 2 s (last 3): 26 29 10 device removals: 0 crashes: 0 peak commit: 11030 MB ``` This PR (`ea1258f8`): ``` xcl-smoke v1 commit: ea1258f89361c94d42f64901e28d582420147c4e gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 344 (PresentX 344) presents per 2 s (last 3): 12 10 11 device removals: 0 crashes: 0 peak commit: 10983 MB ``` **Not tested** - Whether the retail title sets the same root signature again and then binds only part of it: not known. No claim about world loading or any visible change; the smoke run shows only that nothing regressed. - AMD, other drivers, Wine. - The console list replay change has no unit test of its own (it needs a recorded console list). **AI use** - Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing.
copilot-pull-request-reviewer[bot] commented 2026-11-25 21:01:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T21:01:52Z.

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.

<!-- greyfinch-sync:ivall/xcl:review:6064932195 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#pullrequestreview-6064932195). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-25T21:01:52Z. **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](https://docs.github.com/en/copilot/concepts/agents/code-review#code-review-usage).
DavidM1911 commented 2026-11-25 22:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:14:09Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7174795707 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7174795707). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:14:09Z. --- 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!
SlopTart commented 2026-11-25 22:06:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:15:38Z.


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 the_same_root_signature_again_keeps_the_root_arguments: passed.

<!-- greyfinch-sync:ivall/xcl:comment:7174830245 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7174830245). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:15:38Z. --- `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 `the_same_root_signature_again_keeps_the_root_arguments`: passed.
emirduran707 commented 2026-11-25 22:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:29:23Z.


Independent AMD RDNA4 (native wave64) test report on exact head bbd16e969f8277edba453d43d683f0fa6b4818a1 (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (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: 1421 passed, 3 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused 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.
    • The PR's test passed: hle::d3d12x::bind::tests::the_same_root_signature_again_keeps_the_root_arguments.
    • Of the 3 failures: 2 (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU; hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit failed once under --test-threads=4 (left: 135, right: 421) and passed immediately on single-threaded rerun (--test-threads=1, 0.48s).

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: bbd16e969f8277edba453d43d683f0fa6b4818a1
gpu: AMD Radeon RX 9060 XT
title: 21222967
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: 13933 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7175144130 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7175144130). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T21:29:23Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `bbd16e969f8277edba453d43d683f0fa6b4818a1` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`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`: **1421 passed, 3 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused 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. - The PR's test passed: `hle::d3d12x::bind::tests::the_same_root_signature_again_keeps_the_root_arguments`. - Of the 3 failures: 2 (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU; `hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` failed once under `--test-threads=4` (`left: 135, right: 421`) and passed immediately on single-threaded rerun (`--test-threads=1`, `0.48s`). **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: bbd16e969f8277edba453d43d683f0fa6b4818a1 gpu: AMD Radeon RX 9060 XT title: 21222967 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: 13933 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
Decodere commented 2026-11-27 03:05:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T03:05:29Z.


Independent desktop NVIDIA verification of PR #2504 at head bbd16e969f8277edba453d43d683f0fa6b4818a1 (1 commit; exact parent & merge-base: 6d12f58a229bc73889878a448c64dc3af25eeba0, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (bbd16e96)

Command Result
cargo test --release -p xcl --lib the_same_root_signature_again_keeps_the_root_arguments -- --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.43s, 0.43s, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::console_list:: -- --test-threads=1 (3 consecutive runs) 7 passed; 0 failed; 0 ignored; 1318 filtered out × 3 (0.17s × 3, 0 skipped)
cargo build --release -p xcl Clean build (1m 08s, 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 #2504 (bbd16e969f8277edba453d43d683f0fa6b4818a1):

xcl-smoke v1
commit: bbd16e969f8277edba453d43d683f0fa6b4818a1
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1635 (PresentX 1635)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14006 MB

Runtime log observations (xcl.log)

  • 9223 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19633 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14006 MB committed by the process; video memory 6116 MB local, 4682 MB non-local.

Limits of coverage

  • Retaining bound root arguments when the same root signature layout is re-bound was verified via the_same_root_signature_again_keeps_the_root_arguments (3/3), hle::d3d12x::bind:: (9/9 × 3), and hle::d3d12x::console_list:: (7/7 × 3).
  • The 60 s retail smoke on title: 29640639 exercises live console root-signature binding across 19633 draws and 1024 dispatches with zero errors or device removals (frame-count delta vs. cached parent reflects single-run startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7208696722 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7208696722). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T03:05:29Z. --- Independent desktop NVIDIA verification of **PR #2504** at head `bbd16e969f8277edba453d43d683f0fa6b4818a1` (`1` commit; exact parent & merge-base: `6d12f58a229bc73889878a448c64dc3af25eeba0`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`bbd16e96`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib the_same_root_signature_again_keeps_the_root_arguments -- --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.43s`, `0.43s`, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::console_list:: -- --test-threads=1` (3 consecutive runs) | `7 passed; 0 failed; 0 ignored; 1318 filtered out` × 3 (`0.17s` × 3, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 08s`, 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 #2504 (`bbd16e969f8277edba453d43d683f0fa6b4818a1`): ``` xcl-smoke v1 commit: bbd16e969f8277edba453d43d683f0fa6b4818a1 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1635 (PresentX 1635) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14006 MB ``` ### Runtime log observations (`xcl.log`) - `9223` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19633 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14006 MB committed by the process; video memory 6116 MB local, 4682 MB non-local`. ### Limits of coverage - Retaining bound root arguments when the same root signature layout is re-bound was verified via `the_same_root_signature_again_keeps_the_root_arguments` (`3/3`), `hle::d3d12x::bind::` (`9/9` × 3), and `hle::d3d12x::console_list::` (`7/7` × 3). - The 60 s retail smoke on `title: 29640639` exercises live console root-signature binding across `19633` draws and `1024` dispatches with zero errors or device removals (frame-count delta vs. cached parent reflects single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Alm0stSurely commented 2026-11-27 12:19:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alm0stSurely on 2026-11-27T12:19:13Z.


I reproduced the graphics descriptor-table case on an isolated #2057-based integration and tested the production changes from bbd16e969f8277edba453d43d683f0fa6b4818a1.

The test binds a synthetic graphics root signature with a one-SRV table and a 32-bit constant, sets both, sets the same signature again, then changes only the constant from 11 to 12. I checked the actual user_data_gfx result. Before the patch the table word in s8 became zero while s9 correctly became 12. With the patch, s8 retained the original table word and s9 became 12. Replacing the layout with a new object at the same address also cleared both words as expected.

This is a CPU regression test through the graphics setters. The effect on a retail frame is still unverified. Tested with assistance from OpenAI Codex (gpt-6.2-astra).

<!-- greyfinch-sync:ivall/xcl:comment:7218101335 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7218101335). Originally posted by [Alm0stSurely](https://github.com/Alm0stSurely) on 2026-11-27T12:19:13Z. --- I reproduced the graphics descriptor-table case on an isolated #2057-based integration and tested the production changes from `bbd16e969f8277edba453d43d683f0fa6b4818a1`. The test binds a synthetic graphics root signature with a one-SRV table and a 32-bit constant, sets both, sets the same signature again, then changes only the constant from 11 to 12. I checked the actual `user_data_gfx` result. Before the patch the table word in `s8` became zero while `s9` correctly became 12. With the patch, `s8` retained the original table word and `s9` became 12. Replacing the layout with a new object at the same address also cleared both words as expected. This is a CPU regression test through the graphics setters. The effect on a retail frame is still unverified. Tested with assistance from OpenAI Codex (gpt-6.2-astra).
Kalmarv commented 2026-11-29 03:25:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T03:25:09Z.


merge-check
base: fa204595a4
head: ea1258f893
merge: clean (trial merge 0ebf529b7547ced525e49bb6d5cf2b476217fa4b, local, not pushed; bind.rs and console_list.rs auto-merged; git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2609 passed, 0 failed, 49 ignored; SKIPPED: 26, the usual set (21 no wave64 on this 32-lane GPU, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows). The new bind::tests::the_same_root_signature_again_keeps_the_root_arguments ran and passed.
review: none blocking; whole diff read, and checked against current main after the merge. This matches D3D12: setting the root signature that is already set keeps the bound root arguments, and only a different one invalidates them. same_layout compares the layouts' Arcs, so a signature re-made at a freed one's address (a fresh note_root_signature) still counts as different and clears; the test covers that. Graphics and compute keep separate layouts and arguments. Reset and ClearState still set both layouts to None and clear both argument tables, so a signature set after them starts empty. A mid-list split (prepare_split / install_prepared_split on main) moves the same Arc layout with its arguments, so same_layout gives the same answer across segments. The console-list replay in console_list::close (RS_MARKER) follows the same rule. Two layout-less signatures count as the same ((None, None)), which is harmless: their argument table is empty either way.
performance: avoids reallocating and zeroing the argument table when a title sets the same signature again; nothing measured. Title run (release build of the merge, scratch/fast-world.py fast profile, about 85 s in world): exit 0, 0 crashes, 0 device removals, world entry 90.8 s, peak commit 31,365 MB, 91 WARN lines, failed_pipelines 0, no translation errors. Against a main fa204595 run on the same harness (world entry 76.8 s, peak commit 33,027 MB, 86 WARN lines) the only new WARN kind is Windows' "the system is running out of commit", caused by other jobs on this shared machine. Both runs show 0 fps in the world because the cache doesn't match the translator identity; world-entry and commit differences follow cache contents and machine load.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, release build for the title run, DXC 1.9.2609 via XCL_DXC_DIR. Claude Code, Claude Opus 5.5: merge, build, suite, title run and full-diff review; this report.

<!-- greyfinch-sync:ivall/xcl:comment:7250035690 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7250035690). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T03:25:09Z. --- merge-check base: fa204595a488c60c6c5f905244f0172072c9c2a9 head: ea1258f89361c94d42f64901e28d582420147c4e merge: clean (trial merge 0ebf529b7547ced525e49bb6d5cf2b476217fa4b, local, not pushed; bind.rs and console_list.rs auto-merged; `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_DXC_DIR = DXC 1.9.2609) -> 2609 passed, 0 failed, 49 ignored; SKIPPED: 26, the usual set (21 no wave64 on this 32-lane GPU, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows). The new `bind::tests::the_same_root_signature_again_keeps_the_root_arguments` ran and passed. review: none blocking; whole diff read, and checked against current main after the merge. This matches D3D12: setting the root signature that is already set keeps the bound root arguments, and only a different one invalidates them. `same_layout` compares the layouts' `Arc`s, so a signature re-made at a freed one's address (a fresh `note_root_signature`) still counts as different and clears; the test covers that. Graphics and compute keep separate layouts and arguments. `Reset` and `ClearState` still set both layouts to `None` and clear both argument tables, so a signature set after them starts empty. A mid-list split (`prepare_split` / `install_prepared_split` on main) moves the same `Arc` layout with its arguments, so `same_layout` gives the same answer across segments. The console-list replay in `console_list::close` (`RS_MARKER`) follows the same rule. Two layout-less signatures count as the same (`(None, None)`), which is harmless: their argument table is empty either way. performance: avoids reallocating and zeroing the argument table when a title sets the same signature again; nothing measured. Title run (release build of the merge, scratch/fast-world.py fast profile, about 85 s in world): exit 0, 0 crashes, 0 device removals, world entry 90.8 s, peak commit 31,365 MB, 91 WARN lines, `failed_pipelines` 0, no translation errors. Against a main fa204595 run on the same harness (world entry 76.8 s, peak commit 33,027 MB, 86 WARN lines) the only new WARN kind is Windows' "the system is running out of commit", caused by other jobs on this shared machine. Both runs show 0 fps in the world because the cache doesn't match the translator identity; world-entry and commit differences follow cache contents and machine load. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74, wave32 only), AMD Ryzen 9 9950X, Windows 11 build 26200; rustc 1.99.0, debug test profile, release build for the title run, DXC 1.9.2609 via XCL_DXC_DIR. Claude Code, Claude Opus 5.5: merge, build, suite, title run and full-diff review; this report.
throny commented 2026-11-29 08:23:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:23:26Z.


merge-check claim
head: ea1258f893

<!-- greyfinch-sync:ivall/xcl:comment:7253073585 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7253073585). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:23:26Z. --- merge-check claim head: ea1258f89361c94d42f64901e28d582420147c4e
throny commented 2026-11-29 08:40:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:40:56Z.


merge-check
base: d8bd9a38
head: ea1258f893
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored.
review: no finding. Setting the root signature that is already bound (the same layout object, compared by Arc::ptr_eq) no longer zeroes the bound arguments, in the binding code and in the replay of a recorded stream. That is D3D12's rule: only a different signature invalidates the bindings. The pointer comparison is sound because the old layout stays alive while it is bound, so a signature made again at the same address is a different object. Reset and ClearState still clear both. The test fails without the change; the replay path has no test of its own.
performance: not measured.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7253262594 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2504#issuecomment-7253262594). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:40:56Z. --- merge-check base: d8bd9a38 head: ea1258f89361c94d42f64901e28d582420147c4e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored. review: no finding. Setting the root signature that is already bound (the same layout object, compared by `Arc::ptr_eq`) no longer zeroes the bound arguments, in the binding code and in the replay of a recorded stream. That is D3D12's rule: only a different signature invalidates the bindings. The pointer comparison is sound because the old layout stays alive while it is bound, so a signature made again at the same address is a different object. Reset and ClearState still clear both. The test fails without the change; the replay path has no test of its own. performance: not measured. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2494
No description provided.