From f63aba41fb7eba142b0b22a2a46cb264157c2505 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Tue, 12 Apr 2011 20:19:59 +0200 Subject: [PATCH] vdpau: switch cb cr planes in vlVdpVideoSurfacePutBitsYCbCr --- src/gallium/state_trackers/vdpau/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2