summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2020-04-06 21:59:21 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2020-04-14 17:57:34 +0200
commit852e279a45da2b68719fecdaad3573b2ada9558c (patch)
tree6a720e041f4e6766b2e7be63b02c9ca76ee8e6a2
parentb6767f3b2012d506cd348db581ccbf9274527116 (diff)
downloadmeta-qt5-852e279a45da2b68719fecdaad3573b2ada9558c.tar.gz
qtwayland: Backport fix for newer mesa
The qtwayland fails to build without this patch with newer Mesa 20.0.y, add the backport to permit the build to pass. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes-qt/qt5/qtwayland/0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch32
-rw-r--r--recipes-qt/qt5/qtwayland_git.bb5
2 files changed, 36 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtwayland/0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch b/recipes-qt/qt5/qtwayland/0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch
new file mode 100644
index 00000000..b282678e
--- /dev/null
+++ b/recipes-qt/qt5/qtwayland/0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch
@@ -0,0 +1,32 @@
1From 7514d07ef6ccccde9cbfd466113943098591ff03 Mon Sep 17 00:00:00 2001
2From: Johan Klokkhammer Helsing <johan.helsing@qt.io>
3Date: Fri, 8 Nov 2019 13:58:04 +0100
4Subject: [PATCH] Fix compilation of linuxdmabuf compositor plugin
5
6Mesa's eglext.h no longer includes eglmesaext.h, so copy over the typedefs we need.
7
8Fixes: QTBUG-79709
9Change-Id: I3190ef56e0e162636efea440dff7e760cf11fcd0
10Upstream-Status: Backport [c2105d8b7e16cc934b886537968228f6300bf4bc]
11---
12 .../compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h b/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
16index 2abc2ce6..f9188588 100644
17--- a/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
18+++ b/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h
19@@ -68,6 +68,10 @@
20 #define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED)
21 #endif
22
23+// Copied from eglmesaext.h
24+typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
25+typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
26+
27 QT_BEGIN_NAMESPACE
28
29 class QWaylandCompositor;
30--
312.24.0
32
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index 7cfbcaa1..a8b704b2 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -13,7 +13,10 @@ LIC_FILES_CHKSUM = " \
13 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 13 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
14" 14"
15 15
16SRC_URI += "file://0001-tst_seatv4-Include-array.patch" 16SRC_URI += " \
17 file://0001-tst_seatv4-Include-array.patch \
18 file://0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch \
19"
17 20
18PACKAGECONFIG ?= " \ 21PACKAGECONFIG ?= " \
19 wayland-client \ 22 wayland-client \