summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-09 01:32:25 +0200
committerChristian König <[email protected]>2011-04-09 01:34:02 +0200
commitcae77aa80b3629a147ce3ae4526646014efae595 (patch)
treede3c01955a0cca63bbccc24ee3d9e2f16db45b62 /src/gallium/state_trackers/vdpau/surface.c
parentf3ead63e7023f61557cb92be30cae6fe9efb280a (diff)
vdpau: Implement basic output functionality
Even with totally wrong color space conversion we finally se a picture with VDPAU. Yeah!
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index 496f647a8d0..f0aafae79b5 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -182,7 +182,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
for (i = 0; i < 3; ++i) { //TODO put nr of planes into util format
struct pipe_sampler_view *sv = sampler_views[i];
- struct pipe_box dst_box = { 0, 0, sv->texture->width0, sv->texture->height0 };
+ struct pipe_box dst_box = { 0, 0, 0, sv->texture->width0, sv->texture->height0, 1 };
context->upload_sampler(context, sv, &dst_box, source_data[i], source_pitches[i], 0, 0);
}