If we are not actually accessing the memory through the pointer, we do
not care if it not currently coherent.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
if (priv == NULL)
return true;
+ if (flags & MOVE_ASYNC_HINT) {
+ /* Not referencing the pointer itself, so do not care */
+ return true;
+ }
+
if (!priv->mapped) {
if (!priv->cpu_bo)
return true;
assert(pixmap->devPrivate.ptr == PTR(priv->ptr));
assert(pixmap->devKind);
assert_pixmap_damage(pixmap);
- assert(has_coherent_ptr(sna, sna_pixmap(pixmap), flags));
+ assert(has_coherent_ptr(sna, priv, flags));
return true;
}