summaryrefslogtreecommitdiff
path: root/src/sna/gen2_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-20 15:33:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-20 16:06:13 +0100
commit01ebdb4d7a8bb751167153554f9122d996e4ea91 (patch)
treee8aad71fc2ff239996452845be90d6f553b13969 /src/sna/gen2_render.c
parent410316d20299b9ed3447d1d897f904af786ed097 (diff)
sna: Remove confusing is_cpu()
The only real user now has its own heuristics, so convert the remaining users over to !is_gpu(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen2_render.c')
-rw-r--r--src/sna/gen2_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c
index 31859b45..fea1791d 100644
--- a/src/sna/gen2_render.c
+++ b/src/sna/gen2_render.c
@@ -1479,7 +1479,8 @@ try_blt(struct sna *sna,
src->pDrawable->width, src->pDrawable->height));
return true;
}
- return is_cpu(src->pDrawable);
+
+ return !is_gpu(src->pDrawable);
}
static bool