After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774648 - Mutter cannot work with GLES
Mutter cannot work with GLES
Status: RESOLVED DUPLICATE of bug 771636
Product: mutter
Classification: Core
Component: general
3.22.x
Other Linux
: Normal major
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-11-17 21:22 UTC by Icenowy Zheng
Modified: 2016-11-18 01:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Icenowy Zheng 2016-11-17 21:22:27 UTC
I'm trying to use GNOME Shell on my Allwinner A33 tablet (as I have already get Mali binary driver (a EGL-X11/GLES only driver) to work).

Any other clutter programs works well with COGL_DRIVER=gles2, however, mutter cannot work, and exits with "Cannot initialize driver" (I forgot the precise error).

After hours of debugging, I found a problem:

In src/backends/x11/meta-renderer-x11.c:50 get_x11_cogl_winsys_vtable(), it will judges whether it's a wayland compositor...

However, with a X11-only EGL, it is impossible to be a compositor, so it called _cogl_winsys_glx_get_vtable, which is ridiculous for GLES situation (EGL should be used instead).

After commenting out the if, and directly call _cogl_winsys_egl_xlib_get_vtable, it works.
Comment 1 Jonas Ådahl 2016-11-18 01:33:00 UTC
Right. I assume this is a dup of bug 771636, which has a patch which is supposed to fix the issue.

*** This bug has been marked as a duplicate of bug 771636 ***