diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-09 14:51:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-09 14:51:49 +0100 |
commit | d1a3bb1467429310f5d17bf6afbf2eeb043ae64d (patch) | |
tree | 1abfec4735532692472224cfe0940ddaae473d46 | |
parent | 8ee53cc7449de7df294f49d089ff1d6b2e944323 (diff) |
sna: Prefer inactive buffers when creating a bo for a dirty pixmap
As we will immediately attempt to replace it with an inactive when
moving the data to the GPU, short-circuit that replacement.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 975799e1..6254d0cf 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -685,7 +685,7 @@ sna_pixmap_force_to_gpu(PixmapPtr pixmap) pixmap->drawable.height, pixmap->drawable.bitsPerPixel, sna_pixmap_choose_tiling(pixmap), - 0); + priv->cpu_damage ? CREATE_INACTIVE : 0); if (priv->gpu_bo == NULL) return NULL; |