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

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