summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-31 13:32:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-31 13:37:38 +0100
commit4b97bf7e6e9e315cc77d940e3be97832a326e702 (patch)
treec44ce3e03c241e7fe909926581568dff0f9d4221 /src
parent76380bcc3c23d75575d37c0436369a8014bd5a3e (diff)
sna: Use a cheaper check for a replacement operation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
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, &region.extents)) {
+ if (flags & REPLACES || box_covers_pixmap(pixmap, &region.extents)) {
unsigned int move;
if (flags & IGNORE_CPU)