From a709fa31b0bc8a61444196e0914e249b0f9f97a2 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 22 May 2019 18:41:20 +0100 Subject: mesa-gl: Fix build after poky switched to meson Signed-off-by: Andrei Gherzan --- ...0001-Allow-enable-DRI-without-DRI-drivers.patch | 45 ++++++++++++++++++++++ recipes-graphics/mesa/mesa-gl_%.bbappend | 5 +++ 2 files changed, 50 insertions(+) create mode 100644 recipes-graphics/mesa/mesa-gl/0001-Allow-enable-DRI-without-DRI-drivers.patch diff --git a/recipes-graphics/mesa/mesa-gl/0001-Allow-enable-DRI-without-DRI-drivers.patch b/recipes-graphics/mesa/mesa-gl/0001-Allow-enable-DRI-without-DRI-drivers.patch new file mode 100644 index 0000000..52d670a --- /dev/null +++ b/recipes-graphics/mesa/mesa-gl/0001-Allow-enable-DRI-without-DRI-drivers.patch @@ -0,0 +1,45 @@ +From 8e0a58c8eea7ed70071cac139655700fdfa16445 Mon Sep 17 00:00:00 2001 +From: Andrei Gherzan +Date: Wed, 22 May 2019 18:32:07 +0100 +Subject: [PATCH] Allow enable DRI without DRI drivers + +Upstream-status: Pending +Signed-off-by: Andrei Gherzan +--- + meson.build | 2 +- + meson_options.txt | 6 ++++++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 53d02e3..9a8578f 100644 +--- a/meson.build ++++ b/meson.build +@@ -119,7 +119,7 @@ with_dri_r200 = _drivers.contains('r200') + with_dri_nouveau = _drivers.contains('nouveau') + with_dri_swrast = _drivers.contains('swrast') + +-with_dri = _drivers.length() != 0 and _drivers != [''] ++with_dri = get_option('dri') or (_drivers.length() != 0 and _drivers != ['']) + + _drivers = get_option('gallium-drivers') + if _drivers.contains('auto') +diff --git a/meson_options.txt b/meson_options.txt +index ccf7065..5174320 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -34,6 +34,12 @@ option( + choices : ['auto', 'true', 'false'], + description : 'enable support for dri3' + ) ++option( ++ 'dri', ++ type : 'boolean', ++ value : false, ++ description : 'enable support for dri' ++) + option( + 'dri-drivers', + type : 'array', +-- +2.17.1 + diff --git a/recipes-graphics/mesa/mesa-gl_%.bbappend b/recipes-graphics/mesa/mesa-gl_%.bbappend index 08ec1c5..778b08d 100644 --- a/recipes-graphics/mesa/mesa-gl_%.bbappend +++ b/recipes-graphics/mesa/mesa-gl_%.bbappend @@ -1,6 +1,11 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" +SRC_URI += "file://0001-Allow-enable-DRI-without-DRI-drivers.patch" + PACKAGECONFIG_append_rpi = " gbm" PROVIDES_append_rpi = " virtual/libgbm" do_install_append_rpi() { rm -rf ${D}${includedir}/KHR/khrplatform.h } + +EXTRA_OEMESON += "-Ddri=true" -- cgit v1.2.3-54-g00ecf