From: Christian König Date: Sat, 7 May 2011 12:49:58 +0000 (+0200) Subject: [g3dvl] rgba surfaces are clearing if the alpha channel is one X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a5d2d7967074be2ea87c06ee1e9af3ac34a5c99;p=mesa.git [g3dvl] rgba surfaces are clearing if the alpha channel is one --- diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index 74512c1d40a..83c93637219 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -645,7 +645,7 @@ vl_compositor_set_rgba_layer(struct pipe_video_compositor *compositor, assert(layer < VL_COMPOSITOR_MAX_LAYERS); c->used_layers |= 1 << layer; - c->layers[layer].clearing = false; + c->layers[layer].clearing = rgba->swizzle_a == PIPE_SWIZZLE_ONE; c->layers[layer].fs = c->fs_rgba; c->layers[layer].samplers[0] = c->sampler_linear; c->layers[layer].samplers[1] = NULL;