summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index e4706176..1604f25b 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -678,12 +678,9 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
/* don't enable tiling if accel is not enabled */
if (!info->r600_shadow_fb) {
Bool colorTilingDefault =
-#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,9,4,901,0)
+ xorgGetVersion() >= 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 */