diff options
author | Roland Scheidegger <[email protected]> | 2010-01-25 16:33:09 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-01-25 16:33:09 +0100 |
commit | feefa7a510058f57a81e5e928cd2fcb63506624f (patch) | |
tree | 2380e83f92af41239fb2577cc3d5532383bfa9d7 /src/gallium/state_trackers/vega/api_masks.c | |
parent | 92676b9fe6356a8974830c47c0191d1ca57a0741 (diff) |
vega: adapt to blend changes
Diffstat (limited to 'src/gallium/state_trackers/vega/api_masks.c')
-rw-r--r-- | src/gallium/state_trackers/vega/api_masks.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/vega/api_masks.c b/src/gallium/state_trackers/vega/api_masks.c index 97cbe69205e..e6070c7353b 100644 --- a/src/gallium/state_trackers/vega/api_masks.c +++ b/src/gallium/state_trackers/vega/api_masks.c @@ -128,14 +128,11 @@ clear_with_quad(struct vg_context *st, float x0, float y0, { 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_R; - blend.colormask |= PIPE_MASK_G; - blend.colormask |= PIPE_MASK_B; - blend.colormask |= PIPE_MASK_A; + 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(st->cso_context, &blend); } |