Skip to contentSkip to conversation

default-providers.inc: set mesa as the provider for native virtual/libgl

PATCH In review Alexander Kanavin 1 participant 3 messages Sep 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 default-providers.inc: set mesa as the provider for native virtual/libgl

native libepoxy and libsdl2 require this to be set, when they have the respective opengl features enabled.

---
 meta/conf/distro/include/default-providers.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/default-providers.inc +1 -0
index 8f4d44d884c..189dd8fe400 100644
@@ -5,6 +5,7 @@ PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/egl ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
+PREFERRED_PROVIDER_virtual/libgl-native ?= "mesa-native"
 PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
 PREFERRED_PROVIDER_virtual/mesa ?= "mesa"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 libepoxy: enable x11 PACKAGECONFIG for native/nativesdk

This is needed to enable virgl support in qemu with SDL frontend

---
 meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb +2 -2
index dd706a96063..c8d1650c637 100644
@@ -23,8 +23,8 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
 
 EXTRA_OEMESON += "-Dtests=false"
 
-PACKAGECONFIG_class-native = "egl"
-PACKAGECONFIG_class-nativesdk = "egl"
+PACKAGECONFIG_class-native = "egl x11"
+PACKAGECONFIG_class-nativesdk = "egl x11"
 
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.17.1
#2 lore raw
In reply to Alexander Kanavin
Quoted 3 lines · Alexander Kanavin

native libepoxy and libsdl2 require this to be set, when they have the respective opengl features enabled.

nativesdk needs the same fix, will resend.

Alex