From: Marek Olšák Date: Sat, 18 Aug 2012 23:38:07 +0000 (+0200) Subject: r600g: set CB_TARGET_MASK to 0xf and not 0xff for resolve on evergreen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cfec6e2c8f15b2448e0297f4ca975ed7ab0c505;p=mesa.git r600g: set CB_TARGET_MASK to 0xf and not 0xff for resolve on evergreen independent_blend_enable must be true, so that the colormask isn't replicated in all colorbuffers. Reviewed-by: Jerome Glisse --- diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 396d2c19615..4e86693be45 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -3074,6 +3074,7 @@ void *evergreen_create_resolve_blend(struct r600_context *rctx) struct r600_pipe_state *rstate; memset(&blend, 0, sizeof(blend)); + blend.independent_blend_enable = true; blend.rt[0].colormask = 0xf; rstate = evergreen_create_blend_state_mode(&rctx->context, &blend, V_028808_CB_RESOLVE); return rstate;