Home | History | Annotate | Download | only in vega

Lines Matching full:blend

382  * Set renderer blend state.  Blending is disabled.
384 * This function modifies blend state.
389 struct pipe_blend_state blend;
391 memset(&blend, 0, sizeof(blend));
393 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
394 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
395 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
396 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
399 blend.rt[0].colormask |= PIPE_MASK_R;
401 blend.rt[0].colormask |= PIPE_MASK_G;
403 blend.rt[0].colormask |= PIPE_MASK_B;
405 blend.rt[0].colormask |= PIPE_MASK_A;
407 cso_set_blend(r->cso, &blend);
1265 struct pipe_blend_state blend;
1267 memset(&blend, 0, sizeof(blend));
1268 blend.rt[0].colormask = PIPE_MASK_RGBA;
1269 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
1270 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
1271 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
1272 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
1278 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
1279 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
1280 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
1281 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
1284 /* use the blend state only when there is no alpha channel */
1286 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_SRC_ALPHA;
1287 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ONE;
1288 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_INV_SRC_ALPHA;
1289 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_INV_SRC_ALPHA;
1290 blend.rt[0].blend_enable = 1;
1294 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ONE;
1295 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_DST_ALPHA;
1296 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ZERO;
1297 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_ZERO;
1298 blend.rt[0].blend_enable = 1;
1301 blend.rt[0].rgb_src_factor = PIPE_BLENDFACTOR_ZERO;
1302 blend.rt[0].alpha_src_factor = PIPE_BLENDFACTOR_ZERO;
1303 blend.rt[0].rgb_dst_factor = PIPE_BLENDFACTOR_ONE;
1304 blend.rt[0].alpha_dst_factor = PIPE_BLENDFACTOR_SRC_ALPHA;
1305 blend.rt[0].blend_enable = 1;
1316 assert(!"not implemented blend mode");
1320 cso_set_blend(renderer->cso, &blend);