victory-shader: add forced-var propagation and UNSAT memoization to Bools::meet #947

Closed
github-bot wants to merge 1 commit from gh-pr/947/head into gh-pr/947/base
Owner

@⁠Sakura-Byte on GitHub · 2026-11-24 14:25 UTC · original
Sakura-Byte:pr/bdd-meet-forced-vars → main · +392 −26 · 1 files · 1 commits · closed without merging

Summary

  • Add forced-variable propagation and UNSAT memoization to Bools::meet in crates/victory-shader/src/structure.rs to prevent exponential blowup on complex control-flow graphs.
  • Include synthetic unit tests exercising forced-var propagation and UNSAT memoization.

Verification

  • cargo xtask policy and cargo clippy --locked -- -D warnings: clean
  • Verified on Windows 11 (NVIDIA GeForce RTX 5090 D & WARP)

AI-assisted; synthetic tests only, zero game assets.

**@⁠Sakura-Byte** on GitHub · 2026-11-24 14:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/947) `Sakura-Byte:pr/bdd-meet-forced-vars` → `main` · +392 −26 · 1 files · 1 commits · closed without merging ### Summary - Add forced-variable propagation and UNSAT memoization to `Bools::meet` in `crates/victory-shader/src/structure.rs` to prevent exponential blowup on complex control-flow graphs. - Include synthetic unit tests exercising forced-var propagation and UNSAT memoization. ### Verification - `cargo xtask policy` and `cargo clippy --locked -- -D warnings`: clean - Verified on Windows 11 (NVIDIA GeForce RTX 5090 D & WARP) *AI-assisted; synthetic tests only, zero game assets.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:40 +00:00
github-bot closed this pull request 2026-11-26 04:14:41 +00:00
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 14:47 UTC · original

A live compute readback on RTX 4090 under Wine/vkd3d-proton 3.2 checked which buffer the shader actually reads after the descriptor values join. On 80a235e, the shader validated and the first two output words were 100 and 101 from the expected buffer. The other 30 words stayed zero. On ffe310e, the same fixture stopped during resource tracking at byte 656, before shader emission.

All three focused Win64 tests passed, including the two existing diamond-chain controls. The Linux shader suite passed 100 tests with one ignored. This shows the solver change admits this source-built shader and preserves its live descriptor choice. Translation time and the number of affected title shaders remain unmeasured.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 14:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/947#issuecomment-7134954524) A live compute readback on RTX 4090 under Wine/vkd3d-proton 3.2 checked which buffer the shader actually reads after the descriptor values join. On `80a235e`, the shader validated and the first two output words were 100 and 101 from the expected buffer. The other 30 words stayed zero. On `ffe310e`, the same fixture stopped during resource tracking at byte 656, before shader emission. All three focused Win64 tests passed, including the two existing diamond-chain controls. The Linux shader suite passed 100 tests with one ignored. This shows the solver change admits this source-built shader and preserves its live descriptor choice. Translation time and the number of affected title shaders remain unmeasured.
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 15:40 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 80a235e: cargo test -p victory-shader passes, 124 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 15:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/947#issuecomment-7136427833) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 80a235e: `cargo test -p victory-shader` passes, 124 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:28 UTC · original

Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

UNSAT memoization in Bools::meet is in main (structure.rs meet_in with refuted); the extra forced-variable propagation comes with no measurement.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/947#issuecomment-7148545323) Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. UNSAT memoization in `Bools::meet` is in main (structure.rs `meet_in` with `refuted`); the extra forced-variable propagation comes with no measurement. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!947
No description provided.