Mesa (pipe-video): vdpau: switch cb cr planes in vlVdpVideoSurfacePutBitsYCbCr

Christian König deathsimple at kemper.freedesktop.org
Tue Apr 12 18:20:50 UTC 2011


Module: Mesa
Branch: pipe-video
Commit: f63aba41fb7eba142b0b22a2a46cb264157c2505
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f63aba41fb7eba142b0b22a2a46cb264157c2505

Author: Christian König <deathsimple at vodafone.de>
Date:   Tue Apr 12 20:19:59 2011 +0200

vdpau: switch cb cr planes in vlVdpVideoSurfacePutBitsYCbCr

---

 src/gallium/state_trackers/vdpau/surface.c |    2 +-
 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 2b1eb04..57f5563 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);
    }




More information about the mesa-commit mailing list