r600g: set CB_TARGET_MASK to 0xf and not 0xff for resolve on evergreen
authorMarek Olšák <maraeo@gmail.com>
Sat, 18 Aug 2012 23:38:07 +0000 (01:38 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 27 Aug 2012 02:30:59 +0000 (04:30 +0200)
independent_blend_enable must be true, so that the colormask isn't replicated
in all colorbuffers.

Reviewed-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/evergreen_state.c

index 396d2c19615b35a2cf33c579d53a658e902cabc3..4e86693be451144cb0cb23c4548129fa1e298baf 100644 (file)
@@ -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;