https://bugs.freedesktop.org/show_bug.cgi?id=78453
--- Comment #16 from vincent vljn@ovi.com --- You need to build mesa with the "--with-egl-platforms=x11,drm" and "--enable-gallium-egl" flags, and then starts with "EGL_LOG_LEVEL=debug EGL_PLATFORM=drm ./es2_gears" command.