GPU: no blending on integer render targets in host pipelines #2042
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2042
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2042"
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?
@Deilach on GitHub · 2026-11-25 04:01 UTC · original
Deilach:linux-integer-blend→main· +80 −3 · 2 files · 1 commits · openWhat
Host pipelines no longer enable blending on integer render targets (
_UINT/_SINT). Without independent blending, target 0's blend state is first copied to each target so that only the integer targets change. Pipelines without such a target are passed through unchanged.Why
One of the world's mesh pipelines enables blending on an
R8_UINTrender target. D3D12 leaves blending on integer formats undefined. The Windows driver accepts it, but vkd3d-proton (D3D12 on Vulkan, used by Wine/Proton on Linux) follows the rule and refuses the whole pipeline:So on Linux every draw using it was dropped, leaving world geometry missing in the distance. The console's colour blocks bypass blending for integer formats anyway, so turning it off on the host matches the console's behaviour.
Testing
On Linux (RX 9070 XT, RADV, Wine 11.22 + vkd3d-proton master):
translate --cache --pipelines: 1 pipeline refused before, 0 after.pipeline::host::tests::integer_targets_do_not_blend.cargo clippy --workspace --all-targets [--all-features] -- -D warningsis clean.victory-gpuandvictory-shadertests under Wine: same results asmainplus the new test. The 75 tests that need WARP ordxil.dllfail in Wine onmaintoo.I haven't tested this on Windows. It only changes pipelines that blend into integer targets, where the Windows result was already undefined.
🤖 Generated with Claude Code
One of the title's world mesh pipelines blends into an R8_UINT render target. D3D12 leaves blending on integer formats undefined, and vkd3d-proton (D3D12 under Wine/Proton) refuses such a pipeline when the pixel shader writes the target ("Enabling blending on RT 2 with format DXGI_FORMAT_R8_UINT, but using integer format is not supported", E_INVALIDARG), so on Linux its draws were dropped: missing world geometry in the distance. The console's colour blocks bypass blending for integer formats, so the host is now given blending off on integer targets, target 0's state spread to each first when blending is not independent. Pipelines with no integer target that blends keep the title's state as it is. The pipeline pre-build on vkd3d-proton (RX 9070 XT, RADV): 1 pipeline refused before, 0 after; the world mesh pipeline is made in a run. Co-Authored-By: Claude Opus 5.5 <[email protected]>@jeremygold02 on GitHub · 2026-11-25 04:06 UTC · original
Triage verdict — Confirmed duplicate of #1152 (
605e1af)Evidence
Checks and limits
Next step
This verification was AI-assisted.
@upipibi on GitHub · 2026-11-25 04:41 UTC · original
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at
605e1af.victory-gpu: 142 passed, 2 failed, 2 ignored; the newinteger_targets_do_not_blendpasses. The 2 failures are #1744's heap-cap failures onmain. Same asmainon this hardware.Overlap, from reading: #1152 (open, MERGEABLE, triaged as a merge candidate) makes the same change in
pipeline/host.rs. It turns blending off on_UINT/_SINTtargets, and whenIndependentBlendEnableis off it first copies target 0's state to each target. The difference: this PR reusestwin::integerfor the format check, while #1152 adds its own list of 25 formats. Only one of the two needs to merge.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 09:19 UTC · original
Automated triage for the maintainers.
Proposed close. This duplicates #1152, an earlier open PR for #806 that merges cleanly into current
main. #1152 makes the same change incrates/victory-gpu/src/pipeline/host.rs: ahost_blendthat turns blending off on_UINT/_SINTrender targets and first copies target 0's state to every target whenIndependentBlendEnableis off. It applies it to both the graphics and mesh pipeline paths, and its tests cover more cases (blend states that need no change are kept as they are).The independent Linux evidence here confirms the problem and the fix, thank you. One idea worth carrying over to #1152 is reusing
twin::integer(madepub(crate)here) instead of a second format list.Smaller issue in this version:
host_blendwas inserted betweendescribe's doc comment anddescribe. That giveshost_blendboth doc comments and leavesdescribewith none.This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.
CI: not run on this head (no check runs reported).
Generated by Claude Code
0x80070057/ D3D12id=676):BlendOp=MAXenabled onDXGI_FORMAT_R8_UINTRT slot 2 ([mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]) #2775View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.