From 4b97bf7e6e9e315cc77d940e3be97832a326e702 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 31 Mar 2014 13:32:45 +0100 Subject: sna: Use a cheaper check for a replacement operation Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 6a58598a..133b0467 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -3566,7 +3566,7 @@ create_gpu_bo: if (priv->gpu_damage) { assert(priv->gpu_bo); if (!priv->cpu_damage || flags & IGNORE_CPU) { - if (box_covers_pixmap(pixmap, ®ion.extents)) { + if (flags & REPLACES || box_covers_pixmap(pixmap, ®ion.extents)) { unsigned int move; if (flags & IGNORE_CPU) -- cgit v1.2.3