summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-12 20:19:59 +0200
committerChristian König <[email protected]>2011-04-12 20:19:59 +0200
commitf63aba41fb7eba142b0b22a2a46cb264157c2505 (patch)
tree70a547fad3b110010e0d1a07b8febc0c8ad08be7 /src/gallium/state_trackers/vdpau
parent62373e8f9e948ac441d9fe355edfc0dca5f9df9c (diff)
vdpau: switch cb cr planes in vlVdpVideoSurfacePutBitsYCbCr
Diffstat (limited to 'src/gallium/state_trackers/vdpau')
-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 2b1eb047141..57f5563b12f 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -188,7 +188,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
return VDP_STATUS_RESOURCES;
for (i = 0; i < 3; ++i) { //TODO put nr of planes into util format
- struct pipe_sampler_view *sv = sampler_views[i];
+ struct pipe_sampler_view *sv = sampler_views[i ? i ^ 3 : 0];
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);
}