From aadc0723ac9d36317a3f62ec08ad2fce78970090 Mon Sep 17 00:00:00 2001
From: Peter Clifton <pcjc2@cam.ac.uk>
Date: Thu, 22 Apr 2010 19:01:13 +0100
Subject: [PATCH 2/2] i830: Use the i830_pixmap_pitch() helper function for clarity
Signed-off-by: Peter Clifton <pcjc2@cam.ac.uk>
---
src/i830_uxa.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
@@ -774,6 +774,7 @@ static Bool i830_uxa_put_image(PixmapPtr pixmap,
struct intel_pixmap *priv;
GCPtr gc;
Bool ret;
+ int dst_pitch;
if (x == 0 && y == 0 &&
w == pixmap->drawable.width &&
@@ -832,9 +833,11 @@ static Bool i830_uxa_put_image(PixmapPtr pixmap,
return FALSE;
}
+ dst_pitch = i830_pixmap_pitch(pixmap);
+
ret = pixman_blt((uint32_t *)src, priv->bo->virtual,
src_pitch / sizeof(uint32_t),
- pixmap->devKind / sizeof(uint32_t),
+ dst_pitch / sizeof(uint32_t),
pixmap->drawable.bitsPerPixel,
pixmap->drawable.bitsPerPixel,
0, 0,
--
1.7.0.4