[Mesa-dev] [PATCH 2/7] r600g: set CB_TARGET_MASK to 0xf and not 0xff for resolve on evergreen
Marek Olšák
maraeo at gmail.com
Wed Aug 22 18:54:13 PDT 2012
independent_blend_enable must be true, so that the colormask isn't replicated
in all colorbuffers.
---
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 396d2c1..4e86693 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;
--
1.7.9.5
More information about the mesa-dev
mailing list