summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-09 08:38:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-09 09:57:00 +0100
commitd8a75538ea1d2a79d6282b0e2dfd73cfdea1a480 (patch)
treef57309705d1b44fd3d0a124e3b95a3cb5c41433f
parenteafb454edf188e7dada1ddf886d1e46f0151968d (diff)
sna: PadPixmap only writes to the out-of-bounds bits
So we only need to delcare it as reading the source pixmap and not mark it as damaged. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index cb99e6ac..ac98d358 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2735,7 +2735,7 @@ static bool must_check sna_validate_pixmap(DrawablePtr draw, PixmapPtr pixmap)
FbEvenTile(pixmap->drawable.width *
pixmap->drawable.bitsPerPixel)) {
DBG(("%s: flushing pixmap\n", __FUNCTION__));
- if (!sna_pixmap_move_to_cpu(pixmap, MOVE_READ | MOVE_WRITE))
+ if (!sna_pixmap_move_to_cpu(pixmap, MOVE_READ))
return false;
fbPadPixmap(pixmap);