summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/shader.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/shader.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/shader.c')
-rw-r--r--src/gallium/state_trackers/vega/shader.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/vega/shader.c b/src/gallium/state_trackers/vega/shader.c
index 483ff15098f..3d397f9ed4c 100644
--- a/src/gallium/state_trackers/vega/shader.c
+++ b/src/gallium/state_trackers/vega/shader.c
@@ -137,12 +137,8 @@ static VGint blend_bind_samplers(struct vg_context *ctx,
bmode == VG_BLEND_SCREEN ||
bmode == VG_BLEND_DARKEN ||
bmode == VG_BLEND_LIGHTEN) {
- struct st_framebuffer *stfb = ctx->draw_buffer;
-
- vg_prepare_blend_surface(ctx);
-
samplers[2] = &ctx->blend_sampler;
- sampler_views[2] = stfb->blend_texture_view;
+ sampler_views[2] = vg_prepare_blend_surface(ctx);
if (!samplers[0] || !sampler_views[0]) {
samplers[0] = samplers[2];