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:
parent
1418e4f315
commit
7b88f87945
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue