sna: Don't mark cached upload buffers for inactivity expiration
As these do not follow the normal rules of damage tracking, we have to be careful not to force migration. References: https://bugs.freedesktop.org/show_bug.cgi?id=42426 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
96ead26c4d
commit
d0e05b4294
|
|
@ -2073,7 +2073,8 @@ static inline struct sna_pixmap *
|
|||
sna_pixmap_mark_active(struct sna *sna, struct sna_pixmap *priv)
|
||||
{
|
||||
assert(priv->gpu_bo);
|
||||
if (!priv->pinned && (priv->create & KGEM_CAN_CREATE_LARGE) == 0)
|
||||
if (!priv->pinned && priv->gpu_bo->proxy == NULL &&
|
||||
(priv->create & KGEM_CAN_CREATE_LARGE) == 0)
|
||||
list_move(&priv->inactive, &sna->active_pixmaps);
|
||||
priv->clear = false;
|
||||
return priv;
|
||||
|
|
|
|||
Loading…
Reference in New Issue