From 924f596463555db27214fd8227218c2e21ecddc8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 14 Jul 2012 19:03:08 +0100 Subject: sna: Avoid BLT to snoopable bo on older gen Signed-off-by: Chris Wilson --- src/sna/kgem.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sna/kgem.c') diff --git a/src/sna/kgem.c b/src/sna/kgem.c index b44c7347..5880c787 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -768,6 +768,10 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen) DBG(("%s: semaphores enabled? %d\n", __FUNCTION__, kgem->has_semaphores)); + kgem->can_blt_cpu = gen == 0 || gen >= 30; + DBG(("%s: can blt to cpu? %d\n", __FUNCTION__, + kgem->can_blt_cpu)); + if (!is_hw_supported(kgem, dev)) { xf86DrvMsg(kgem_get_screen_index(kgem), X_WARNING, "Detected unsupported/dysfunctional hardware, disabling acceleration.\n"); -- cgit v1.2.3