Recompiler: carry store address and control into direct DXIL signatures #2035
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2035
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2035"
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?
@luckyteagirl on GitHub · 2026-11-25 01:25 UTC · original
luckyteagirl:codex/dxil-store-deps→main· +99 −24 · 3 files · 1 commits · openPart 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 fromdx.viewIdStateand PSV0 signature dependencies. This PR propagates those dependencies for stores and atomics while retaining the fixed-point cyclic-PHI handling already onmain. 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
045a439ab37b27014e5b833a3edf1de3e118134bonmain6d12f58a229bc73889878a448c64dc3af25eeba0; Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.8.2502.11.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, 0SKIPPED(1,299 filtered out); logwork-store-deps/graphics-tests-rebased-045a439.log.cargo build --locked --release -p xcl -j 2passed in 3m 39s with no memory-guard stop; logwork-store-deps/release-build-rebased-045a439.log.git diff --check: clean..\scripts\test.ps1completed with 1,426 passed, 0 failed, 46 ignored; 25 explicit GPU skips on the wave32 adapter. Its threedependency_includesregressions 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-machinemainbaseline (1,605 frames, 15,009 MB). These are the independent reporter's results, not runs on our RX 6800M.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
mainbase (6d12f58; upstream tipe1d84b7differs only inREADME.md):This PR:
Not tested
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 on GitHub · 2026-11-25 04:28 UTC · original
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 on GitHub · 2026-11-25 15:07 UTC · original
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 on GitHub · 2026-11-25 15:16 UTC · original
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 on GitHub · 2026-11-25 23:53 UTC · original
Independent NVIDIA (wave32) test report on exact PR head
045a439ab37b27014e5b833a3edf1de3e118134b(clean detached checkout, no local changes).Tested
x86_64-pc-windows-msvc), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0); debug tests, release smoke.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)..\scripts\test.ps1): 1426 passed, 0 failed, 46 ignored (25 GPU skips expected on this wave32 adapter: 21no wave64, 1no heap windows, 3 wave32 per-lane refused for#1426f16/f32 semantics).cargo build --release -p xcl) and 60 s retail smoke run (XCL_NETWORK=0, compared againstmain @ 08db802baseline on the same machine today:1605frames,15009 MBpeak commit,0crashes,0device removals):Regression run
Not tested
XCL_SAMPLE_*tests (unset).AI use
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
@DavidM1911 on GitHub · 2026-11-26 07:05 UTC · original
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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.