summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-05 19:57:59 +0000
committerKeith Whitwell <[email protected]>2009-11-05 19:57:59 +0000
commit8f0e51be4784273baef692583940964bc04b78ef (patch)
tree04101057bc8ff19af9efa365224b0f7704f00b8c /src
parentb229ee342f2cef5396a251525d5b499760280933 (diff)
i965g: correct sense of writedisable flags
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_blend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_blend.c b/src/gallium/drivers/i965/brw_pipe_blend.c
index f6da9254ef1..872151222d5 100644
--- a/src/gallium/drivers/i965/brw_pipe_blend.c
+++ b/src/gallium/drivers/i965/brw_pipe_blend.c
@@ -146,10 +146,10 @@ static void *brw_create_blend_state( struct pipe_context *pipe,
/* Per-surface color mask -- just follow global state:
*/
- blend->ss0.writedisable_red = (templ->colormask & PIPE_MASK_R) ? 1 : 0;
- blend->ss0.writedisable_green = (templ->colormask & PIPE_MASK_G) ? 1 : 0;
- blend->ss0.writedisable_blue = (templ->colormask & PIPE_MASK_B) ? 1 : 0;
- blend->ss0.writedisable_alpha = (templ->colormask & PIPE_MASK_A) ? 1 : 0;
+ blend->ss0.writedisable_red = (templ->colormask & PIPE_MASK_R) ? 0 : 1;
+ blend->ss0.writedisable_green = (templ->colormask & PIPE_MASK_G) ? 0 : 1;
+ blend->ss0.writedisable_blue = (templ->colormask & PIPE_MASK_B) ? 0 : 1;
+ blend->ss0.writedisable_alpha = (templ->colormask & PIPE_MASK_A) ? 0 : 1;
return (void *)blend;
}