sna: Fix inverted tiled CPU map check in has_coherent_ptr()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-10-16 12:43:43 +01:00
parent 2068492fba
commit 09121a61b3
1 changed files with 1 additions and 1 deletions

View File

@ -1447,7 +1447,7 @@ static inline bool has_coherent_ptr(struct sna *sna, struct sna_pixmap *priv, un
}
if (priv->pixmap->devPrivate.ptr == MAP(priv->gpu_bo->map__cpu)) {
if (priv->gpu_bo->tiling == I915_TILING_NONE)
if (priv->gpu_bo->tiling != I915_TILING_NONE)
return false;
return kgem_bo_can_map__cpu(&sna->kgem, priv->gpu_bo, flags & MOVE_WRITE);