summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-05-10 19:02:20 +0900
committerMichel Dänzer <michel@daenzer.net>2016-05-11 12:25:23 +0900
commit1181b9c582f10b6c523e4b2988e2ce87ecf3d367 (patch)
tree97d4f7d7a958a894d82ba7ecdc4ed5a3a3113cd4
parentc801f9f10a5d72d935faf21e72f7e7808fb4f05f (diff)
Enable DRI3 by default when building for Xorg >= 1.18.3
Seems to work well enough in general now. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--man/radeon.man2
-rw-r--r--src/radeon_kms.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/man/radeon.man b/man/radeon.man
index 1acdc639..cacafb5a 100644
--- a/man/radeon.man
+++ b/man/radeon.man
@@ -270,6 +270,8 @@ Sea Islands.
.BI "Option \*qDRI\*q \*q" integer \*q
Define the maximum level of DRI to enable. Valid values are 2 for DRI2 or 3 for DRI3.
The default is
+.B 3 for DRI3
+if the driver was compiled for Xorg >= 1.18.3, otherwise
.B 2 for DRI2.
.TP
.BI "Option \*qEnablePageFlip\*q \*q" boolean \*q
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index c35c9510..940aad27 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1722,7 +1722,11 @@ Bool RADEONScreenInit_KMS(SCREEN_INIT_ARGS_DECL)
}
#endif
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,18,3,0,0)
+ value = TRUE;
+#else
value = FALSE;
+#endif
from = X_DEFAULT;
if (!info->r600_shadow_fb) {