Accepting request 537940 from KDE:Qt5
- Restore working version of disable-gpu-when-using-nouveau-boo-1005323.diff OBS-URL: https://build.opensuse.org/request/show/537940 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtwebengine?expand=0&rev=26
This commit is contained in:
parent
616cf9139a
commit
7d01bcb5cc
@ -50,3 +50,30 @@ Index: qtwebengine-opensource-src-5.9.2/src/core/web_engine_context.cpp
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace QtWebEngineCore {
|
namespace QtWebEngineCore {
|
||||||
|
@@ -366,6 +400,17 @@ WebEngineContext::WebEngineContext()
|
||||||
|
|
||||||
|
const char *glType = 0;
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
|
+ bool disableGpu = qEnvironmentVariableIsSet("QT_WEBENGINE_DISABLE_GPU");
|
||||||
|
+
|
||||||
|
+ if (!qEnvironmentVariableIsSet("QT_WEBENGINE_DISABLE_NOUVEAU_WORKAROUND") && openGLVendor() == QStringLiteral("nouveau"))
|
||||||
|
+ {
|
||||||
|
+ qWarning() << "Nouveau openGL driver detected. Qt WebEngine will disable usage of the GPU.\n"
|
||||||
|
+ "Note: you can set the QT_WEBENGINE_DISABLE_NOUVEAU_WORKAROUND\n"
|
||||||
|
+ "environment variable before running this application, but this is \n"
|
||||||
|
+ "not recommended since this usually causes applications to crash as\n"
|
||||||
|
+ "Nouveau openGL drivers don't support multithreaded rendering";
|
||||||
|
+ disableGpu = true;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
bool tryGL =
|
||||||
|
!usingANGLE()
|
||||||
|
@@ -377,7 +422,7 @@ WebEngineContext::WebEngineContext()
|
||||||
|
|| enableWebGLSoftwareRendering
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
- && !usingQtQuick2DRenderer();
|
||||||
|
+ && !usingQtQuick2DRenderer() && !disableGpu;
|
||||||
|
|
||||||
|
if (tryGL) {
|
||||||
|
if (qt_gl_global_share_context() && qt_gl_global_share_context()->isValid()) {
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 31 16:49:12 UTC 2017 - fabian@ritter-vogt.de
|
||||||
|
|
||||||
|
- Restore working version of
|
||||||
|
disable-gpu-when-using-nouveau-boo-1005323.diff
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 8 14:12:31 UTC 2017 - lbeltrame@kde.org
|
Sun Oct 8 14:12:31 UTC 2017 - lbeltrame@kde.org
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user