summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-04-02 22:46:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-05 15:29:01 +0100
commit3892f36251b94373cd9f13c7c272a89c2a759923 (patch)
treec83d8983ced14eabc0c8554d9bae254cc7ec3d8a /meta/recipes-graphics/mesa
parent7d0988966cc1fd9e93549ca2ec21ac3bc765ceb6 (diff)
downloadpoky-3892f36251b94373cd9f13c7c272a89c2a759923.tar.gz
mesa-gl: Use swrast gallium driver
Fixes: ../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau" with any driver enabled in DRIDRIVERS, do_configure fails with: ../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system even after enabling gallium and wayland PACKAGECONFIGs, move DRIDRIVERS_append* from mesa.inc to mesa recipe. (From OE-Core rev: 2d0239c446be3e7f04c00e24f6c8ac1707440c8a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb9
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc4
-rw-r--r--meta/recipes-graphics/mesa/mesa_21.0.0.bb4
3 files changed, 9 insertions, 8 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
index e50782be1c..dff79f0be0 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
@@ -8,8 +8,9 @@ S = "${WORKDIR}/mesa-${PV}"
8 8
9# At least one DRI rendering engine is required to build mesa. 9# At least one DRI rendering engine is required to build mesa.
10# When no X11 is available, use osmesa for the rendering engine. 10# When no X11 is available, use osmesa for the rendering engine.
11PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" 11PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"
12PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" 12PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"
13 13
14# When NOT using X11, we need to make sure we have swrast available. 14# 21.0.0 version fails to build when any driver is enabled in DRIDRIVERS
15DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" 15# ./mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system
16DRIDRIVERS ?= ""
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index e9b72ce063..67b0835d9f 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -102,10 +102,6 @@ PACKAGECONFIG[elf-tls] = "-Delf-tls=true, -Delf-tls=false"
102PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc" 102PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc"
103PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" 103PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
104 104
105DRIDRIVERS_class-native = "nouveau"
106DRIDRIVERS_class-nativesdk = "nouveau"
107DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
108DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
109# "dri" requires "opengl" 105# "dri" requires "opengl"
110PACKAGECONFIG[dri] = "-Ddri-drivers=${@strip_comma('${DRIDRIVERS}')}, -Ddri-drivers='', xorgproto libdrm" 106PACKAGECONFIG[dri] = "-Ddri-drivers=${@strip_comma('${DRIDRIVERS}')}, -Ddri-drivers='', xorgproto libdrm"
111PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence" 107PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence"
diff --git a/meta/recipes-graphics/mesa/mesa_21.0.0.bb b/meta/recipes-graphics/mesa/mesa_21.0.0.bb
index 96e8aa38d6..d578c75e39 100644
--- a/meta/recipes-graphics/mesa/mesa_21.0.0.bb
+++ b/meta/recipes-graphics/mesa/mesa_21.0.0.bb
@@ -1,2 +1,6 @@
1require ${BPN}.inc 1require ${BPN}.inc
2 2
3DRIDRIVERS_class-native = "nouveau"
4DRIDRIVERS_class-nativesdk = "nouveau"
5DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
6DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"