From ce27a81ac508368d54f1237893a9b1214cf3e3d0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Jul 2012 17:52:24 +0100 Subject: sna: Clear cpu flag after deciding to use gpu bo Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sna/sna_accel.c') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index c4dbe125..6550d254 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2341,14 +2341,15 @@ done: return priv->gpu_bo; use_gpu_bo: + DBG(("%s: using whole GPU bo\n", __FUNCTION__)); assert(priv->gpu_bo != NULL); + assert(priv->gpu_bo->proxy == NULL); priv->clear = false; + priv->cpu = false; if (!priv->pinned && (priv->create & KGEM_CAN_CREATE_LARGE) == 0) list_move(&priv->inactive, &to_sna_from_pixmap(pixmap)->active_pixmaps); *damage = NULL; - DBG(("%s: using whole GPU bo\n", __FUNCTION__)); - assert(priv->gpu_bo->proxy == NULL); return priv->gpu_bo; use_cpu_bo: -- cgit v1.2.3