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:
parent
1a4b6fea7b
commit
6aabe90587
|
|
@ -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__));
|
||||
|
|
|
|||
Loading…
Reference in New Issue