Mesa (master): egl/dri2: Log a warning if no platforms are enabled.

Matt Turner mattst88 at kemper.freedesktop.org
Thu Dec 4 23:14:11 UTC 2014


Module: Mesa
Branch: master
Commit: 0b4a6886915571540cfa26fec6fd460d3b81216f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b4a6886915571540cfa26fec6fd460d3b81216f

Author: Matt Turner <mattst88 at gmail.com>
Date:   Wed Dec  3 16:32:39 2014 -0800

egl/dri2: Log a warning if no platforms are enabled.

If you hit this, you didn't compile with --with-egl-platforms=...

Recompile with something like --with-egl-platforms=x11,drm and make
clean and make again.

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>

---

 src/egl/drivers/dri2/egl_dri2.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index d795a2f..2a6811c 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -659,6 +659,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp)
 #endif
 
    default:
+      _eglLog(_EGL_WARNING, "No EGL platform enabled.");
       return EGL_FALSE;
    }
 }




More information about the mesa-commit mailing list