victory-shader: add forced-var propagation and UNSAT memoization to Bools::meet #947
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/947"
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?
Imported from Marvisak/VIctory. Originally posted by Sakura-Byte on 2026-11-24T14:25:37Z.
Summary
Bools::meetincrates/victory-shader/src/structure.rsto prevent exponential blowup on complex control-flow graphs.Verification
cargo xtask policyandcargo clippy --locked -- -D warnings: cleanAI-assisted; synthetic tests only, zero game assets.
Imported from Marvisak/VIctory. Originally posted by MichaelSmithAI on 2026-11-24T14:47:34Z.
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. Onffe310e, 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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:40:41Z.
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-shaderpasses, 124 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T16:26:30Z.
Review: APPROVED
Tested 80a235e on Windows 11, RTX 5070, MSVC: builds,
cargo test --workspace --no-fail-fast576 passed, 0 failed (on our fork main), with victory-shader single-threaded, including the three newmeet_*tests.I compared
victory translate shaders.rpf --list(the user's own package, counts only) on this PR merged into our fork's main against that main:On reading, the solver is sound:
restrictstops abovemax_v, which is correct, since variables increase downward in the ordered BDD.holdsis UNSAT, and a single non-constant reduced node is always satisfiable.failedis always a real UNSAT.extranode ids are stable for the life of oneMeet, so they are safe as memo keys.So the gain is the old search giving up rather than any loosening.
Nit: the description should say this changes which programs pass tracking, not only speed.
Merged into our fork's main.
AI-assisted (Claude Code).
upstream-sync referenced this pull request2026-11-24 20:02:21 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:28:24Z.
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.UNSAT memoization in
Bools::meetis in main (structure.rsmeet_inwithrefuted); 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