summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-13 16:14:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-13 16:53:35 +0100
commit0a0b9dc3538ef731463fb321852b8802cd04e457 (patch)
tree32809b9048773936e08219541bc39a4498d1765a /src/sna/sna_trapezoids.c
parentdd87aa8f85c4bafa105fd881a0cce45bda6143df (diff)
sna: Refine decision whether to use the GPU or render inplace
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r--src/sna/sna_trapezoids.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c
index c11a1417..789be9cf 100644
--- a/src/sna/sna_trapezoids.c
+++ b/src/sna/sna_trapezoids.c
@@ -595,12 +595,10 @@ sna_composite_trapezoids(CARD8 op,
}
if (FORCE_FALLBACK == 0 &&
- (too_small(priv) || DAMAGE_IS_ALL(priv->cpu_damage)) &&
- !picture_is_gpu(sna, src, 0) && untransformed(src)) {
- DBG(("%s: force fallbacks -- (too small, %dx%d? %d || all-cpu? %d) && (src-is-cpu? %d && untransformed? %d)\n",
+ !is_gpu_dst(priv) && !picture_is_gpu(sna, src, 0) && untransformed(src)) {
+ DBG(("%s: force fallbacks -- (!gpu dst, %dx%d? %d) && (src-is-cpu? %d && untransformed? %d)\n",
__FUNCTION__, dst->pDrawable->width, dst->pDrawable->height,
- too_small(priv), (int)DAMAGE_IS_ALL(priv->cpu_damage),
- !picture_is_gpu(sna, src, 0), untransformed(src)));
+ !is_gpu_dst(priv), !picture_is_gpu(sna, src, 0), untransformed(src)));
force_fallback:
force_fallback = true;