sna/dri: Prefer using the BLT for DRICopyRegion on pre-SNB

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

View File

@ -428,6 +428,9 @@ sna_dri_copy(struct sna *sna, DrawablePtr draw, RegionPtr region,
* as well).
*/
kgem_set_mode(&sna->kgem, KGEM_RENDER);
} else if (sna->kgem.mode == KGEM_NONE) {
/* Otherwise employ the BLT unless it means a context switch */
_kgem_set_mode(&sna->kgem, KGEM_BLT);
}
damage(pixmap, region);