diff options
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index f5306030..9fda8cad 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2551,9 +2551,6 @@ use_cpu_bo: if (priv->cpu_bo == NULL) return NULL; - if (!to_sna_from_pixmap(pixmap)->kgem.can_blt_cpu) - return NULL; - if ((flags & FORCE_GPU) == 0 && !kgem_bo_is_busy(priv->cpu_bo)) return NULL; @@ -2578,6 +2575,9 @@ use_cpu_bo: goto move_to_gpu; } + if (!to_sna_from_pixmap(pixmap)->kgem.can_blt_cpu) + return NULL; + if (!sna_drawable_move_region_to_cpu(&pixmap->drawable, ®ion, MOVE_READ | MOVE_ASYNC_HINT)) { DBG(("%s: failed to move-to-cpu, fallback\n", __FUNCTION__)); |