From e0cc970a54660035942ef8f8db122835e1407676 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Sat, 7 May 2011 14:51:06 +0200 Subject: [PATCH] vdpau: as long as we don't have a background picture we don't want an alpha channel --- src/gallium/state_trackers/vdpau/output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 0257d38017a..72e63fc2f32 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -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); -- 2.30.2