sna: Be more pessimistic with CPU sources

Try to avoid a few more unnecessary context switches.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-10 22:38:57 +00:00
parent 358aaef6db
commit 9c764dc13b
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ static inline Bool
is_cpu(DrawablePtr drawable)
{
struct sna_pixmap *priv = sna_pixmap_from_drawable(drawable);
return !priv || priv->gpu_bo == NULL;
return !priv || priv->cpu_damage != NULL;
}
static inline Bool