From e47a8b2e882c7f76c1de6e4d0d09e51bfbedf034 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 20 Oct 2011 11:11:35 -0400 Subject: [PATCH] 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 --- src/radeon_kms.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 32065fb..e470617 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 */ -- 1.7.1.1