diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-11-09 08:52:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-11-09 08:52:38 +0000 |
commit | fb0c0adbee3e37d9094bc02354fc3f8c4dc292b8 (patch) | |
tree | 5038d384df24007a487aa992312555c48994d050 /src/sna/sna_accel.c | |
parent | 54b3adc23fbfdc5f6983bca2bcd01de2404911cf (diff) |
sna: Allow a CPU bo to be read by the GPU as we read from it
Just a minor assertion relaxation to treat a bo as being read by both
parties as still coherent.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-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 937d6a89..7d7731b1 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1544,7 +1544,7 @@ static inline bool has_coherent_ptr(struct sna *sna, struct sna_pixmap *priv, un if (!priv->cpu_bo) return true; - assert(!priv->cpu_bo->needs_flush); + assert(!priv->cpu_bo->needs_flush || (flags & MOVE_WRITE) == 0); assert(priv->pixmap->devKind == priv->cpu_bo->pitch); return priv->pixmap->devPrivate.ptr == MAP(priv->cpu_bo->map__cpu); } |