glamor_putimage: Correct the wrong stride value.

We should not use the destination pixmap's devkind as the input
image data's stride.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-06-11 02:24:41 +08:00 committed by Eric Anholt
parent eb6f981ba4
commit 56d6e7a85f

View File

@ -307,7 +307,7 @@ _glamor_put_image(DrawablePtr drawable, GCPtr gc, int depth, int x, int y,
glamor_destroy_pixmap(temp_pixmap);
} else
glamor_upload_sub_pixmap_to_texture(pixmap, x + drawable->x + x_off, y + drawable->y + y_off,
w, h, pixmap->devKind, bits, 0);
w, h, PixmapBytePad(w, depth), bits, 0);
ret = TRUE;
goto done;