diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-16 12:43:43 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-16 12:43:43 +0100 |
commit | 09121a61b319ce365bfc6f96fb34c52d6eafffdf (patch) | |
tree | 0ecda49792e250d4acaa65637b9ba24281707daa | |
parent | 2068492fba6201c548b1ee7a6eb5d0459f20d466 (diff) |
sna: Fix inverted tiled CPU map check in has_coherent_ptr()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index ac17d5b1..e5dad2d9 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -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); |