diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-14 19:03:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-14 19:16:07 +0100 |
commit | 924f596463555db27214fd8227218c2e21ecddc8 (patch) | |
tree | a9545f03e6280011b5deb358b754ac228d478f91 /src/sna/kgem.c | |
parent | 44e226b1d9fca8cb95b0864adf8708b03ee8472c (diff) |
sna: Avoid BLT to snoopable bo on older gen
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |