aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/mask.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-12-01 17:38:57 +0800
committerChia-I Wu <[email protected]>2010-12-01 17:46:34 +0800
commit04f342b4170366e417aa0c414cc536337270d3ab (patch)
treea74be041b3e62d44211b146181f3b4d1fc8a7d97 /src/gallium/state_trackers/vega/mask.c
parentf8e0dd246b26281d31d4f37799985e27368ba2f4 (diff)
st/vega: Delay blend texture creation until needed.
It is used for more advanced blending or mask update. It might not be ever needed for some applications.
Diffstat (limited to 'src/gallium/state_trackers/vega/mask.c')
-rw-r--r--src/gallium/state_trackers/vega/mask.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/mask.c b/src/gallium/state_trackers/vega/mask.c
index e3aec980b53..0a800b2c10a 100644
--- a/src/gallium/state_trackers/vega/mask.c
+++ b/src/gallium/state_trackers/vega/mask.c
@@ -316,9 +316,8 @@ static void mask_using_texture(struct pipe_sampler_view *sampler_view,
views[0] = sampler_view;
/* prepare our blend surface */
- vg_prepare_blend_surface_from_mask(ctx);
samplers[1] = &ctx->mask.sampler;
- views[1] = ctx->draw_buffer->blend_texture_view;
+ views[1] = vg_prepare_blend_surface_from_mask(ctx);
fs = setup_mask_operation(operation);