summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-18 17:27:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-18 17:27:27 +0100
commiteedcac9a2d1e3ab7c6e35135995d960e55dcad54 (patch)
tree1807e04dec01b8b3d3c0474692d888568ee9adef
parentdd280a69b500d2187925f67a541e045a7ae24b07 (diff)
sna: Drop now obsolete assertion
We no longer unconditionally clear the CPU hint when moving to the GPU for readonly updates, so we can no longer assert that the priv->cpu == false afterwards. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index e909502a..aadccb1a 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -15613,10 +15613,8 @@ static void sna_accel_flush(struct sna *sna)
if (priv &&
sna_pixmap_force_to_gpu(priv->pixmap,
- MOVE_READ | MOVE_ASYNC_HINT)) {
+ MOVE_READ | MOVE_ASYNC_HINT))
kgem_scanout_flush(&sna->kgem, priv->gpu_bo);
- assert(!priv->cpu);
- }
sna_mode_redisplay(sna);
sna_accel_post_damage(sna);