diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-05-12 16:34:30 +0900 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2016-05-12 16:34:30 +0900 |
commit | 861da1d5c243f51d6c1f76e5b13e5184aa608776 (patch) | |
tree | 069ef442dc0a5f706697bf6e1e394fdc5bb7d119 /src/amdgpu_kms.c | |
parent | 86f991838824494e68ac277fa27cbd88c23a5ee8 (diff) |
Enable DRI3 by default when building for Xorg >= 1.18.3
Seems to work well enough in general now.
(Ported from radeon commit 1181b9c582f10b6c523e4b2988e2ce87ecf3d367)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_kms.c')
-rw-r--r-- | src/amdgpu_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 125cb77..3c53bc9 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -1230,7 +1230,11 @@ Bool AMDGPUScreenInit_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->use_glamor) { |