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:
parent
3c6758fc4a
commit
cf64c8ce75
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue