sna: Upload PutImage inplace to a fresh GPU bo if the device doesn't snoop

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-27 13:59:56 +01:00
parent 3c6758fc4a
commit cf64c8ce75
1 changed files with 6 additions and 1 deletions

View File

@ -3221,7 +3221,12 @@ static bool upload_inplace(struct sna *sna,
}
}
DBG(("%s? no\n", __FUNCTION__));
if (priv->create & (KGEM_CAN_CREATE_GPU | KGEM_CAN_CREATE_CPU) == KGEM_CAN_CREATE_GPU &&
region_subsumes_drawable(region, &pixmap->drawable)) {
DBG(("%s? yes, will fill fresh GPU bo\n", __FUNCTION__));
return true;
}
return false;
}