diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-20 19:40:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-20 19:40:44 +0100 |
commit | 94cbe7bf7b7acc9a7f2cb56c5e275af028f3cdc8 (patch) | |
tree | 6db8a4c9444c06b7147af7fbea4d60c12a0a3ac6 | |
parent | b3d1118bbee1172f72c946163a37ca4ad5feecce (diff) |
sna: Mark overwriting CopyArea as not needing the dst damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index a481388a..d26d613f 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2693,7 +2693,7 @@ sna_drawable_move_to_cpu(DrawablePtr drawable, unsigned flags) return sna_drawable_move_region_to_cpu(&pixmap->drawable, ®ion, flags); } -static bool alu_overwrites(uint8_t alu) +pure static bool alu_overwrites(uint8_t alu) { switch (alu) { case GXclear: @@ -4700,10 +4700,8 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, list_del(&dst_priv->flush_list); dst_priv->cpu = false; } - if (region->data == NULL) - hint |= IGNORE_CPU; } - if (replaces) + if (alu_overwrites(alu)) hint |= IGNORE_CPU; /* XXX hack for firefox -- subsequent uses of src will be corrupt! */ |