Repository navigation
Recompiler: carry store address and control into direct DXIL signatures - #2035
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
df4be64 to
5473448
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
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. |
|
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. |
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.