@@ -220,13 +220,13 @@ bind_blend_state(struct exa_context *exa, int op, | |||
blend_for_op(&blend_opt, op, pSrcPicture, pMaskPicture, pDstPicture); | |||
memset(&blend, 0, sizeof(struct pipe_blend_state)); | |||
blend.blend_enable = 1; | |||
blend.colormask |= PIPE_MASK_RGBA; | |||
blend.rt[0].blend_enable = 1; | |||
blend.rt[0].colormask = PIPE_MASK_RGBA; | |||
blend.rgb_src_factor = blend_opt.rgb_src; | |||
blend.alpha_src_factor = blend_opt.rgb_src; | |||
blend.rgb_dst_factor = blend_opt.rgb_dst; | |||
blend.alpha_dst_factor = blend_opt.rgb_dst; | |||
blend.rt[0].rgb_src_factor = blend_opt.rgb_src; | |||
blend.rt[0].alpha_src_factor = blend_opt.rgb_src; | |||
blend.rt[0].rgb_dst_factor = blend_opt.rgb_dst; | |||
blend.rt[0].alpha_dst_factor = blend_opt.rgb_dst; | |||
cso_set_blend(exa->renderer->cso, &blend); | |||
} |
@@ -445,11 +445,11 @@ void renderer_copy_prepare(struct xorg_renderer *r, | |||
{ | |||
struct pipe_blend_state blend; | |||
memset(&blend, 0, sizeof(blend)); | |||
blend.rgb_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.alpha_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.colormask = PIPE_MASK_RGBA; | |||
blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.rt[0].colormask = PIPE_MASK_RGBA; | |||
cso_set_blend(r->cso, &blend); | |||
} | |||
@@ -403,14 +403,14 @@ bind_blend_state(struct xorg_xv_port_priv *port) | |||
struct pipe_blend_state blend; | |||
memset(&blend, 0, sizeof(struct pipe_blend_state)); | |||
blend.blend_enable = 1; | |||
blend.colormask |= PIPE_MASK_RGBA; | |||
blend.rt[0].blend_enable = 1; /* XXX why? */ | |||
blend.rt[0].colormask = PIPE_MASK_RGBA; | |||
/* porter&duff src */ | |||
blend.rgb_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.alpha_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE; | |||
blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO; | |||
cso_set_blend(port->r->cso, &blend); | |||
} |