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:
Chris Wilson 2013-02-12 20:15:33 +00:00
parent aeaed0b781
commit 2c569d22d2
1 changed files with 2 additions and 1 deletions

View File

@ -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,