summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-08-03 16:15:17 -0400
committerJerome Glisse <jglisse@redhat.com>2010-08-03 16:16:01 -0400
commit3a8d4a89795d180b910b2c0dfa98c57cf9bb45a6 (patch)
tree69216bb3bd080ebe9ccbeb7d1219baf0a46e84fd /src
parent6f9d3516a4f5b8abc9e8510dbccd93bf7874e6da (diff)
r600g: fix color target mask
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index f687d31e4b..f0abafd6c2 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -1182,8 +1182,7 @@ static struct radeon_state *r600_cb_cntl(struct r600_context *rctx)
if (pbs->rt[i].blend_enable) {
color_control |= (1 << (8 + i));
target_mask |= (pbs->rt[0].colormask << (4 * i));
- } else if (i == 0)
- target_mask |= 0xf;
+ }
}
rstate = radeon_state(rscreen->rw, R600_CB_CNTL_TYPE, R600_CB_CNTL);
rstate->states[R600_CB_CNTL__CB_SHADER_MASK] = 0x0000000F;