summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormemeka <mihailescu2m@gmail.com>2017-11-03 03:59:00 +0000
committerJonas Ã…dahl <jadahl@gmail.com>2017-11-09 18:16:27 +0800
commit049418cd03f537a407618605617aefb5ef3e4a87 (patch)
tree88659c26a0fc81749109f1cc45ffd6837f18011c /src
parent3ee1999c70910f6349b15ed5df0b7d7965f6f5e7 (diff)
downloadmutter-049418cd03f537a407618605617aefb5ef3e4a87.tar.gz
renderer/native: Also allow EGL_KHR_platform_gbm extension string
Proprietary drivers such as ARM Mali export EGL_KHR_platform_gbm instead of EGL_MESA_platform_gbm. As such, GBM platform check should be done for both MESA and non-MESA drivers. https://bugzilla.gnome.org/show_bug.cgi?id=780668
Diffstat (limited to 'src')
-rw-r--r--src/backends/native/meta-renderer-native.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index f6c358931..2e7878ae2 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -2670,6 +2670,9 @@ create_renderer_gpu_data_gbm (MetaRendererNative *renderer_native,
if (!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
"EGL_MESA_platform_gbm",
+ NULL) &&
+ !meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
+ "EGL_KHR_platform_gbm",
NULL))
{
g_set_error (error, G_IO_ERROR,