From af3823880e7ef52647f4c88f75def46489cd46aa Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 14 Sep 2022 18:40:44 +0000 Subject: Wed Sep 14 18:40:44 UTC 2022 ap/vim-9.0.0465-x86_64-1.txz: Upgraded. kde/plasma-integration-5.25.5-x86_64-2.txz: Rebuilt. [PATCH] Bring back workaround for threaded render loop not working on NVIDIA Wayland. Thanks to marav. l/jemalloc-5.3.0-x86_64-1.txz: Upgraded. Thanks to villeph. xap/vim-gvim-9.0.0465-x86_64-1.txz: Upgraded. --- source/kde/kde/build/plasma-integration | 2 +- source/kde/kde/patch/plasma-integration.patch | 1 + .../kde/patch/plasma-integration/52bd3c9c.patch | 42 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 source/kde/kde/patch/plasma-integration.patch create mode 100644 source/kde/kde/patch/plasma-integration/52bd3c9c.patch (limited to 'source/kde') diff --git a/source/kde/kde/build/plasma-integration b/source/kde/kde/build/plasma-integration index d00491fd7..0cfbf0888 100644 --- a/source/kde/kde/build/plasma-integration +++ b/source/kde/kde/build/plasma-integration @@ -1 +1 @@ -1 +2 diff --git a/source/kde/kde/patch/plasma-integration.patch b/source/kde/kde/patch/plasma-integration.patch new file mode 100644 index 000000000..64f0f6eeb --- /dev/null +++ b/source/kde/kde/patch/plasma-integration.patch @@ -0,0 +1 @@ +cat $CWD/patch/plasma-integration/52bd3c9c.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; } diff --git a/source/kde/kde/patch/plasma-integration/52bd3c9c.patch b/source/kde/kde/patch/plasma-integration/52bd3c9c.patch new file mode 100644 index 000000000..4a0112663 --- /dev/null +++ b/source/kde/kde/patch/plasma-integration/52bd3c9c.patch @@ -0,0 +1,42 @@ +From 52bd3c9cc2a78e2ba8d87e09e01706d309720a6f Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Tue, 13 Sep 2022 11:41:03 +0300 +Subject: [PATCH] Bring back workaround for threaded render loop not working on + NVIDIA Wayland + +For more details, check QTBUG-95817. But to summarize it in a couple of +words: a window will stop pushing buffers when it's resized and using +threaded render loop. + +CCBUG: 455575 +--- + src/platformtheme/qtquickrenderersettings.cpp | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/src/platformtheme/qtquickrenderersettings.cpp b/src/platformtheme/qtquickrenderersettings.cpp +index db7ecb5..fa99d5c 100644 +--- a/src/platformtheme/qtquickrenderersettings.cpp ++++ b/src/platformtheme/qtquickrenderersettings.cpp +@@ -69,6 +69,19 @@ void initializeRendererSessions() + if (!qEnvironmentVariableIsSet("QSG_RENDER_LOOP")) { + if (!s.renderLoop().isEmpty()) { + qputenv("QSG_RENDER_LOOP", s.renderLoop().toLatin1()); ++ } else if (QGuiApplication::platformName() == QLatin1String("wayland")) { ++#if QT_CONFIG(opengl) ++ // Workaround for Bug 432062 / QTBUG-95817 ++ QOffscreenSurface surface; ++ surface.create(); ++ if (checkContext.makeCurrent(&surface)) { ++ const char *vendor = reinterpret_cast(checkContext.functions()->glGetString(GL_VENDOR)); ++ if (qstrcmp(vendor, "NVIDIA Corporation") == 0) { ++ // Otherwise Qt Quick Windows break when resized ++ qputenv("QSG_RENDER_LOOP", "basic"); ++ } ++ } ++#endif + } + } + } +-- +GitLab + -- cgit v1.2.3-65-gdbad