diff options
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 5bf13951..f7ed3cd0 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2429,6 +2429,10 @@ move_to_gpu(PixmapPtr pixmap, struct sna_pixmap *priv, if (priv->gpu_bo) return TRUE; + if (priv->cpu_bo) + return (priv->source_count++-SOURCE_BIAS) * w*h >= + (int)pixmap->drawable.width * pixmap->drawable.height; + if (alu != GXcopy) return TRUE; |