summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-11-01 16:30:42 +0900
committerMichel Dänzer <michel@daenzer.net>2016-11-01 16:30:42 +0900
commit350a2645a1b127227ff294c0b62d20000d0fd48a (patch)
treec26819445a65794e9495d278a7433bf06d8ebe38 /src/radeon_kms.c
parent5df36de39952c3a26cb2fbc125f298139a9dd5bc (diff)
Check Xorg version at runtime instead of build time in two places
This means that all possible paths can be handled as intended, no matter which Xorg version the driver happened to be compiled against. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 872150d5..6927f580 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -2195,11 +2195,10 @@ Bool RADEONScreenInit_KMS(SCREEN_INIT_ARGS_DECL)
}
#endif
-#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,18,3,0,0)
- value = info->use_glamor;
-#else
- value = FALSE;
-#endif
+ if (xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0))
+ value = info->use_glamor;
+ else
+ value = FALSE;
from = X_DEFAULT;
if (!info->r600_shadow_fb) {