From 1cfec6e2c8f15b2448e0297f4ca975ed7ab0c505 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 19 Aug 2012 01:38:07 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/r600/evergreen_state.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2