vdpau: as long as we don't have a background picture we don't want an alpha channel
authorChristian König <deathsimple@vodafone.de>
Sat, 7 May 2011 12:51:06 +0000 (14:51 +0200)
committerChristian König <deathsimple@vodafone.de>
Sat, 7 May 2011 12:51:17 +0000 (14:51 +0200)
src/gallium/state_trackers/vdpau/output.c

index 0257d38..72e63fc 100644 (file)
@@ -81,6 +81,10 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
 
    memset(&sv_templ, 0, sizeof(sv_templ));
    u_sampler_view_default_template(&sv_templ, res, res->format);
+
+   // as long as we don't have a background picture we don't want an alpha channel
+   sv_templ.swizzle_a = PIPE_SWIZZLE_ONE;
+
    vlsurface->sampler_view = context->create_sampler_view(context, res, &sv_templ);
    if (!vlsurface->sampler_view) {
       FREE(dev);