path: root/recipes-graphics
diff options
authorKhem Raj <raj.khem@gmail.com>2020-12-02 02:30:56 -0800
committerAndrei Gherzan <andrei@gherzan.ro>2020-12-02 22:10:03 +0000
commit6c1c9ff4ee743cd90c4107e05be136dd4cb2dee6 (patch)
tree777659d1657208efd33e76e551ae76f2e924a25f /recipes-graphics
parent3a1fec22c0e0cf389e8ff70ebb310f1f3c282a29 (diff)
mesa-gl: Enable swrast dri backend for rpi/userland
After mesa switched build system to meson, the logic to generate dri related artifacts changed too, which means when no dri backend is enabled then dri drivers and corresponding headers dont get generated and hence we end up with missing pkgconfig files e.g. dri.pc which usually will come from full mesa3d package, but in rpi when userland is used we only build GL pieces of mesa. This patch therefore enables swrast dri backend when using userland, which gives us the needed header and .pc files to build packages like Xorg server, since EGL driver will come from userland, the dri backend would be unused and hence should not be effective at runtime. Addresses issue report with https://github.com/agherzan/meta-raspberrypi/pull/773 there is no need to check for graphics stack since mesa-gl is only used with userland graphics Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Trevor Woerner <twoerner@gmail.com>
Diffstat (limited to 'recipes-graphics')
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa-gl_%.bbappend b/recipes-graphics/mesa/mesa-gl_%.bbappend
index 08ec1c5..84cd479 100644
--- a/recipes-graphics/mesa/mesa-gl_%.bbappend
+++ b/recipes-graphics/mesa/mesa-gl_%.bbappend
@@ -1,6 +1,8 @@
PACKAGECONFIG_append_rpi = " gbm"
PROVIDES_append_rpi = " virtual/libgbm"
+DRIDRIVERS_append_rpi = ",swrast"
do_install_append_rpi() {
rm -rf ${D}${includedir}/KHR/khrplatform.h