summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch
diff options
context:
space:
mode:
authorJohn Toomey <john.toomey@amd.com>2024-05-15 14:16:28 +0100
committerMark Hatle <mark.hatle@amd.com>2024-11-21 10:43:43 -0600
commit661ee988c5cf2073d277c56aa98f55f7baf56c63 (patch)
tree2a6d05e3010e1476c974ecfe64339bf3118331a3 /meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch
parent32bffbb8498f0297ed1e6deaca72ff8a5c500a39 (diff)
downloadmeta-xilinx-661ee988c5cf2073d277c56aa98f55f7baf56c63.tar.gz
meta-xilinx-mali400: Create new Mali400 layer
Create a new layer containing all code related to the Mali400 graphics stack and software. This includes the Mali kernel module / patches, libglu/libgles code, mesa, wayland, kernel recipe and udev rules. This layer also includes a dynamic layer for the qt5 bbappends and patches. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch')
-rw-r--r--meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch b/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch
new file mode 100644
index 00000000..c29edab4
--- /dev/null
+++ b/meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch
@@ -0,0 +1,32 @@
1From 7067fce80a6e863532a86a5aeb9d6f53e538b387 Mon Sep 17 00:00:00 2001
2From: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
3Date: Wed, 5 Sep 2018 14:08:16 -0700
4Subject: [PATCH 3/3] qwaylandeglwindow.cpp: Bind the context before calling
5 eglDestroySurface
6
7Call eglMakeCurrent to bind the context to the current rendering thread
8before calling eglDestroySurface to avoid a crash caused by the post
9processing activity of GPU driver.
10
11Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
12Upstream-Status: Pending
13---
14 src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
18index 6b5c532..77cc433 100644
19--- a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
20+++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp
21@@ -171,6 +171,8 @@ void QWaylandEglWindow::doInvalidateSurface()
22 void QWaylandEglWindow::invalidateSurface()
23 {
24 if (m_eglSurface) {
25+ eglMakeCurrent(m_clientBufferIntegration->eglDisplay(), EGL_NO_SURFACE,
26+ EGL_NO_SURFACE, EGL_NO_CONTEXT);
27 eglDestroySurface(m_clientBufferIntegration->eglDisplay(), m_eglSurface);
28 m_eglSurface = 0;
29 }
30--
312.7.4
32