diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-18 00:44:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-18 00:48:33 +0000 |
commit | 7b88f87945f23b3f80ae44b2aa19f00dff1904c8 (patch) | |
tree | e150c43d8d65b0a7000f2e7492c6adcb8e974dbd | |
parent | 1418e4f3156a17ff6c5cd0f653918160e30b7c0e (diff) |
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>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 5b96e676..fdd3e905 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -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; |