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
This commit is contained in:
memeka 2017-11-03 03:59:00 +00:00 committed by Jonas Ådahl
parent 3ee1999c70
commit 049418cd03

View File

@ -2670,6 +2670,9 @@ create_renderer_gpu_data_gbm (MetaRendererNative *renderer_native,
if (!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL, if (!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
"EGL_MESA_platform_gbm", "EGL_MESA_platform_gbm",
NULL) &&
!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
"EGL_KHR_platform_gbm",
NULL)) NULL))
{ {
g_set_error (error, G_IO_ERROR, g_set_error (error, G_IO_ERROR,