Game: name disabled blend states with separate alpha factors #3499
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3499"
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 steven-seagull27 on 2026-11-27T10:33:22Z.
Related to #2930.
When a render target has blending disabled, its register image can lose the RGB and alpha factors that the compact pipeline description still includes.
blend_targetalready considers source-alpha interpolation for RGB. This adds two alpha equations for the same RGB case: copy the source alpha (ONE, ZERO) or add it to the destination alpha (ONE, ONE). A candidate still has to match the requested CityHash64 before it can name a state.The generated regression exercises a shared blend description and an independent two-target description with different write masks. It fails on
63bcca43and passes with this commit. All 16victory-gametests, strict crate Clippy, andcargo xtask policypassed on Windows.This change is independent of the rasterizer and depth-stencil work in #3047 and #3048.
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T10:51:09Z.
Independent local verification of PR #3499 at head
695471af5942bc7c5b1ba3eb0881c5efc667bd22(merge base63bcca43c6a00a758510398fa43096ce7e4f7df0).cargo test --locked, per-worktreeCARGO_TARGET_DIR=D:\Victory-Contrib\target-3499-watch,CARGO_BUILD_JOBS=2.cargo test --locked -p victory-game --lib -- pipelines::tests::disabled_blends_keep_their_separate_alpha_factors --exact --test-threads=1 --quiettest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 15 filtered out, exit 0.git grepexit 1) and present on the PR head.git diff --check 63bcca4 HEADclean.Only the named CPU/synthetic test was replayed; the full crate suite and GPU paths were not run. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only). No game data, assets, extracted shaders, DRM or decrypt used.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:51:37Z.
I combined your exact
695471awith #37230478400and #371313a711ain integration commit1f2fa97. The merge is clean and preserves all three commits and their authors.The disabled-blend alpha regression passed in both its shared and independent cases. Across 128 generated shapes, the blend enumerator produced the same 308,832 descriptors in the same order as your head. The register search also matched the named states, source labels, and unresolved sets in all four generated cases. In the 256-record control with distinct keys and both state kinds pending, the combined search took 54–59 ms versus 126–135 ms on your head across two optimized Windows runs.
All 16 game tests, strict Clippy, and the asset policy passed. @steven-seagull27, the combination is available for merge coordination. Please retain the Git authors if folding or rebasing the changes.
AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.