sna: Prevent creating a GPU bo for an inplace read

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-07-04 09:48:53 +01:00
parent 18ae7722db
commit 4e12d5ca26
1 changed files with 1 additions and 1 deletions

View File

@ -2054,7 +2054,7 @@ static inline bool operate_inplace(struct sna_pixmap *priv, unsigned flags)
return false;
}
if (priv->cpu_damage && flags & MOVE_READ) {
if ((priv->gpu_damage == NULL || priv->cpu_damage) && flags & MOVE_READ) {
DBG(("%s: no, has CPU damage and requires readback\n", __FUNCTION__));
return false;
}