diff options
author | Dave Airlie <[email protected]> | 2010-08-06 14:54:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-08-06 14:54:24 +1000 |
commit | b8de7788a4b20c702b06402e2e6eed60467e2522 (patch) | |
tree | 5bc3b00e6cf9ce1a2644bca1201b92ce3e6699b9 /src/gallium | |
parent | 2b9036476511edd549d1c2cea6044eef4652a19c (diff) |
r600g: fix targetmask to work correctly.
At least this seems to fix the glean maskedClear test.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 3 |
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 b8d50452e66..e43e4afe55e 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -1179,12 +1179,11 @@ static int r600_cb_cntl(struct r600_context *rctx, struct radeon_state *rstate) } else color_control |= (0xcc << 16); - target_mask |= (pbs->rt[0].colormask); for (i = 0; i < 8; i++) { if (pbs->rt[i].blend_enable) { color_control |= S_028808_TARGET_BLEND_ENABLE(1 << i); - target_mask |= (pbs->rt[0].colormask << (4 * i)); } + target_mask |= (pbs->rt[i].colormask << (4 * i)); } r = radeon_state_init(rstate, rscreen->rw, R600_CB_CNTL_TYPE, R600_CB_CNTL); if (r) |