summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 02:24:41 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 16:34:02 +0800
commita0ae6978c712f5f8c325553d08d085693b9e6518 (patch)
treed4cc4271cc0b90c95f380d7a07c95e7e71a6306e
parentb0257c3a67798d44e0f8218ccc798c5392729c62 (diff)
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>
-rw-r--r--src/glamor_putimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor_putimage.c b/src/glamor_putimage.c
index 6d62bd7..34e86a1 100644
--- a/src/glamor_putimage.c
+++ b/src/glamor_putimage.c
@@ -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;