sna: Upload images in place from CopyArea

As for PutImage, if the damage will be immediately flushed out to the
GPU bo, we may as well do the write directly to the GPU bo and not
staged via the shadow.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-18 00:44:00 +00:00
parent 1418e4f315
commit 7b88f87945
1 changed files with 3 additions and 0 deletions

View File

@ -2219,6 +2219,9 @@ static bool copy_use_gpu_bo(struct sna *sna,
struct sna_pixmap *priv,
RegionPtr region)
{
if (priv->flush)
return true;
if (region_inplace(sna, priv->pixmap, region, priv))
return true;