sna: Use a cheaper check for a replacement operation

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-03-31 13:32:45 +01:00
parent 76380bcc3c
commit 4b97bf7e6e
1 changed files with 1 additions and 1 deletions

View File

@ -3566,7 +3566,7 @@ create_gpu_bo:
if (priv->gpu_damage) {
assert(priv->gpu_bo);
if (!priv->cpu_damage || flags & IGNORE_CPU) {
if (box_covers_pixmap(pixmap, &region.extents)) {
if (flags & REPLACES || box_covers_pixmap(pixmap, &region.extents)) {
unsigned int move;
if (flags & IGNORE_CPU)