sna: Allow target bo promotion to GPU even on old architectures

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-20 22:09:54 +01:00
parent 1a4b6fea7b
commit 6aabe90587
1 changed files with 3 additions and 3 deletions

View File

@ -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, &region,
MOVE_READ | MOVE_ASYNC_HINT)) {
DBG(("%s: failed to move-to-cpu, fallback\n", __FUNCTION__));