[g3dvl] correct subpicture stride in upload
authorChristian König <deathsimple@vodafone.de>
Sat, 26 Mar 2011 10:53:27 +0000 (11:53 +0100)
committerChristian König <deathsimple@vodafone.de>
Sat, 26 Mar 2011 10:53:27 +0000 (11:53 +0100)
src/gallium/state_trackers/xorg/xvmc/subpicture.c

index 07643b6684870555fd7c34ffc33fdc1efb59fa5e..f2bb845cb7a264a48ebf3b665dc3e57d3e23bf0b 100644 (file)
@@ -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);