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:
parent
18ae7722db
commit
4e12d5ca26
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue