sna: Skip adding damage if it is already contained

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-28 14:20:00 +01:00
parent 80752fb279
commit cfdaee4a7e
1 changed files with 2 additions and 1 deletions

View File

@ -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);