summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-28 14:20:00 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-29 06:57:05 +0100
commitcfdaee4a7e45689b0fbbc8c3166d28d69797e759 (patch)
treecbc217408c30e7e7ed089a20e84bf656ee05e436
parent80752fb2794faa581d891b24148eaf51c42afd25 (diff)
sna: Skip adding damage if it is already contained
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9f5c0b47..b7e3d90f 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2865,7 +2865,7 @@ move_to_cpu:
DBG(("%s: region already in CPU damage\n",
__FUNCTION__));
- goto done;
+ goto already_damaged;
}
}
@@ -2986,6 +2986,7 @@ done:
}
}
+already_damaged:
if (dx | dy)
RegionTranslate(region, -dx, -dy);