[Intel-gfx] [PATCH] Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.

Matthias Hopf mhopf at suse.de
Fri Nov 19 04:29:57 CET 2010


This is known to lock up the GPU even with the workaround in place.

Signed-off-by: Matthias Hopf <mhopf at suse.de>
---
 src/intel_driver.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

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;
 }
-- 
1.6.4.2




More information about the Intel-gfx mailing list