summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Redondo <qt@david-redondo.de>2024-01-31 09:01:48 +0100
committerDavid Redondo <qt@david-redondo.de>2024-02-02 08:57:55 +0100
commite4156bad6398dcbe8740041148d95ee9ed437d8b (patch)
treecc84939a0e7554f4dd9b259be3972cc7927815a6
parente0796865151b06dddc5c5665f9ca8bdc8021fcd8 (diff)
client: Disable threaded GL on desktop NVIDIA
Otherwise QtQuick windows freeze when resized. In order to still use threaded rendering on embedded platforms where resizing is not required we check if XDG_CURRENT_DESKTOP which should be set by desktop environments. Task-number: QTBUG-95817 Pick-to: 6.6.2 Change-Id: Ic2348c3169e0ade8c5463e3d7c7a1c45037a89a7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: David Edmundson <davidedmundson@kde.org> (cherry picked from commit 6d83cf94b568fa9e591761a182cf84e3959fbf32) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 38348ce5b06624cb6e36f814ebdfbc3ec61f1691) Reviewed-by: David Redondo <qt@david-redondo.de>
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp
index cc7ee90ae..3b97aef20 100644
--- a/src/hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp
@@ -92,6 +92,13 @@ void QWaylandEglClientBufferIntegration::initialize(QWaylandDisplay *display)
break;
}
}
+
+ // On desktop NVIDIA resizing QtQuick freezes them when using threaded rendering QTBUG-95817
+ // In order to support threaded rendering on embedded platforms where resizing is not needed
+ // we check if XDG_CURRENT_DESKTOP is set which desktop environments should set
+ if (qstrcmp(vendor, "NVIDIA") == 0 && qEnvironmentVariableIsSet("XDG_CURRENT_DESKTOP")) {
+ m_supportsThreading = false;
+ }
}
bool QWaylandEglClientBufferIntegration::isValid() const