[dxvk] Clear color write mask if fragment shader output is undefined

Fallout 76 writes undefined data to one specific render target
otherwise. Refs #779.
This commit is contained in:
Philip Rebohle 2018-12-07 13:43:27 +01:00
parent ef63328eb8
commit 9572425912
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,9 @@ namespace dxvk {
state.omBlendAttachments[i].colorWriteMask,
state.omComponentMapping[i]);
if ((m_fsOut & (1 << i)) == 0)
omBlendAttachments[i].colorWriteMask = 0;
specData.outputMappings[4 * i + 0] = util::getComponentIndex(state.omComponentMapping[i].r, 0);
specData.outputMappings[4 * i + 1] = util::getComponentIndex(state.omComponentMapping[i].g, 1);
specData.outputMappings[4 * i + 2] = util::getComponentIndex(state.omComponentMapping[i].b, 2);