summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-11-23 22:27:38 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-11-23 22:29:52 +0000
commit0bb135c40e5ac1bf7593ec1d68d2815cbf47aa25 (patch)
treeb2b28761021dd7e2240e84852ea2e034d184f2ab /src/intel_driver.c
parent33c08882c0d551afb28baef643279901dcc65fa9 (diff)
Disable BLT for i830 and 845G
This pair of chipsets seem broken beyond repair, specifically the erratum that causes the wrong PTE entry to be invalidated, so disable our incorrect attempts to use the BLT on those devices. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 926c7e31..e4aecfcf 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -468,8 +468,21 @@ static void I830XvInit(ScrnInfoPtr scrn)
intel->colorKey);
}
-static Bool can_accelerate_2d(struct intel_screen_private *intel)
+static Bool can_accelerate_blt(struct intel_screen_private *intel)
{
+ if (IS_I830(intel) || IS_845G(intel)) {
+ /* These pair of i8xx chipsets have a crippling erratum
+ * that prevents the use of a PTE entry by the BLT
+ * engine immediately following updating that
+ * entry in the GATT.
+ *
+ * As the BLT is fundamental to our 2D acceleration,
+ * and the workaround is lost in the midst of time,
+ * fallback.
+ */
+ return FALSE;
+ }
+
if (INTEL_INFO(intel)->gen >= 60) {
drm_i915_getparam_t gp;
int value;
@@ -592,9 +605,8 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
intel->tiling = FALSE;
}
- intel->use_shadow = FALSE;
- if (!can_accelerate_2d(intel))
- intel->use_shadow = TRUE;
+ intel->can_blt = can_accelerate_blt(intel);
+ intel->use_shadow = !intel->can_blt;
if (xf86IsOptionSet(intel->Options, OPTION_SHADOW)) {
intel->use_shadow =
@@ -606,7 +618,7 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
if (intel->use_shadow) {
xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
"Shadow buffer enabled,"
- " GPU acceleration disabled.\n");
+ " 2D GPU acceleration disabled.\n");
}
/* SwapBuffers delays to avoid tearing */