sna: Skip an empty slave update
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
38de17f80d
commit
2de43a0164
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue