Repository navigation
Conversation
Translating the shaders the opening scene binds spent most of its time on answers it already had: - `Bools::meet` split cases without remembering the ones that failed, up to 65,536 allocating steps per question; the waterfall proofs asking it were 38% of all translation time. A state that failed is not searched again. Where the old search gave up and said yes, it now finishes: 196 of 22,081 translated programs change, each to what conjoining the diagrams exactly gives; none is newly refused. - The diagrams' tables were hash maps of three-word keys whose hash is weak in the bits that pick the bucket. The node table is now an open table of node numbers and the result table a direct-mapped cache; an implication is decided without building nodes. - A phi reached by a value with no DXIL form restarted the lowering, one phi at a time. A pass now finds every phi the missing values reach. Which of several reasons a refused shader reports can change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
catminou4
left a comment
There was a problem hiding this comment.
The lane-condition engine rewrite is verified the right way: lane_conditions_agree_with_their_truth_tables checks ite/implies/meet against brute-force truth tables over 512 lanes with 9 atoms and 1500 random diagrams (plus a uniqueness check on nodes), and conditions_that_exclude_each_other... exercises the 2^40 case-split that the old meet_in budget could never finish — the state-dedup (failed set over sorted State) is what makes it tractable, and the test proves the semantics survive. The implies rewrite building no nodes is asserted explicitly (b.nodes.len() unchanged). The lower.rs side batches Stop::Retry phis so one redo pass collects all missing joins instead of one per pass — same fixpoint, fewer passes.
Verified locally: test-merge with main clean; cargo test -p victory-shader --locked (macOS arm64, rustc 1.98.1) → 98 passed / 0 failed / 1 ignored, including both new structure tests. Approving.
…ng once Head 3ca9456 (TG0000). Conflicts: - structure.rs: #999's normalised ite and direct-mapped memo keep our node-overflow bail-out (no memo writes after it); our memo cap (MAX_MEMO) goes, the cache is bounded by itself. - lower.rs: missing_phis judges each edge as our fill_phis does: lazy barycentrics first, a loop's final value on edges from outside it (#269), and a descriptor's dword left undefined (descriptor_dword) instead of a redo. fill_phis keeps its own redo arms, one phi each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wers in pixel and vertex programs Head 986fa6d (undeadhuman37). Conflict in fill_phis: the edge keeps our lazy barycentrics and #269's loop finals, then #1073's ballot. #999's missing_phis (merged before) would redo such a phi before fill_phis ever reaches the ballot, so it now makes the ballots first and takes a mask dword that has one as a value. #1073's test passes the host target to emit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
Summary
Translating the shaders the opening scene binds spent most of its time on answers it already had. Three changes, in
structure.rsandemit/lower.rsonly:Bools::meetremembers failed states. It split cases without remembering the ones that failed, up to 65,536 allocating steps per question; the waterfall proofs asking it were about 38% of all translation time.Measured (RX 6800, Ryzen 9 5900X, Windows 11)
Runs alternated with the new build first, so driver-cache warming favoured main. Main's second title run was stopped early by a memory watchdog, after its backlog had cleared. No device removal in these runs. This helps a cold cache only: with a warm cache and in steady state, frame rate does not change.
Correctness
Verification
Rust 1.98.1 MSVC, base
ffe310e:cargo test --workspace --locked344 passed, 0 failed;cargo clippy --workspace --all-targets --locked -- -D warningsclean with and without--all-features; policy passes.Overlap
Bools::meettoo, with forced-variable propagation and memoised failures. Only one of the two searches is needed, and the two conflict. Items 2 and 3 here do not depend on which one is taken; I am happy to rebase onto victory-shader: add forced-var propagation and UNSAT memoization to Bools::meet #947 and keep only those.structure.rsas well.AI-assisted: written and measured by Claude Opus 5.5. No game data is in this PR.
🤖 Generated with Claude Code