summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-05-07 14:51:06 +0200
committerChristian König <[email protected]>2011-05-07 14:51:17 +0200
commite0cc970a54660035942ef8f8db122835e1407676 (patch)
tree8658edc39263573466088b6f1e0ff13969dc9e94 /src/gallium
parent6a5d2d7967074be2ea87c06ee1e9af3ac34a5c99 (diff)
vdpau: as long as we don't have a background picture we don't want an alpha channel
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/vdpau/output.c4
1 files changed, 4 insertions, 0 deletions
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);