From fb51ec44f4b6069ab854233d5d0da34eb79f754c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 23 Jun 2014 09:07:13 +0100 Subject: sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose Signed-off-by: Chris Wilson --- src/sna/gen5_render.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sna/gen5_render.c') diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index 449a394e..aa566635 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -1620,7 +1620,7 @@ gen5_composite_set_target(struct sna *sna, hint = PREFER_GPU | FORCE_GPU | RENDER_GPU; if (!partial) { - hint |= IGNORE_CPU; + hint |= IGNORE_DAMAGE; if (w == op->dst.width && h == op->dst.height) hint |= REPLACES; } @@ -1629,6 +1629,11 @@ gen5_composite_set_target(struct sna *sna, if (op->dst.bo == NULL) return false; + if (hint & REPLACES) { + struct sna_pixmap *priv = sna_pixmap(op->dst.pixmap); + kgem_bo_pair_undo(&sna->kgem, priv->gpu_bo, priv->cpu_bo); + } + get_drawable_deltas(dst->pDrawable, op->dst.pixmap, &op->dst.x, &op->dst.y); -- cgit v1.2.3