summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-30 17:40:44 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commit1a6bb266cf87b6ea5aad7bda43d22b49bb664630 (patch)
tree84121d0a2d614c2c9e59086dfe0bbccd86fc0dc3 /src/gallium/drivers/iris
parent50a2596f46c281a4ef9516b41e254b89d856f0e0 (diff)
iris: write DISABLES are not write ENABLES...whoops
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 68607bf11f8..ae07c3a0518 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -443,10 +443,10 @@ iris_create_blend_state(struct pipe_context *ctx,
be.DestinationBlendFactor = state->rt[i].rgb_dst_factor;
be.DestinationAlphaBlendFactor = state->rt[i].alpha_dst_factor;
- be.WriteDisableRed = state->rt[i].colormask & PIPE_MASK_R;
- be.WriteDisableGreen = state->rt[i].colormask & PIPE_MASK_G;
- be.WriteDisableBlue = state->rt[i].colormask & PIPE_MASK_B;
- be.WriteDisableAlpha = state->rt[i].colormask & PIPE_MASK_A;
+ be.WriteDisableRed = !(state->rt[i].colormask & PIPE_MASK_R);
+ be.WriteDisableGreen = !(state->rt[i].colormask & PIPE_MASK_G);
+ be.WriteDisableBlue = !(state->rt[i].colormask & PIPE_MASK_B);
+ be.WriteDisableAlpha = !(state->rt[i].colormask & PIPE_MASK_A);
}
blend_state += GENX(BLEND_STATE_ENTRY_length);
}