summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-10-20 11:11:35 -0400
committerMichel Dänzer <michel.daenzer@amd.com>2011-11-04 12:07:11 +0100
commitbcdb54fe16ebf2e239b84eebf20e8adfe5094bff (patch)
tree5db47c55d7f228e13b43801bb3359b849aa7275c
parentedde94cba5321e6e51e7fd4d79dde5abc4944495 (diff)
check for xserver 1.9.4.901 to enable tiling by default
Previous xservers had a bug in the EXA code which caused display corruption in some cases. See: https://bugs.freedesktop.org/show_bug.cgi?id=33929 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r--src/radeon_kms.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 32065fb9..e4706176 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -677,8 +677,13 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
#ifdef EXA_MIXED_PIXMAPS
/* don't enable tiling if accel is not enabled */
if (!info->r600_shadow_fb) {
- Bool colorTilingDefault = info->ChipFamily >= CHIP_FAMILY_R300 &&
+ Bool colorTilingDefault =
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,9,4,901,0)
+ info->ChipFamily >= CHIP_FAMILY_R300 &&
info->ChipFamily <= CHIP_FAMILY_CAYMAN;
+#else
+ FALSE;
+#endif
if (info->ChipFamily >= CHIP_FAMILY_R600) {
/* set default group bytes, overridden by kernel info below */