diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-03 10:24:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-03 10:24:19 +0100 |
commit | aa10f480c566b8523cdd49b3e23f64b7b9625987 (patch) | |
tree | f691a46b61a0245c050522dbb4d069372680638c | |
parent | 51e364ded28e9a8e02a380c041a2c5784381df35 (diff) |
sna: Drop false IGNORE_DAMAGE hint
IGNORE_DAMAGE is used by sna_drawable_use_bo to ignore both CPU/GPU
damage. It used to only ignore CPU damage, but now is a more general
hint. However, here we were intending to only say ignore the cpu damage
that we explicitly discarded anyway.
References: https://bugs.freedesktop.org/show_bug.cgi?id=81973
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index a2d77ad5..7df522bd 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -6307,10 +6307,8 @@ discard_cow: hint |= IGNORE_DAMAGE; if (dst_priv->cpu_damage && region_subsumes_damage(region, - dst_priv->cpu_damage)) { + dst_priv->cpu_damage)) discard_cpu_damage(sna, dst_priv); - hint |= IGNORE_DAMAGE; - } } bo = sna_drawable_use_bo(&dst_pixmap->drawable, hint, ®ion->extents, &damage); |