Skip to contentSkip to conversation

xserver-xorg: Enable glamor by default

PATCH In review Saul Wold 3 participants 3 messages Jan 12, 2017 – Jan 22, 2017

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 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
#1 lore raw
Quoted 3 lines · Saul Wold

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

Of course musl's lack of lazy loading bits xserver again:

[     8.655] (EE) Failed to load

/usr/lib/xorg/modules/drivers/modesetting_drv.so: Error relocating /usr/lib/xorg/modules/drivers/modesetting_drv.so: glamor_set_screen_pixmap:
symbol not found

xserver-xf86-config has a config fragment that loads a set of modules on startup if musl is enabled, I'm guessing glamoregl should be on that list?

Ross

#2 lore raw
Quoted 9 lines · Ross
Quoted 3 lines · Saul Wold

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

Of course musl's lack of lazy loading bits xserver again:

Quoted 8 lines
[     8.655] (EE) Failed to load

/usr/lib/xorg/modules/drivers/modesetting_drv.so: Error relocating /usr/lib/xorg/modules/drivers/modesetting_drv.so: glamor_set_screen_pixmap:
symbol not found

xserver-xf86-config has a config fragment that loads a set of modules on startup if musl is enabled, I'm guessing glamoregl should be on that list?

add it to preloaded modules in .conf file.