From: Christian König Date: Sat, 26 Mar 2011 10:53:27 +0000 (+0100) Subject: [g3dvl] correct subpicture stride in upload X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a59f22d114e11a84c99609013ffe00f709c998b;p=mesa.git [g3dvl] correct subpicture stride in upload --- 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);