summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-12-19 10:49:16 +0000
committerKeith Whitwell <[email protected]>2007-12-19 11:10:35 +0000
commit4fd2a2ac6f6593487d59fac2d8c0365179509ae5 (patch)
treef1cff5d354841fd4269373e2aa852b814a7e1e3c /src
parent9791c16b317d1536ba5c2d67398d17b80da2f015 (diff)
965: fix colormask state
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/i965simple/brw_wm_surface_state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/i965simple/brw_wm_surface_state.c b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
index db8f670970f..0f851dd1ed4 100644
--- a/src/mesa/pipe/i965simple/brw_wm_surface_state.c
+++ b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
@@ -221,10 +221,10 @@ static void upload_wm_surfaces(struct brw_context *brw )
brw->attribs.Blend->blend_enable);
- surf.ss0.writedisable_red = !brw->attribs.BlendColor.color[0];
- surf.ss0.writedisable_green = !brw->attribs.BlendColor.color[1];
- surf.ss0.writedisable_blue = !brw->attribs.BlendColor.color[2];
- surf.ss0.writedisable_alpha = !brw->attribs.BlendColor.color[3];
+ surf.ss0.writedisable_red = !(brw->attribs.Blend->colormask & PIPE_MASK_R);
+ surf.ss0.writedisable_green = !(brw->attribs.Blend->colormask & PIPE_MASK_G);
+ surf.ss0.writedisable_blue = !(brw->attribs.Blend->colormask & PIPE_MASK_B);
+ surf.ss0.writedisable_alpha = !(brw->attribs.Blend->colormask & PIPE_MASK_A);