Recompiler: carry store address and control into direct DXIL signatures #2025

Merged
luckyteagirl merged 1 commit from upstream-pr/2035 into main 2026-11-29 12:18:03 +00:00
luckyteagirl commented 2026-11-25 01:25:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T01:25:06Z.


Part of #1892 (its store-dependency item). compute_deps() tracked the value written to an alloca/TGSM root but missed the write address and the branch condition controlling it. A later load could therefore omit an input from dx.viewIdState and PSV0 signature dependencies. This PR propagates those dependencies for stores and atomics while retaining the fixed-point cyclic-PHI handling already on main. The competing #2269 was closed in favor of this narrower dependency mapping.

What is in it

  • graphics.rs: propagate each write's address, value operands, and enclosing block's control dependencies to loads of the same root.
  • module.rs: distinguish atomic writes from other value operations, so a GEP is not misclassified as a write.
  • graphics_tests.rs: regressions for store address, store condition, and atomic address/control.

Tested

  • Clean rebased head 045a439ab37b27014e5b833a3edf1de3e118134b on main 6d12f58a229bc73889878a448c64dc3af25eeba0; Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.8.2502.11.
  • Guarded XCL_ADAPTER=6800M XCL_REQUIRE_GPU=1 XCL_DIRECT_DXIL=1 cargo test --locked -p xcl --lib -j 2 gpu::dxil::graphics::tests -- --test-threads=1 --show-output: 28 passed, 0 failed, 0 ignored, 0 SKIPPED (1,299 filtered out); log work-store-deps/graphics-tests-rebased-045a439.log.
  • Guarded cargo build --locked --release -p xcl -j 2 passed in 3m 39s with no memory-guard stop; log work-store-deps/release-build-rebased-045a439.log. git diff --check: clean.
  • Independent RTX 3070 report on the same exact clean head: .\scripts\test.ps1 completed with 1,426 passed, 0 failed, 46 ignored; 25 explicit GPU skips on the wave32 adapter. Its three dependency_includes regressions passed. The reporter also completed a release build and 60-second title smoke (1,622 frames, 15,009 MB peak, zero crashes/device removals) against a same-machine main baseline (1,605 frames, 15,009 MB). These are the independent reporter's results, not runs on our RX 6800M.
  • Historical evidence on the earlier head 5473448: the full GPU workspace attempt reported 996 passed, 161 failed, 46 ignored, with nine explicit SKIPPED notices; the RX 6800M device was suspended before those GPU failures. This is not a current-head suite result. Independent comparison against #2269 found this PR's dependency set narrower for a fixed output; see the PR discussion.

Regression run

The committed release binaries for the clean tested main base and this PR ran the same locally owned title on the RX 6800M with separate data and shader caches. These short runs do not demonstrate that the title executed the changed direct-DXIL signature path; the focused regression above exercises it.

Clean tested main base (6d12f58; upstream tip e1d84b7 differs only in README.md):

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 1 (PresentX 1)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 6633 MB

This PR:

xcl-smoke v1
commit: 045a439ab37b27014e5b833a3edf1de3e118134b
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 1 (PresentX 1)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 6832 MB

Not tested

  • A completed current-head GPU workspace suite on our RX 6800M, longer RX 6800M title sessions, and Intel GPUs. The independent RTX 3070 suite skipped 25 GPU tests. No game data was uploaded.

AI use

OpenAI Codex (GPT-6; exact variant unavailable) implemented the fix and regressions, rebased the commit, ran the current-head GPU checks and guarded release/smoke runs, reviewed logs, and drafted this description.
OpenAI Codex (GPT-6.2 Astra) verified the independent exact-head report and added its linked results to this description.

<!-- greyfinch-sync:ivall/xcl:issue:5483300799 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T01:25:06Z. --- Part of #1892 (its store-dependency item). `compute_deps()` tracked the value written to an alloca/TGSM root but missed the write address and the branch condition controlling it. A later load could therefore omit an input from `dx.viewIdState` and PSV0 signature dependencies. This PR propagates those dependencies for stores and atomics while retaining the fixed-point cyclic-PHI handling already on `main`. The competing #2269 was closed in favor of this narrower dependency mapping. **What is in it** - `graphics.rs`: propagate each write's address, value operands, and enclosing block's control dependencies to loads of the same root. - `module.rs`: distinguish atomic writes from other value operations, so a GEP is not misclassified as a write. - `graphics_tests.rs`: regressions for store address, store condition, and atomic address/control. **Tested** - Clean rebased head `045a439ab37b27014e5b833a3edf1de3e118134b` on `main` `6d12f58a229bc73889878a448c64dc3af25eeba0`; Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.8.2502.11. - Guarded `XCL_ADAPTER=6800M XCL_REQUIRE_GPU=1 XCL_DIRECT_DXIL=1 cargo test --locked -p xcl --lib -j 2 gpu::dxil::graphics::tests -- --test-threads=1 --show-output`: 28 passed, 0 failed, 0 ignored, 0 `SKIPPED` (1,299 filtered out); log `work-store-deps/graphics-tests-rebased-045a439.log`. - Guarded `cargo build --locked --release -p xcl -j 2` passed in 3m 39s with no memory-guard stop; log `work-store-deps/release-build-rebased-045a439.log`. `git diff --check`: clean. - Independent [RTX 3070 report on the same exact clean head](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7178166609): `.\scripts\test.ps1` completed with **1,426 passed, 0 failed, 46 ignored**; 25 explicit GPU skips on the wave32 adapter. Its three `dependency_includes` regressions passed. The reporter also completed a release build and 60-second title smoke (1,622 frames, 15,009 MB peak, zero crashes/device removals) against a same-machine `main` baseline (1,605 frames, 15,009 MB). These are the independent reporter's results, not runs on our RX 6800M. - Historical evidence on the earlier head `5473448`: the full GPU workspace attempt reported 996 passed, 161 failed, 46 ignored, with nine explicit SKIPPED notices; the RX 6800M device was suspended before those GPU failures. This is not a current-head suite result. Independent comparison against #2269 found this PR's dependency set narrower for a fixed output; see the PR discussion. **Regression run** The committed release binaries for the clean tested main base and this PR ran the same locally owned title on the RX 6800M with separate data and shader caches. These short runs do not demonstrate that the title executed the changed direct-DXIL signature path; the focused regression above exercises it. Clean tested `main` base (`6d12f58`; upstream tip `e1d84b7` differs only in `README.md`): ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 6633 MB ``` This PR: ``` xcl-smoke v1 commit: 045a439ab37b27014e5b833a3edf1de3e118134b gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 6832 MB ``` **Not tested** - A completed current-head GPU workspace suite on our RX 6800M, longer RX 6800M title sessions, and Intel GPUs. The independent RTX 3070 suite skipped 25 GPU tests. No game data was uploaded. **AI use** OpenAI Codex (GPT-6; exact variant unavailable) implemented the fix and regressions, rebased the commit, ran the current-head GPU checks and guarded release/smoke runs, reviewed logs, and drafted this description. OpenAI Codex (GPT-6.2 Astra) verified the independent exact-head report and added its linked results to this description.
DavidM1911 commented 2026-11-25 05:08:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:28:35Z.


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:7152876483 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7152876483). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:28:35Z. --- 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!
throny commented 2026-11-25 15:08:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T15:07:59Z.


Two contributors checked independently and found that #2269 solves the same problem (for #1892) in a different way: #1607, group D79. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7166354142 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7166354142). Originally posted by [throny](https://github.com/throny) on 2026-11-25T15:07:59Z. --- <!-- xcl-1607-hint:D79 --> Two contributors checked independently and found that #2269 solves the same problem (for #1892) in a different way: #1607, group D79. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
b3IKK commented 2026-11-25 16:12:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T15:16:52Z.


An independent comparison by @thehollowedone (RTX 3080 Ti, XCL_DIRECT_DXIL=1 XCL_REQUIRE_GPU=1) put this head against #2269 on the same fixture: this one reports the narrower, correct set for a fixed output ({4}) where #2269 added the index of an unrelated access ({0, 4}). I traced it to #2269's shortcut — it treats any non-store instruction rooted at a global as a write, so a GEP is taken for a store — which is what your module.rs change avoids. #2269 is closed in favour of this one.

Your head also passes the stock gpu::dxil::graphics::tests filter 28/28 with zero skips on that machine, against 26/26 for #2269, so the three regressions here are covered. AI use: OpenCode, Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7166590599 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7166590599). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T15:16:52Z. --- An independent comparison by @thehollowedone (RTX 3080 Ti, XCL_DIRECT_DXIL=1 XCL_REQUIRE_GPU=1) put this head against #2269 on the same fixture: this one reports the narrower, correct set for a fixed output ({4}) where #2269 added the index of an unrelated access ({0, 4}). I traced it to #2269's shortcut — it treats any non-store instruction rooted at a global as a write, so a GEP is taken for a store — which is what your module.rs change avoids. #2269 is closed in favour of this one. Your head also passes the stock gpu::dxil::graphics::tests filter 28/28 with zero skips on that machine, against 26/26 for #2269, so the three regressions here are covered. AI use: OpenCode, Claude Fable 5.2.
ramon-victor commented 2026-11-26 00:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T23:53:04Z.


Independent NVIDIA (wave32) test report on exact PR head 045a439ab37b27014e5b833a3edf1de3e118134b (clean detached checkout, no local changes).

Tested

  • Hardware & toolchain: NVIDIA GeForce RTX 3070 8 GiB (wave32, driver 621.24), AMD Ryzen 7 5700X, 32 GiB RAM, Windows 11 Pro (build 26300), Rust 1.99.0 (x86_64-pc-windows-msvc), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0); debug tests, release smoke.
  • Targeted PR tests (cargo test -p xcl --lib dependency_includes): 3 passed, 0 failed (store_dependency_includes_the_address_input, store_dependency_includes_the_store_condition, atomic_dependency_includes_address_and_condition_inputs).
  • Full workspace (.\scripts\test.ps1): 1426 passed, 0 failed, 46 ignored (25 GPU skips expected on this wave32 adapter: 21 no wave64, 1 no heap windows, 3 wave32 per-lane refused for #1426 f16/f32 semantics).
  • Release build (cargo build --release -p xcl) and 60 s retail smoke run (XCL_NETWORK=0, compared against main @ 08db802 baseline on the same machine today: 1605 frames, 15009 MB peak commit, 0 crashes, 0 device removals):

Regression run

xcl-smoke v1
commit: 045a439ab37b27014e5b833a3edf1de3e118134b
gpu: NVIDIA GeForce RTX 3070
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1622 (PresentX 1622)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15009 MB

Not tested

  • AMD / Intel GPUs and wave64-only GPU tests (skipped on RTX 3070); XCL_SAMPLE_* tests (unset).

AI use

  • Antigravity (Gemini 4 Neon) ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7178166609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7178166609). Originally posted by [ramon-victor](https://github.com/ramon-victor) on 2026-11-25T23:53:04Z. --- Independent NVIDIA (wave32) test report on exact PR head `045a439ab37b27014e5b833a3edf1de3e118134b` (clean detached checkout, no local changes). **Tested** - Hardware & toolchain: NVIDIA GeForce RTX 3070 8 GiB (wave32, driver 621.24), AMD Ryzen 7 5700X, 32 GiB RAM, Windows 11 Pro (build 26300), Rust 1.99.0 (`x86_64-pc-windows-msvc`), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0); debug tests, release smoke. - Targeted PR tests (`cargo test -p xcl --lib dependency_includes`): **3 passed, 0 failed** (`store_dependency_includes_the_address_input`, `store_dependency_includes_the_store_condition`, `atomic_dependency_includes_address_and_condition_inputs`). - Full workspace (`.\scripts\test.ps1`): **1426 passed, 0 failed, 46 ignored** (25 GPU skips expected on this wave32 adapter: 21 `no wave64`, 1 `no heap windows`, 3 wave32 per-lane refused for `#1426` f16/f32 semantics). - Release build (`cargo build --release -p xcl`) and 60 s retail smoke run (`XCL_NETWORK=0`, compared against `main @ 08db802` baseline on the same machine today: `1605` frames, `15009 MB` peak commit, `0` crashes, `0` device removals): **Regression run** ``` xcl-smoke v1 commit: 045a439ab37b27014e5b833a3edf1de3e118134b gpu: NVIDIA GeForce RTX 3070 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1622 (PresentX 1622) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15009 MB ``` **Not tested** - AMD / Intel GPUs and wave64-only GPU tests (skipped on RTX 3070); `XCL_SAMPLE_*` tests (unset). **AI use** - Antigravity (Gemini 4 Neon) ran the build, test suite, and smoke run and drafted this report.
DavidM1911 commented 2026-11-26 08:04:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:05:11Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7185080398 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7185080398). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:05:11Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
upipibi commented 2026-11-26 21:58:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T21:58:21Z.


Test report on exact head 045a439ab37b27014e5b833a3edf1de3e118134b (merge-base 6d12f58a229bc73889878a448c64dc3af25eeba0), clean worktrees, debug builds. RTX 3070 8 GB (wave32, driver 616.56), Windows 11 Pro, Rust 1.100.0, Ryzen 9 5950X, 32 GB.

  • XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu::dxil::graphics::tests dependency_includes --test-threads=1, 3 runs: head 28 passed, 0 failed each (the 3 *_dependency_includes_* tests included); base 25 passed, 0 failed each (the 3 tests do not exist there). With the PR's test file copied onto base: 0 passed, 3 failed.
  • cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4: head 1292 passed, 0 failed, 26 ignored; base 1289 passed, 0 failed, 26 ignored.
  • SKIPPED: 25 on both (21 no wave64, 3 f16 per-lane refused, 1 other). No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:ivall/xcl:comment:7204235456 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7204235456). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T21:58:21Z. --- Test report on exact head `045a439ab37b27014e5b833a3edf1de3e118134b` (merge-base `6d12f58a229bc73889878a448c64dc3af25eeba0`), clean worktrees, debug builds. RTX 3070 8 GB (wave32, driver 616.56), Windows 11 Pro, Rust 1.100.0, Ryzen 9 5950X, 32 GB. - `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu::dxil::graphics::tests dependency_includes --test-threads=1`, 3 runs: head 28 passed, 0 failed each (the 3 `*_dependency_includes_*` tests included); base 25 passed, 0 failed each (the 3 tests do not exist there). With the PR's test file copied onto base: 0 passed, 3 failed. - `cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4`: head 1292 passed, 0 failed, 26 ignored; base 1289 passed, 0 failed, 26 ignored. - SKIPPED: 25 on both (21 no wave64, 3 f16 per-lane refused, 1 other). No nvlddmkm resets. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
Decodere commented 2026-11-27 04:15:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T04:15:27Z.


Independent desktop NVIDIA verification of PR #2035 at head 045a439ab37b27014e5b833a3edf1de3e118134b (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, Wave32-only Ada), 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 (045a439a)

Command Result
cargo test --release -p xcl --lib store_dependency_includes_the_address_input -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib store_dependency_includes_the_store_condition -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib atomic_dependency_includes_address_and_condition_inputs -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1326 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4 (3 consecutive runs) 186 passed; 0 failed; 3 ignored; 1138 filtered out × 3 (3.92s, 3.70s, 3.96s; 1 self-skipped: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole — no wave64 on Wave32-only Ada; 185 executed)
cargo build --release -p xcl Clean build (1m 11s, 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 #2035 (045a439ab37b27014e5b833a3edf1de3e118134b):

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

Runtime log observations (xcl.log)

  • 9220 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19636 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14016 MB committed by the process; video memory 6114 MB local, 4683 MB non-local.

Limits of coverage

  • Store address, store condition, and atomic address/condition propagation into direct DXIL dx.viewIdState / PSV0 dependency tables were directly verified via all 3 new gpu::dxil::graphics_tests cases (3/3 each) and gpu::dxil:: (185 executed, 0 failed, 1 Wave64-only test self-skipped on Wave32-only Ada).
  • The 60 s retail smoke confirms zero translation/validation or runtime regression on title: 29640639 (single-run frame/commit variance vs. cached parent reflects normal startup jitter, not this PR); direct-DXIL shader pipelines requiring view-ID cross-lane side-effect dependencies beyond the tested unit fixtures were not separately audited.

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

<!-- greyfinch-sync:ivall/xcl:comment:7209650602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7209650602). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T04:15:27Z. --- Independent desktop NVIDIA verification of **PR #2035** at head `045a439ab37b27014e5b833a3edf1de3e118134b` (`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, Wave32-only Ada), 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 (`045a439a`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib store_dependency_includes_the_address_input -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib store_dependency_includes_the_store_condition -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib atomic_dependency_includes_address_and_condition_inputs -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1326 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib gpu::dxil:: -- --test-threads=4` (3 consecutive runs) | `186 passed; 0 failed; 3 ignored; 1138 filtered out` × 3 (`3.92s`, `3.70s`, `3.96s`; `1` self-skipped: `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole` — `no wave64` on Wave32-only Ada; `185` executed) | | `cargo build --release -p xcl` | Clean build (`1m 11s`, 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 #2035 (`045a439ab37b27014e5b833a3edf1de3e118134b`): ``` xcl-smoke v1 commit: 045a439ab37b27014e5b833a3edf1de3e118134b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1610 (PresentX 1610) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14017 MB ``` ### Runtime log observations (`xcl.log`) - `9220` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19636 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14016 MB committed by the process; video memory 6114 MB local, 4683 MB non-local`. ### Limits of coverage - Store address, store condition, and atomic address/condition propagation into direct DXIL `dx.viewIdState` / `PSV0` dependency tables were directly verified via all 3 new `gpu::dxil::graphics_tests` cases (`3/3` each) and `gpu::dxil::` (`185` executed, `0` failed, `1` Wave64-only test self-skipped on Wave32-only Ada). - The 60 s retail smoke confirms zero translation/validation or runtime regression on `title: 29640639` (single-run frame/commit variance vs. cached parent reflects normal startup jitter, not this PR); direct-DXIL shader pipelines requiring view-ID cross-lane side-effect dependencies beyond the tested unit fixtures were not separately audited. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-28 10:35:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T10:35:29Z.


merge-check
base: e429936c10
head: 045a439ab3
merge: clean
build: cargo build --offline --locked -j 4 --workspace -> ok
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> 2,128 passed, 10 failed, 48 ignored; 25 GPU SKIPPED notices. The ten failures match the untouched current-main runs: dispatch_chain_oversized_loop_matches_whole, dispatch_chain_wave32_live_loops, dispatch_chain_wave64_live_loops_and_exchange, gpu_heap_flat_reads_match_guarded_and_root_output, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, test_title_draws_with_a_root_signature_under_the_debug_layer, test_title_runs_and_game_folder_is_untouched, and test_title_runs_under_the_debug_layer_with_dred. Focused gpu::dxil::graphics::tests: 28 passed, 0 failed, 0 ignored on the RTX 3080 Ti.
review: No blocker found in the full merged diff for the stated later-load dependency fix. Loads now include each same-root store or atomic write's address, value operands, and controlling branch, with the existing fixed-point traversal covering cycles. InstInfo::Atomic avoids treating an unrelated GEP as a write. A separate pre-existing gap remains when a shader exports an atomic instruction's returned old value directly: that value does not traverse prior stores. This PR does not claim to fix that path, and its new tests exercise loads after writes.
performance: Dependency construction can visit each write on a load's root and add address/control inputs; this is shader translation work, not a per-frame runtime path. The compile-time cost and any signature-size change were not measured here.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) ran the build and tests and reviewed the merged diff; Codex (GPT-6.2 Astra) independently reviewed the dependency and fixed-point paths.

<!-- greyfinch-sync:ivall/xcl:comment:7237995491 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7237995491). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T10:35:29Z. --- merge-check base: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd head: 045a439ab37b27014e5b833a3edf1de3e118134b merge: clean build: `cargo build --offline --locked -j 4 --workspace` -> ok tests: `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` -> 2,128 passed, 10 failed, 48 ignored; 25 GPU `SKIPPED` notices. The ten failures match the untouched current-main runs: `dispatch_chain_oversized_loop_matches_whole`, `dispatch_chain_wave32_live_loops`, `dispatch_chain_wave64_live_loops_and_exchange`, `gpu_heap_flat_reads_match_guarded_and_root_output`, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`, `gpu_compute_mode_dispatch_abi`, `gpu_float_cas_uses_ieee_equality`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, `test_title_runs_and_game_folder_is_untouched`, and `test_title_runs_under_the_debug_layer_with_dred`. Focused `gpu::dxil::graphics::tests`: 28 passed, 0 failed, 0 ignored on the RTX 3080 Ti. review: No blocker found in the full merged diff for the stated later-load dependency fix. Loads now include each same-root store or atomic write's address, value operands, and controlling branch, with the existing fixed-point traversal covering cycles. `InstInfo::Atomic` avoids treating an unrelated GEP as a write. A separate pre-existing gap remains when a shader exports an atomic instruction's returned old value directly: that value does not traverse prior stores. This PR does not claim to fix that path, and its new tests exercise loads after writes. performance: Dependency construction can visit each write on a load's root and add address/control inputs; this is shader translation work, not a per-frame runtime path. The compile-time cost and any signature-size change were not measured here. verdict: safe to merge hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) ran the build and tests and reviewed the merged diff; Codex (GPT-6.2 Astra) independently reviewed the dependency and fixed-point paths.
throny commented 2026-11-28 13:22:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:22:47Z.


merge-check claim
head: 045a439ab3

<!-- greyfinch-sync:ivall/xcl:comment:7239893684 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7239893684). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:22:47Z. --- merge-check claim head: 045a439ab37b27014e5b833a3edf1de3e118134b
throny commented 2026-11-28 13:38:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T13:38:28Z.


merge-check
base: e429936c
head: 045a439ab3
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2129 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored.
review: no blocker. Loads now depend on each same-root write's pointer and values and on the branch that controls its block; the new atomic case ends the old rule that treated any instruction rooted at a global as a write and left out the atomic's address. The other users of the changed enum on main have fallbacks, so it builds (and did). The dependency table is not a cache key; before, two programs that differed only in a store's address or condition got the same incomplete table. Minor and older than this PR: an atomic's returned value still does not depend on earlier stores.
performance: only when a shader is built with XCL_DIRECT_DXIL; direct-DXIL shaders are re-translated once, the HLSL identity does not change.
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:7240079511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2035#issuecomment-7240079511). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:38:28Z. --- merge-check base: e429936c head: 045a439ab37b27014e5b833a3edf1de3e118134b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2129 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (#3093), the same set with and without this PR; base alone: 2126 passed, 9 failed, 48 ignored. review: no blocker. Loads now depend on each same-root write's pointer and values and on the branch that controls its block; the new atomic case ends the old rule that treated any instruction rooted at a global as a write and left out the atomic's address. The other users of the changed enum on main have fallbacks, so it builds (and did). The dependency table is not a cache key; before, two programs that differed only in a store's address or condition got the same incomplete table. Minor and older than this PR: an atomic's returned value still does not depend on earlier stores. performance: only when a shader is built with XCL_DIRECT_DXIL; direct-DXIL shaders are re-translated once, the HLSL identity does not change. 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!2025
No description provided.