From: Michel Dänzer <[email protected]>

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 <[email protected]>
---
 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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to