Host mesh pipeline refused (0x80070057 / D3D12 id=676): BlendOp=MAX enabled on DXGI_FORMAT_R8_UINT RT slot 2 ([mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]) #2775

Open
opened 2026-11-26 05:13:56 +00:00 by github-bot · 1 comment
Owner

@⁠SomePlebb on GitHub · 2026-11-25 20:13 UTC · original

Summary

During world load in Series 1.0.2.1 (b99f876b74d4a77f...), host mesh PSO creation for [mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35] fails with E_INVALIDARG (0x80070057) and drops all draws using that pipeline.

Running with VICTORY_D3D12_DEBUG=1 and VICTORY_PIPELINE_LOG shows the title creates this pipeline with IndependentBlendEnable = TRUE and BlendEnable = TRUE (BlendOp = D3D12_BLEND_OP_MAX, SrcBlend = ONE, DestBlend = ONE, RenderTargetWriteMask = 1) on RT slot 2, whose format is DXGI_FORMAT_R8_UINT (62). While console/RDNA2 supports MIN/MAX blending on integer formats, desktop D3D12 rejects BlendEnable = TRUE on any *_UINT/*_SINT render target (id=676).

Scanning the full VICTORY_PIPELINE_LOG (81,700+ entries through world entry) shows this is the only pipeline enabling blending on an integer RTV format.

System & Environment

  • OS: Windows 11 25H2 x64 (Build 10.0.26200)
  • CPU: AMD Ryzen 5 9600X (6-Core)
  • RAM: 32 GB
  • GPU: AMD Radeon RX 6600 (8 GB, RDNA2)
  • GPU Driver: AMD Software: Adrenalin Edition 26.11.2 (32.0.21045.29003)
  • VIctory commit: 67e8ae1 (clean working tree, target\diag\victory.exe)
  • Title: Series 1.0.2.1 (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)

Log Output (VICTORY_D3D12_DEBUG=1)

WARN victory_gpu::pipeline::host: host mesh pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]
WARN victory_gpu::host: D3D12: ID3D12Device::CreateGraphicsPipelineState: The render target format at slot 2 is format (R8_UINT).  This format does not support blending. The Pixel Shader output signature indicates this output could be written, and the Blend State indicates blending is enabled for this slot. id=676 severity=1
WARN victory_gpu::host: D3D12: ID3D12Device::CreateGraphicsPipelineState: Pixel Shader output 'SV_Target2' has type that is NOT float, while the corresponding Output Merger RenderTarget slot [2] has blending enabled. This happens to be well defined: the raw bits output from the shader will simply be interpreted as float bits in the blender without any data conversion. This warning is to check that the application developer really intended to rely on this behavior. id=677 severity=2

Pipeline State (VICTORY_PIPELINE_LOG, line 81704)

  • PSO hash: 857787903a089873a6fdcdbac77df8a9
  • Shaders: [mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]
  • Targets (NumRenderTargets = 3, DSVFormat = 0, SampleDesc = {1, 0}):
    • RT0: DXGI_FORMAT_R32_FLOAT (41) — BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ZERO(1), OpA=ADD(1), Mask=15
    • RT1: DXGI_FORMAT_B4G4R4A4_UNORM (115) — BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ONE(2), OpA=MAX(5), Mask=15
    • RT2: DXGI_FORMAT_R8_UINT (62) — BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ZERO(1), OpA=ADD(1), Mask=1
  • Blend / Raster / Depth: IndependentBlendEnable = 1, FillMode = SOLID(3), CullMode = NONE(1), FrontCounterClockwise = 1, DepthEnable = 0, StencilEnable = 0

Code Location & Suggested Fix

In crates/victory-gpu/src/pipeline/host.rs:

  • Subobject 15 (RTFormats) is converted via crate::resource::pc_format around lines 156–161.
  • Host mesh PSO creation (mesh_pipeline(...)) runs and logs the refusal at lines 578–585 (parallel graphics PSO path at lines 632–660).

Sanitizing g.blend before host PSO creation—forcing BlendEnable = FALSE on any active RTV slot with a non-blendable integer format (*_UINT / *_SINT) and enabling IndependentBlendEnable = TRUE if other slots remain blended—would let the PSO create on desktop D3D12 instead of dropping the mesh pass (with the caveat that slot 2 would overwrite rather than MAX-blend).

**@⁠SomePlebb** on GitHub · 2026-11-25 20:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/2775) ### Summary During world load in Series 1.0.2.1 (`b99f876b74d4a77f...`), host mesh PSO creation for `[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]` fails with `E_INVALIDARG (0x80070057)` and drops all draws using that pipeline. Running with `VICTORY_D3D12_DEBUG=1` and `VICTORY_PIPELINE_LOG` shows the title creates this pipeline with `IndependentBlendEnable = TRUE` and `BlendEnable = TRUE` (`BlendOp = D3D12_BLEND_OP_MAX`, `SrcBlend = ONE`, `DestBlend = ONE`, `RenderTargetWriteMask = 1`) on RT slot 2, whose format is `DXGI_FORMAT_R8_UINT` (62). While console/RDNA2 supports `MIN`/`MAX` blending on integer formats, desktop D3D12 rejects `BlendEnable = TRUE` on any `*_UINT`/`*_SINT` render target (`id=676`). Scanning the full `VICTORY_PIPELINE_LOG` (81,700+ entries through world entry) shows this is the only pipeline enabling blending on an integer RTV format. ### System & Environment * **OS:** Windows 11 25H2 x64 (Build `10.0.26200`) * **CPU:** AMD Ryzen 5 9600X (6-Core) * **RAM:** 32 GB * **GPU:** AMD Radeon RX 6600 (8 GB, RDNA2) * **GPU Driver:** AMD Software: Adrenalin Edition 26.11.2 (`32.0.21045.29003`) * **VIctory commit:** `67e8ae1` (clean working tree, `target\diag\victory.exe`) * **Title:** Series 1.0.2.1 (`b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`) ### Log Output (`VICTORY_D3D12_DEBUG=1`) ```text WARN victory_gpu::pipeline::host: host mesh pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35] WARN victory_gpu::host: D3D12: ID3D12Device::CreateGraphicsPipelineState: The render target format at slot 2 is format (R8_UINT). This format does not support blending. The Pixel Shader output signature indicates this output could be written, and the Blend State indicates blending is enabled for this slot. id=676 severity=1 WARN victory_gpu::host: D3D12: ID3D12Device::CreateGraphicsPipelineState: Pixel Shader output 'SV_Target2' has type that is NOT float, while the corresponding Output Merger RenderTarget slot [2] has blending enabled. This happens to be well defined: the raw bits output from the shader will simply be interpreted as float bits in the blender without any data conversion. This warning is to check that the application developer really intended to rely on this behavior. id=677 severity=2 ``` ### Pipeline State (`VICTORY_PIPELINE_LOG`, line 81704) * **PSO hash:** `857787903a089873a6fdcdbac77df8a9` * **Shaders:** `[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]` * **Targets (`NumRenderTargets = 3`, `DSVFormat = 0`, `SampleDesc = {1, 0}`):** * **RT0:** `DXGI_FORMAT_R32_FLOAT` (`41`) — `BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ZERO(1), OpA=ADD(1), Mask=15` * **RT1:** `DXGI_FORMAT_B4G4R4A4_UNORM` (`115`) — `BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ONE(2), OpA=MAX(5), Mask=15` * **RT2:** `DXGI_FORMAT_R8_UINT` (`62`) — `BlendEnable=1, Src=ONE(2), Dst=ONE(2), Op=MAX(5), SrcA=ONE(2), DstA=ZERO(1), OpA=ADD(1), Mask=1` * **Blend / Raster / Depth:** `IndependentBlendEnable = 1`, `FillMode = SOLID(3)`, `CullMode = NONE(1)`, `FrontCounterClockwise = 1`, `DepthEnable = 0`, `StencilEnable = 0` ### Code Location & Suggested Fix In `crates/victory-gpu/src/pipeline/host.rs`: * Subobject 15 (`RTFormats`) is converted via `crate::resource::pc_format` around lines 156–161. * Host mesh PSO creation (`mesh_pipeline(...)`) runs and logs the refusal at lines 578–585 (parallel graphics PSO path at lines 632–660). Sanitizing `g.blend` before host PSO creation—forcing `BlendEnable = FALSE` on any active RTV slot with a non-blendable integer format (`*_UINT` / `*_SINT`) and enabling `IndependentBlendEnable = TRUE` if other slots remain blended—would let the PSO create on desktop D3D12 instead of dropping the mesh pass (with the caveat that slot 2 would overwrite rather than `MAX`-blend).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:13:56 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 21:45 UTC · original

Automated triage for the maintainers.

The defect is real on main 61bfc77. In crates/victory-gpu/src/pipeline/host.rs, GraphicsState::read copies the title's blend description as is (subobject 8), and both the graphics path and mesh_pipeline pass g.blend to the host unchanged. Nothing turns blending off on *_UINT/*_SINT targets.

This is the same defect, and the same pipeline ([mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35], R8_UINT on RT 2), as the older open issue #806. That issue was found under vkd3d-proton. Open PRs that turn blending off on integer targets: #1152 (fixes #806), #2042, #2790 and #2801 (written for this issue). The new information here is that native Windows on an AMD RX 6600 (Adrenalin 26.11.2) also refuses the pipeline. #806 assumed Windows drivers accept it, so this data point belongs there.

I propose closing this as a duplicate of #806. It will be closed in 48 hours unless the reporter replies or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/2775#issuecomment-7175496064) <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-25T20:13:27Z at=2026-11-25T21:46:00Z --> Automated triage for the maintainers. The defect is real on main 61bfc77. In `crates/victory-gpu/src/pipeline/host.rs`, `GraphicsState::read` copies the title's blend description as is (subobject 8), and both the graphics path and `mesh_pipeline` pass `g.blend` to the host unchanged. Nothing turns blending off on `*_UINT`/`*_SINT` targets. This is the same defect, and the same pipeline (`[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]`, R8_UINT on RT 2), as the older open issue #806. That issue was found under vkd3d-proton. Open PRs that turn blending off on integer targets: #1152 (fixes #806), #2042, #2790 and #2801 (written for this issue). The new information here is that native Windows on an AMD RX 6600 (Adrenalin 26.11.2) also refuses the pipeline. #806 assumed Windows drivers accept it, so this data point belongs there. I propose closing this as a duplicate of #806. It will be closed in 48 hours unless the reporter replies or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2775
No description provided.