diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 12:15:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 12:15:52 +0100 |
commit | 6a1423547769c24d15f6475628981d14a76a4bb2 (patch) | |
tree | 97c984c0d04f126ddf7086ec317e66f1df75d9ab | |
parent | dff25e5ec4071a0404f82760e8deec3f99f4a0a9 (diff) |
sna: Initialise the empty boxes field of the region before subtracting it
Fixes regression from commit 38fb77af757318e5fb6f605b37306ce4585b11a5
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Wed Sep 5 08:23:34 2012 +0100
sna: Don't upload ignored cpu damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 41f53d43..1a02db37 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2590,6 +2590,7 @@ sna_drawable_use_bo(DrawablePtr drawable, unsigned flags, const BoxRec *box, region.extents.x2 += dx; region.extents.y1 += dy; region.extents.y2 += dy; + region.data = NULL; sna_damage_subtract(&priv->cpu_damage, ®ion); if (priv->cpu_damage == NULL) { |