From 9a59f22d114e11a84c99609013ffe00f709c998b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Sat, 26 Mar 2011 11:53:27 +0100 Subject: [PATCH] [g3dvl] correct subpicture stride in upload --- src/gallium/state_trackers/xorg/xvmc/subpicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/xorg/xvmc/subpicture.c b/src/gallium/state_trackers/xorg/xvmc/subpicture.c index 07643b66848..f2bb845cb7a 100644 --- a/src/gallium/state_trackers/xorg/xvmc/subpicture.c +++ b/src/gallium/state_trackers/xorg/xvmc/subpicture.c @@ -346,7 +346,7 @@ Status XvMCCompositeSubpicture(Display *dpy, XvMCSubpicture *subpicture, XvImage /* TODO: Assert rects are within bounds? Or clip? */ vpipe->upload_sampler(vpipe, subpicture_priv->sampler, &dst_box, - image->data, width*3, srcx, srcy); + image->data, image->pitches[0], srcx, srcy); XVMC_MSG(XVMC_TRACE, "[XvMC] Subpicture %p composited.\n", subpicture); -- 2.30.2