summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-06 00:01:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-06 09:22:39 +0100
commit1ee10cc3b2aa0888753eeb25c7fde7296a3c92eb (patch)
tree71d48ca8d29a54ecfc95f4777f03aa232843d8f9 /src/intel_driver.c
parentcd2dd3016e0834d1636aa96511608022a4cdbcd1 (diff)
Make the detection of broken pre-production hardware verbose
These SDV should have been returned to the manufacturer long ago and replaced with real systems. So if they are still in use, add a gentle reminder. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index f1bb10d4..77611f53 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -432,6 +432,21 @@ static Bool can_accelerate_blt(struct intel_screen_private *intel)
return FALSE;
}
+ if (INTEL_INFO(intel)->gen == 60) {
+ struct pci_device *const device = intel->PciInfo;
+
+ /* Sandybridge rev07 locks up easily, even with the
+ * BLT ring workaround in place.
+ * Thus use shadowfb by default.
+ */
+ if (device->revision < 8) {
+ xf86DrvMsg(intel->scrn->scrnIndex, X_WARNING,
+ "Disabling hardware acceleration on this pre-production hardware.\n");
+
+ return FALSE;
+ }
+ }
+
if (INTEL_INFO(intel)->gen >= 60) {
drm_i915_getparam_t gp;
int value;
@@ -445,17 +460,6 @@ static Bool can_accelerate_blt(struct intel_screen_private *intel)
return FALSE;
}
- if (INTEL_INFO(intel)->gen == 60) {
- struct pci_device *const device = intel->PciInfo;
-
- /* Sandybridge rev07 locks up easily, even with the
- * BLT ring workaround in place.
- * Thus use shadowfb by default.
- */
- if (device->revision < 8)
- return FALSE;
- }
-
return TRUE;
}