summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2020-05-11 14:05:04 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2020-05-11 17:36:37 +0200
commit9d4490a0f4e1bfeba2660e79e1357f39b64f8027 (patch)
tree36bdab2d91ce85cbab8271e353bac6aa344edf4a
parent852e279a45da2b68719fecdaad3573b2ada9558c (diff)
downloadmeta-qt5-9d4490a0f4e1bfeba2660e79e1357f39b64f8027.tar.gz
qtwayland: really use OpenGL ES 2 API for decoration blitter
Really use (as the comment states) the OpenGL ES 2 API for the decoration blitter. Fixes: QTBUG-80356 Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r--recipes-qt/qt5/qtwayland/0003-Client-really-use-OpenGL-ES-2-API-for-decoration-bli.patch33
-rw-r--r--recipes-qt/qt5/qtwayland_git.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwayland/0003-Client-really-use-OpenGL-ES-2-API-for-decoration-bli.patch b/recipes-qt/qt5/qtwayland/0003-Client-really-use-OpenGL-ES-2-API-for-decoration-bli.patch
new file mode 100644
index 00000000..38260c15
--- /dev/null
+++ b/recipes-qt/qt5/qtwayland/0003-Client-really-use-OpenGL-ES-2-API-for-decoration-bli.patch
@@ -0,0 +1,33 @@
1From ed1f86061b66f66c0f78d185833795fd26949145 Mon Sep 17 00:00:00 2001
2From: Peter Seiderer <ps.report@gmx.net>
3Date: Tue, 26 Nov 2019 09:39:25 +0100
4Subject: [PATCH] Client: really use OpenGL ES 2 API for decoration blitter
5
6Really use (as the comment states) the OpenGL ES 2 API for
7the decoration blitter.
8
9Task-number: QTBUG-80356
10Change-Id: I4c923343e721a824521fb9b2b36be5d2de984325
11Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
12Reviewed-by: Johan Helsing <johan.helsing@qt.io>
13Upstream-Status: Backport [6e9d6f166dec65e91b4dbf73ccb60170e0a56dc8]
14---
15 .../client/wayland-egl/qwaylandglcontext.cpp | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
19index bc1f74af..da147495 100644
20--- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
21+++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
22@@ -312,7 +312,7 @@ QWaylandGLContext::QWaylandGLContext(EGLDisplay eglDisplay, QWaylandDisplay *dis
23
24 // Create an EGL context for the decorations blitter. By using a dedicated context we don't need to make sure to not
25 // change the context state and we also use OpenGL ES 2 API independently to what the app is using to draw.
26- QVector<EGLint> eglDecorationsContextAttrs = { EGL_CONTEXT_CLIENT_VERSION, 1, EGL_NONE };
27+ QVector<EGLint> eglDecorationsContextAttrs = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
28 m_decorationsContext = eglCreateContext(m_eglDisplay, m_config, m_context, eglDecorationsContextAttrs.constData());
29 if (m_decorationsContext == EGL_NO_CONTEXT)
30 qWarning("QWaylandGLContext: Failed to create the decorations EGLContext. Decorations will not be drawn.");
31--
322.25.1
33
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index a8b704b2..2e57e7c9 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -16,6 +16,7 @@ LIC_FILES_CHKSUM = " \
16SRC_URI += " \ 16SRC_URI += " \
17 file://0001-tst_seatv4-Include-array.patch \ 17 file://0001-tst_seatv4-Include-array.patch \
18 file://0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch \ 18 file://0002-Fix-compilation-of-linuxdmabuf-compositor-plugin.patch \
19 file://0003-Client-really-use-OpenGL-ES-2-API-for-decoration-bli.patch \
19" 20"
20 21
21PACKAGECONFIG ?= " \ 22PACKAGECONFIG ?= " \