summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-03-19 09:43:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-20 18:54:56 +0000
commit99438a57a9d90ff2b172589b691d2704be178788 (patch)
treefee242580f282d64b95f428622f0b6f8241fde0d /meta/recipes-graphics/mesa/mesa.inc
parent12aae17e43db8daf6125efbbd5f245a4e248cfaf (diff)
downloadpoky-99438a57a9d90ff2b172589b691d2704be178788.tar.gz
mesa: update 20.3.4 -> 21.0.0
0001-anv-fix-a-build-race-between-generating-a-header-and.patch merged upstream. osmesa is now a simple boolean option. Swrast has been removed from dri drivers, so as we need at least one driver to enable dri in native/nativesdk, replace it with nouveau (which does not take long to build). (From OE-Core rev: e4e4cc57a0a949400c557073af0cf78f977bd02d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 9f8ec112cf..e9b72ce063 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -19,10 +19,9 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
19 file://0002-meson.build-make-TLS-ELF-optional.patch \ 19 file://0002-meson.build-make-TLS-ELF-optional.patch \
20 file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ 20 file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
21 file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch \ 21 file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch \
22 file://0001-anv-fix-a-build-race-between-generating-a-header-and.patch \
23 " 22 "
24 23
25SRC_URI[sha256sum] = "dc21a987ec1ff45b278fe4b1419b1719f1968debbb80221480e44180849b4084" 24SRC_URI[sha256sum] = "e6204e98e6a8d77cf9dc5d34f99dd8e3ef7144f3601c808ca0dd26ba522e0d84"
26 25
27UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" 26UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
28 27
@@ -103,8 +102,8 @@ PACKAGECONFIG[elf-tls] = "-Delf-tls=true, -Delf-tls=false"
103PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc" 102PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc"
104PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" 103PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
105 104
106DRIDRIVERS_class-native = "swrast" 105DRIDRIVERS_class-native = "nouveau"
107DRIDRIVERS_class-nativesdk = "swrast" 106DRIDRIVERS_class-nativesdk = "nouveau"
108DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" 107DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
109DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915" 108DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
110# "dri" requires "opengl" 109# "dri" requires "opengl"
@@ -168,8 +167,7 @@ GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '
168PACKAGECONFIG[panfrost] = "" 167PACKAGECONFIG[panfrost] = ""
169GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" 168GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}"
170 169
171OSMESA = "${@bb.utils.contains('PACKAGECONFIG', 'gallium', 'gallium', 'classic', d)}" 170PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false"
172PACKAGECONFIG[osmesa] = "-Dosmesa=${OSMESA},-Dosmesa=none"
173 171
174PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" 172PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
175 173