[PATCH xf86-video-amdgpu] Don't enable DRI3 without glamor
Michel Dänzer
michel at daenzer.net
Wed May 10 09:48:38 UTC 2017
From: Michel Dänzer <michel.daenzer at amd.com>
Can't work currently. Fixes crash when trying to run a DRI3 client when
glamor isn't enabled.
Bugzilla: https://bugs.freedesktop.org/100968
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/amdgpu_kms.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 0182cbe0a..4df81f993 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) {
--
2.11.0
More information about the amd-gfx
mailing list