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:
parent
9bbbcc2f42
commit
574ab948af
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue