Repository navigation
Recompiler: carry store address and control into direct DXIL signatures - #2035
Draft
luckyteagirl wants to merge 1 commit into
Draft
luckyteagirl wants to merge 1 commit into
luckyteagirl wants to merge 1 commit into
Conversation
Track each memory write's pointer, value, and control block when computing input-to-output dependencies for dx.viewIdState and PSV0. Preserve the fixed-point traversal merged in xcl-dev#1966. The direct-DXIL source hash from xcl-dev#1947 accounts for the changed output without a manual version bump. Refs xcl-dev#1892
luckyteagirl
force-pushed
the
codex/dxil-store-deps
branch
from
November 25, 2026 02:37
df4be64 to
5473448
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1892 (its second point).
compute_deps()counted the value written to an alloca/TGSM root, but missed which address was written and which branch controlled the write. A later load could therefore omit an input dependency from itsdx.viewIdStateand PSV0 signature tables. This PR includes both for stores and atomics. It is rebased ontomainafter #1966 merged the cyclic-PHI fix, and retains that fixed-point traversal.What is in it
graphics.rs: propagate each write's pointer, value operands, and enclosing block's control dependencies to loads of the same root.module.rs: distinguish atomic writes from other value operations so GEPs and other operations are not treated as writes.graphics_tests.rs: three focused regressions for store address, store condition, and atomic address/control. The two store cases failed on the original main base400e638and all three passed on the rebased head. The direct-DXIL source hash from Recompiler: direct DXIL cache entries change when its sources do #1947 handles cache identity; this revision needs no manual translator-version bump.Tested
5473448c57eb13b721d44ba8cf175f4513febbe9on maincbc296ab65a2661a61e3e2da109134bcd5319f60. Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M driver30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.cargo test --locked -p xcl --lib -j 2 gpu::dxil::graphics::tests -- --test-threads=1 --show-outputwithXCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1, andXCL_DIRECT_DXIL=1: 28 passed, 0 failed, 0 ignored, no explicit skips. This includes the three regressions, DXIL validation comparisons, the merged loop regression, and four emitted GPU draw tests.cargo build --locked --workspace -j 2,cargo build --locked --release -p xcl -j 2, andgit diff --check origin/main...HEAD: passed.cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output: 996 passed, 161 failed, 46 ignored across the completed binaries. All 161 named failures weregpu::tests after the RX 6800M device was suspended (0x887A0005). Nine explicitSKIPPEDmessages included no GPU/device, unavailable D3D12 debug layer, no reserved cube with mips, and no heap windows. I did not run an equivalent full-suite baseline on this new main commit, so the failures are reported without attributing them to this PR.scripts/smoke.ps1runs on the RX 6800M. Each revision showed one frame, with no crash or device removal. Peak process commit was 6,911 MB on main and 7,060 MB on the PR.Regression run
main:
PR head:
Not tested
XCL_DIRECT_DXIL=alltitle attempt on the pre-rebase head was stopped by a local memory guard and is not counted as a smoke result.AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) implemented and rebased the change, ran the tests and smoke comparisons, reviewed the logs, and drafted this description.