sna: Add mmap(wc) handling to has_coherent_ptr assertion

Extend the debuging sanity checks to also cover WC mappings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-01-07 14:08:05 +00:00
parent 9bbbcc2f42
commit 574ab948af
1 changed files with 5 additions and 0 deletions

View File

@ -1557,6 +1557,11 @@ static inline bool has_coherent_ptr(struct sna *sna, struct sna_pixmap *priv, un
return true;
}
if (priv->pixmap->devPrivate.ptr == MAP(priv->gpu_bo->map__wc)) {
assert(priv->mapped == MAPPED_GTT);
return true;
}
return false;
}