flags &= ~PREFER_GPU;
if ((flags & (PREFER_GPU | IGNORE_CPU)) == IGNORE_CPU) {
- if (box_inplace(pixmap, box))
+ if (priv->gpu_bo && box_inplace(pixmap, box))
flags |= PREFER_GPU;
}
}
done:
+ assert(priv->move_to_gpu == NULL);
assert(priv->gpu_bo != NULL);
assert(priv->gpu_bo->refcnt);
if (sna_damage_is_all(&priv->gpu_damage,
assert(priv->gpu_bo->proxy == NULL);
assert(priv->clear == false);
assert(priv->cpu == false);
+ assert(!priv->shm);
return priv->gpu_bo;
use_gpu_bo:
}
}
+ if (priv->shm) {
+ assert(!priv->flush);
+ list_move(&priv->flush_list, &sna->flush_pixmaps);
+ }
+
DBG(("%s: using whole GPU bo\n", __FUNCTION__));
assert(priv->gpu_bo != NULL);
assert(priv->gpu_bo->refcnt);