From 661ee988c5cf2073d277c56aa98f55f7baf56c63 Mon Sep 17 00:00:00 2001 From: John Toomey Date: Wed, 15 May 2024 14:16:28 +0100 Subject: 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 --- ...window.cpp-Bind-the-context-before-callin.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch (limited to 'meta-xilinx-mali400/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland/0003-qwaylandeglwindow.cpp-Bind-the-context-before-callin.patch') 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 @@ +From 7067fce80a6e863532a86a5aeb9d6f53e538b387 Mon Sep 17 00:00:00 2001 +From: Madhurkiran Harikrishnan +Date: Wed, 5 Sep 2018 14:08:16 -0700 +Subject: [PATCH 3/3] qwaylandeglwindow.cpp: Bind the context before calling + eglDestroySurface + +Call eglMakeCurrent to bind the context to the current rendering thread +before calling eglDestroySurface to avoid a crash caused by the post +processing activity of GPU driver. + +Signed-off-by: Madhurkiran Harikrishnan +Upstream-Status: Pending +--- + src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp +index 6b5c532..77cc433 100644 +--- a/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp ++++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp +@@ -171,6 +171,8 @@ void QWaylandEglWindow::doInvalidateSurface() + void QWaylandEglWindow::invalidateSurface() + { + if (m_eglSurface) { ++ eglMakeCurrent(m_clientBufferIntegration->eglDisplay(), EGL_NO_SURFACE, ++ EGL_NO_SURFACE, EGL_NO_CONTEXT); + eglDestroySurface(m_clientBufferIntegration->eglDisplay(), m_eglSurface); + m_eglSurface = 0; + } +-- +2.7.4 + -- cgit v1.2.3-54-g00ecf