diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-30 11:14:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-30 13:12:05 +0100 |
commit | e6cb5d93eaa01e7f4763f797bba341f3cc481d98 (patch) | |
tree | fb15b9d51c3f51cac768eada9d305d707ae9c76b /src/sna/sna_composite.c | |
parent | c9805ba98775bb1e969ff59c7044fe1a49673ca8 (diff) |
sna: Avoid overlapping gpu/cpu damage with IGNORE_CPU
We cannot simply ignore the presence of CPU damage with IGNORE_CPU but
must remember to discard it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_composite.c')
-rw-r--r-- | src/sna/sna_composite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c index b36e2ee6..36287c65 100644 --- a/src/sna/sna_composite.c +++ b/src/sna/sna_composite.c @@ -832,7 +832,8 @@ sna_composite_rectangles(CARD8 op, priv->cpu = false; } - hint |= IGNORE_CPU; + if (region.data == NULL) + hint |= IGNORE_CPU; } bo = sna_drawable_use_bo(&pixmap->drawable, hint, |