diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-03 12:09:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-03 21:35:03 +0000 |
commit | 294c8791c435acf5933109fbcab85623a55b2c6c (patch) | |
tree | f92acb9315f0898e753142427833564ae717ffb5 /src/sna/sna_accel.c | |
parent | 7ff42e9c83cdb17660a64901497704b38032af8c (diff) |
sna: Use a cheaper no-reduction damage check for simply discarding further damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 0b9565c2..7a1dc466 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1291,10 +1291,8 @@ _sna_drawable_use_cpu_bo(DrawablePtr drawable, return FALSE; done: - if (sna_damage_contains_box(priv->cpu_damage, - &extents) != PIXMAN_REGION_IN) - *damage = &priv->cpu_damage; - else + *damage = &priv->cpu_damage; + if (sna_damage_contains_box__no_reduce(priv->cpu_damage, &extents)) *damage = NULL; return TRUE; |