diff mbox

Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.

Message ID 1290137397-10786-1-git-send-email-mhopf@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Matthias Hopf Nov. 19, 2010, 3:29 a.m. UTC
None
diff mbox

Patch

diff --git a/src/intel_driver.c b/src/intel_driver.c
index 926c7e3..be41712 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -482,6 +482,13 @@  static Bool can_accelerate_2d(struct intel_screen_private *intel)
 		if (drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GETPARAM, &gp))
 			return FALSE;
 	}
+	if (INTEL_INFO(intel)->gen == 60) {
+		struct pci_device *const device = intel->PciInfo;
+		/* Sandybridge rev07 locks up easily, even with the workaround
+		 * in place. Thus use shadowfb by default. */
+		if (device->revision < 8)
+		    return FALSE;
+	}
 
 	return TRUE;
 }