sna/gen6: Prefer the more flexible render ring for large surfaces

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-20 14:35:28 +01:00
parent 578ff11c37
commit df14b285be
1 changed files with 1 additions and 20 deletions

View File

@ -2397,27 +2397,8 @@ try_blt(struct sna *sna,
return true;
}
if (too_large(dst->pDrawable->width, dst->pDrawable->height)) {
DBG(("%s: dst too large for 3D pipe (%d, %d)\n",
__FUNCTION__,
dst->pDrawable->width, dst->pDrawable->height));
if (can_switch_rings(sna) && sna_picture_is_solid(src, NULL))
return true;
}
if (src->pDrawable &&
too_large(src->pDrawable->width, src->pDrawable->height)) {
DBG(("%s: src too large for 3D pipe (%d, %d)\n",
__FUNCTION__,
src->pDrawable->width, src->pDrawable->height));
return true;
}
if (can_switch_rings(sna)) {
if (sna_picture_is_solid(src, NULL))
return true;
if (src->pDrawable)
return true;
}
return false;
}