sna: If the CPU damage already contains the migration region, we are done
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
a2d92ade39
commit
bd1dd4cf66
|
|
@ -1539,6 +1539,11 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable,
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (priv->cpu_damage &&
|
||||
sna_damage_contains_box__no_reduce(priv->cpu_damage,
|
||||
®ion->extents))
|
||||
goto done;
|
||||
|
||||
if (sna_damage_contains_box(priv->gpu_damage,
|
||||
®ion->extents) != PIXMAN_REGION_OUT) {
|
||||
RegionRec want, *r = region;
|
||||
|
|
|
|||
Loading…
Reference in New Issue