Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.
@ 2010-11-19  3:29 Matthias Hopf
  2010-11-19 21:47 ` [PATCH] Dont " Chris Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: Matthias Hopf @ 2010-11-19  3:29 UTC (permalink / raw)
  To: intel-gfx

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

Signed-off-by: Matthias Hopf <mhopf@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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-05 11:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-19  3:29 [PATCH] Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier Matthias Hopf
2010-11-19 21:47 ` [PATCH] Dont " Chris Wilson
2010-11-20 15:17   ` Matthias Hopf
2010-11-21  3:59     ` Keith Packard
2010-11-21  9:03       ` Chris Wilson
2010-11-24  3:13       ` Zou, Nanhai
2010-12-05 11:44         ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox