diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-15 14:39:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-15 14:58:57 +0100 |
commit | 8447e50824d26f3c61e665269534062f34380ef6 (patch) | |
tree | 5add8cd60e8106531d4bbacd31638113846ac521 | |
parent | f41b0663dc2f6e7b6b190adef4dc27b1c7e8c609 (diff) |
sna: Allow read-mappings for has_coherent_ptr() assert
The assertion was a little too specific and disallowed us to have a CPU
read-only mapping.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 422a5f47..ac17d5b1 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1447,10 +1447,6 @@ 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->cpu) - return false; - if (priv->gpu_bo->exec) - return false; if (priv->gpu_bo->tiling == I915_TILING_NONE) return false; |