vkd3d: Explicitly use NULL RTV mask for dual source blending.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2022-03-23 14:07:08 +01:00
parent 09682f8417
commit 03427c6ee6
1 changed files with 3 additions and 0 deletions

View File

@ -3173,6 +3173,9 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
* Be defensive about programs which do not do this for us. */
memset(graphics->blend_attachments + 1, 0,
sizeof(graphics->blend_attachments[0]) * (ARRAY_SIZE(graphics->blend_attachments) - 1));
/* Only allow RT 0 to be active for dual source blending. */
graphics->rtv_active_mask &= 1u << 0;
}
graphics->xfb_enabled = false;