Repository navigation
Conversation
D3D12 refuses a pipeline that blends an integer target (E_INVALIDARG, debug layer message 676): mesh f5e50eb2108c425b + pixel ce3f0432a08f1d35 (R8_UINT at slot 2) were refused every run on an RTX 4090. The console leaves such a target unblended; the stream's blend state is now made to match (per-target blend states where it was one for all). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent NVIDIA datapoint for this PR: RTX 4080 16 GB, driver 621.01, Windows 10 22H2, The log has exactly your pair: 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. |
|
Disclosure correction for my comment above: HY4 Flash ( Rechecked against the log of that run (fork main This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine. |
PR: fxceless#715 Head: 1bc4884 Chosen over fxceless#501 and fxceless#51 (the same fix): it also keys the pipeline's name in the library on the host's blend. Note: it also turns LogicOpEnable off on integer slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
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