diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-18 12:01:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-18 12:01:54 +0000 |
commit | 2de43a0164ba5364ffd7cb48f0bccc9873e87332 (patch) | |
tree | 493ac706275971f6614046158f554f6326e5443e | |
parent | 38de17f80d780bf219fc3c4018ad9cc8808ba50f (diff) |
sna: Skip an empty slave update
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
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(®ion, ®ion, damage); + if (!RegionNotEmpty(®ion)) + continue; + RegionTranslate(®ion, -dirty->x, -dirty->y); DamageRegionAppend(&dirty->slave_dst->drawable, ®ion); |