summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-18 12:01:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-18 12:01:54 +0000
commit2de43a0164ba5364ffd7cb48f0bccc9873e87332 (patch)
tree493ac706275971f6614046158f554f6326e5443e
parent38de17f80d780bf219fc3c4018ad9cc8808ba50f (diff)
sna: Skip an empty slave update
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index ed13569d..99063de1 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -13821,6 +13821,9 @@ static void sna_accel_post_damage(struct sna *sna)
region.extents.x2, region.extents.y2));
RegionIntersect(&region, &region, damage);
+ if (!RegionNotEmpty(&region))
+ continue;
+
RegionTranslate(&region, -dirty->x, -dirty->y);
DamageRegionAppend(&dirty->slave_dst->drawable, &region);