summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-04 20:31:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-04 20:36:12 +0100
commitb27a521214728052b8b10342aaacbaf1622b8e2c (patch)
treeff6a34d4f91313340dd215cd042ccf7c1fc3bd80 /src/intel_driver.c
parent3e641459f8997f45288cc3cb314e50f2b5a629fd (diff)
shadow: Enable shadow by default on SandyBridge
SandyBridge 2D support is far from complete, so instead of permanently falling back and always using uncached GTT mapping for rendering, use the shadow buffer instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 2cd50a10..50540dde 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -560,7 +560,6 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
intel->force_fallback =
drmCommandNone(intel->drmSubFD, DRM_I915_GEM_THROTTLE) != 0;
- intel->use_shadow = FALSE;
/* Enable tiling by default */
intel->tiling = TRUE;
@@ -573,9 +572,15 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
intel->tiling = FALSE;
}
+ intel->use_shadow = FALSE;
+ if (IS_GEN6(intel))
+ intel->use_shadow = TRUE;
+
if (xf86IsOptionSet(intel->Options, OPTION_SHADOW)) {
- if (xf86ReturnOptValBool(intel->Options, OPTION_SHADOW, FALSE))
- intel->use_shadow = TRUE;
+ intel->use_shadow =
+ xf86ReturnOptValBool(intel->Options,
+ OPTION_SHADOW,
+ FALSE);
}
if (intel->use_shadow) {