Skip to content

Commit

Permalink
[dxvk] Clear color write mask if fragment shader output is undefined
Browse files Browse the repository at this point in the history
Fallout 76 writes undefined data to one specific render target
otherwise. Refs #779.
  • Loading branch information
doitsujin committed Dec 7, 2018
1 parent ef63328 commit 9572425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dxvk/dxvk_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9572425

Please sign in to comment.