summaryrefslogtreecommitdiff
path: root/src/amdgpu_kms.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-05-10 18:37:56 +0900
committerMichel Dänzer <michel@daenzer.net>2017-05-11 18:41:40 +0900
commite900e48a11a93cde7d8d2d7bdb4a15ec705c56b1 (patch)
treec56b105cb0b7f20978f09a67687625d19c49cfac /src/amdgpu_kms.c
parent462ac3341e5bfbded9086d3d9043821d19352b3e (diff)
Don't enable DRI3 without glamor
Can't work currently. Fixes crash when trying to run a DRI3 client when glamor isn't enabled. Bugzilla: https://bugs.freedesktop.org/100968 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_kms.c')
-rw-r--r--src/amdgpu_kms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 0182cbe..4df81f9 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1741,7 +1741,10 @@ Bool AMDGPUScreenInit_KMS(SCREEN_INIT_ARGS_DECL)
#endif
if (!amdgpu_is_gpu_screen(pScreen)) {
- value = xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0);
+ if (xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0))
+ value = info->use_glamor;
+ else
+ value = FALSE;
from = X_DEFAULT;
if (info->use_glamor) {