sna: Only use the inplace read fallback if we have no CPU bo support
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
aeaed0b781
commit
2c569d22d2
|
|
@ -4579,7 +4579,8 @@ fallback:
|
|||
RegionExtents(region));
|
||||
|
||||
mode = MOVE_READ;
|
||||
if (src_priv->cpu_bo == NULL)
|
||||
if (src_priv->cpu_bo == NULL &&
|
||||
(src_priv->create & KGEM_CAN_CREATE_CPU) == 0)
|
||||
mode |= MOVE_INPLACE_HINT;
|
||||
|
||||
if (!sna_drawable_move_region_to_cpu(&src_pixmap->drawable,
|
||||
|
|
|
|||
Loading…
Reference in New Issue