Pipelines: no blending on integer render targets (mesh f5e50eb2108c425b refused on NVIDIA) #501
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!501
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-501"
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?
@Yorivel on GitHub · 2026-11-25 01:47 UTC · original
Yorivel:fix/integer-target-blend→main· +52 −0 · 2 files · 1 commits · openProblem
One mesh pipeline is refused with
E_INVALIDARGon every run on an RTX 4090:[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]. The D3D12 debug layer (VICTORY_D3D12_DEBUG=1) gives the reason:The title's stream enables blending for a target whose host format is an integer one. The console's hardware leaves an integer target unblended, and D3D12 refuses the whole pipeline instead.
Change
After the stream is read (
create_pipeline_state),GraphicsState::integer_targets_unblendedturnsBlendEnableoff for each render target of an integer format (*_UINT/*_SINT). If the stream has one blend state for all targets (IndependentBlendEnableoff), that state is first copied to all eight andIndependentBlendEnableis set, so the other targets keep their blending. Logic ops are untouched. Streams without such a target are not changed.Results (RTX 4090, driver 621.40, Windows 11, diag build)
host mesh pipeline shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]), and no other pipeline refusal appears.🤖 Generated with Claude Code
@Proudnoob4 on GitHub · 2026-11-25 01:51 UTC · original
Independent NVIDIA datapoint for this PR: RTX 4080 16 GB, driver 621.01, Windows 10 22H2,
fxcelessmaina803c87c+ upstream #175, diag build, 1,500 s world run.The log has exactly your pair:
shader translated stage="mesh" hash=f5e50eb2108c425b, then at 01:14:13Zhost mesh pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]. It was one of the host pipeline refusals in that run (alongside four refused compute pipelines), so its draws were dropped. I did not enableVICTORY_D3D12_DEBUG=1, so I cannot independently confirm the R8_UINT/blend-layer message; the refusal code and both shader hashes match your report on the 4090.If useful I can A/B this PR here after a warm cache, with the debug layer on.
AI-assisted (Claude Code, Claude Opus 5.5). Measured on my own machine; no game files.
@Proudnoob4 on GitHub · 2026-11-25 02:54 UTC · original
Disclosure correction for my comment above: HY4 Flash (
hy4-flash-free, a free model in OpenCode) wrote and posted it while my Claude Code session was out of usage (22:54Z to 02:40Z), so its footer naming Claude Opus 5.5 is wrong.Rechecked against the log of that run (fork main
a803c87c+ #175): the host refuses the mesh pipeline[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35], as stated. dudegio/VIctory-fx1 refuses the same pair on this card.This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.
@HoLa-Lee on GitHub · 2026-11-26 16:30 UTC · original
Independent NVIDIA verification of this fix, with the before/after on one card.
RTX 4080 SUPER, driver 616.87, Windows 11, 300 s of the intro either side of the change, same keys and seed (
VICTORY_FAST=1,VICTORY_TEXTURE_STAGE_MB=64,VICTORY_INDIRECT_GATHER=1):host mesh pipeline refusedlinesblending is off for those slots slots=[(2, 62)](62 =R8_UINT)And at the device, not just in the log: a test that builds the state directly and calls
CreateGraphicsPipelineStategetsE_INVALIDARGwith the blend on andOkwith it off - so the refusal is the blend and nothing else.The picture does not change: two runs with
VICTORY_CAPTUREon, 13 power-of-two frames each. Twelve are pixel-identical (mean absolute difference 0.0000 over 2,073,600 pixels); the thirteenth differs in 1.97% only because the two runs had reached different screens (Korean vs English legal-notice page), and the next differs in 228 pixels at glyph edges. So whatever that slot's blend was contributing is not visible in the frames we could capture.Two notes for the change itself:
mainsolved the same thing independently asa7cb47c(GPU: no blending on integer render targets in host pipelines (#1152)), with the sameIndependentBlendEnablehandling this PR has: "with one description for all targets, each target gets its own copy so the others keep theirs". Worth knowing before the two lines diverge.R9G9B9E5_SHAREDEXPis missing frominteger()and it cannot be blended either (D3D12: shared-exponent formats do not support blending). If a title stream ever puts one in a render target with its blend on, the sameE_INVALIDARGcomes back. One line to add.View 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.