Bug 1670545 - Disable mesa_glthread on X11/EGL, r=aosmond

The combination currently triggers crashes - not on Wayland though.
Put the code into non-shared code to not clutter `GLContextProviderEGL`.

Differential Revision: https://phabricator.services.mozilla.com/D125403
This commit is contained in:
Robert Mader 2021-09-13 14:55:05 +00:00
Родитель 2df2b827f0
Коммит 52802a49bc
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -166,6 +166,11 @@ void gfxPlatformGtk::InitX11EGLConfig() {
feature.ForceDisable(FeatureStatus::Broken, "glxtest could not use EGL",
"FEATURE_FAILURE_GLXTEST_NO_EGL"_ns);
}
if (feature.IsEnabled() && IsX11Display()) {
// Enabling glthread crashes on X11/EGL, see bug 1670545
PR_SetEnv("mesa_glthread=false");
}
#else
feature.DisableByDefault(FeatureStatus::Unavailable, "X11 support missing",
"FEATURE_FAILURE_NO_X11"_ns);