diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-23 11:37:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-23 11:49:43 +0100 |
commit | 964c96b181e6b55f4de6a4011a5beb6cc2cac33d (patch) | |
tree | ad2853270e1ff801b5c5e4c89e24725a57ca9fbb | |
parent | c68856f34653ac3e7af900dfbba41a108ffe119e (diff) |
sna/accel: Always subtract the enlarged region from the outstanding GPU damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index cbeca1e1..3cdb971f 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -528,8 +528,7 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable, pixmap, 0, 0, box, n); - sna_damage_subtract(&priv->gpu_damage, - n <= REGION_NUM_RECTS(r) ? &need : r); + sna_damage_subtract(&priv->gpu_damage, r); RegionUninit(&need); } if (r == &want) |