diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-09 08:38:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-09 09:57:00 +0100 |
commit | d8a75538ea1d2a79d6282b0e2dfd73cfdea1a480 (patch) | |
tree | f57309705d1b44fd3d0a124e3b95a3cb5c41433f | |
parent | eafb454edf188e7dada1ddf886d1e46f0151968d (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.c | 2 |
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); |