Blame SOURCES/0001-xwayland-Don-t-initialize-glamor-on-llvmpipe.patch

0bac9e
From c64865691df6d2ad18aeecaecb0cb9a94b5d71eb Mon Sep 17 00:00:00 2001
0bac9e
From: Adam Jackson <ajax@redhat.com>
0bac9e
Date: Wed, 19 Sep 2018 10:56:29 -0400
0bac9e
Subject: [PATCH] xwayland: Don't initialize glamor on llvmpipe
0bac9e
0bac9e
Signed-off-by: Adam Jackson <ajax@redhat.com>
0bac9e
---
0bac9e
 hw/xwayland/xwayland-glamor-gbm.c | 5 +++++
0bac9e
 1 file changed, 5 insertions(+)
0bac9e
0bac9e
diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c
0bac9e
index 06fcf52..2144af7 100644
0bac9e
--- a/hw/xwayland/xwayland-glamor-gbm.c
0bac9e
+++ b/hw/xwayland/xwayland-glamor-gbm.c
0bac9e
@@ -843,6 +843,11 @@ xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen)
0bac9e
         goto error;
0bac9e
     }
0bac9e
 
0bac9e
+    if (strstr(glGetString(GL_RENDERER), "llvmpipe")) {
0bac9e
+        ErrorF("Refusing to try glamor with llvmpipe\n");
0bac9e
+        goto error;
0bac9e
+    }
0bac9e
+
0bac9e
     if (!epoxy_has_gl_extension("GL_OES_EGL_image")) {
0bac9e
         ErrorF("GL_OES_EGL_image not available\n");
0bac9e
         goto error;
0bac9e
-- 
0bac9e
2.17.1
0bac9e