diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-21 15:04:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-21 15:06:46 +0100 |
commit | d715e1e01437049e167462281d51b5e214594361 (patch) | |
tree | 22d93b93116bdd4b9fb04549f2e0f0b72ff77b24 | |
parent | e95825d17ce65ad8173a5e6518a98969e236a4f8 (diff) |
sna: Also discard the last-was-cpu flag when overwriting cpu damage
We interpret a FillRect that erradicates the existing damage as a
clear-event and an opportunity to see if it is worth migrating the
render commands to the GPU. This is undermined if we leave the
'prefer-cpu' flag intact.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 16f0c4e7..5a9eb1e9 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -10701,10 +10701,11 @@ sna_poly_fill_rect(DrawablePtr draw, GCPtr gc, int n, xRectangle *rect) pixmap->drawable.width, pixmap->drawable.height); priv->undamaged = false; - priv->cpu = false; } hint |= IGNORE_CPU; } + if (priv->cpu_damage == NULL) + priv->cpu = false; } bo = sna_drawable_use_bo(draw, hint, ®ion.extents, &damage); |