summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-31 19:18:17 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-31 22:51:31 +0000
commit1239e012ae6d4f00ce73f32d7244905a601170ea (patch)
tree5431689b34a9bcd03e602e26031b24e39a98c208 /src/sna/sna_accel.c
parent9712f49fddc8be939f77c25fcb907873af44619f (diff)
sna: Make sure the needs_flush is always accompanied by a tracking request
References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index e4065060..9b1a3853 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -13612,8 +13612,9 @@ sna_accel_flush_callback(CallbackListPtr *list,
} else {
DBG(("%s: flushing DRI pixmap=%ld\n", __FUNCTION__,
priv->pixmap->drawable.serialNumber));
- ret = sna_pixmap_move_to_gpu(priv->pixmap,
- MOVE_READ | __MOVE_FORCE);
+ if (sna_pixmap_move_to_gpu(priv->pixmap,
+ MOVE_READ | __MOVE_FORCE))
+ kgem_bo_unclean(&sna->kgem, priv->gpu_bo);
}
(void)ret;
}