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>
This commit is contained in:
Chris Wilson 2011-06-09 14:51:49 +01:00
parent 8ee53cc744
commit d1a3bb1467
1 changed files with 1 additions and 1 deletions

View File

@ -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;