Skip to contentSkip to conversation

xserver-xf86-config: add glamoregl

PATCH New Saul Wold 1 participant 2 messages Jan 20, 2017

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/2 xserver-xf86-config: add glamoregl

When using the modesetting with glamor and MUSL, the glamoregl library needs to be pre-loaded, so add it to the list here.

---
 .../xorg-xserver/xserver-xf86-config/10-preload-modules.conf             | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/10-preload-modules.conf +1 -0
index 72e4fbf..23fcdc7 100644
@@ -6,4 +6,5 @@ Section "Module"
     Load "int10"
     Load "vbe"
     Load "vgahw"
+    Load "glamoregl"
 EndSection
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 2/2 xserver-xorg: Enable glamor by default

To enable glamor, we need to also enable both dri3 and xshmfence as dependencies.

---
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +2 -1
index 6a13380..0d3022f 100644
@@ -121,8 +121,9 @@ EXTRA_OECONF += "--with-fop=no \
 "
 EXTRA_OECONF[vardepsexclude] = "MACHINE"
 
+OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence"
 PACKAGECONFIG ??= "dri2 udev ${XORG_CRYPTO} \
-                   ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri glx', '', d)} \
+                   ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \
                    ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "xwayland", "", d)} \
                    ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \
 "
Signature · 1 line
2.7.4