diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-02 17:52:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-02 17:51:46 +0100 |
commit | ce27a81ac508368d54f1237893a9b1214cf3e3d0 (patch) | |
tree | 47aa412545c653f74c5649b1c9f01917497388bd /src/sna/sna_accel.c | |
parent | 2f1b7e8a23ac3086dda0025ecf09dd1feac94837 (diff) |
sna: Clear cpu flag after deciding to use gpu bo
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 | 5 |
1 files changed, 3 insertions, 2 deletions
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: |