From 5064153c79d8b18767c0ade7635680a2f396f296 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 16 May 2017 11:37:12 -0700 Subject: [PATCH] glamor_egl: Print a useful identifying string on initialization. The EGL version is not used anywhere in the glamor code, so it's not interesting. And when saying that we've started using GL acceleration, it's nice to know what GL we're actually using. Reviewed-by: Adam Jackson Signed-off-by: Eric Anholt --- glamor/glamor_egl.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index ca94227cc..e5dfe657d 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -49,15 +49,6 @@ #include "glamor_priv.h" #include "dri3.h" -static const char glamor_name[] = "glamor"; - -static void -glamor_identify(int flags) -{ - xf86Msg(X_INFO, "%s: OpenGL accelerated X.org driver based.\n", - glamor_name); -} - struct glamor_egl_screen_private { EGLDisplay display; EGLContext context; @@ -737,7 +728,6 @@ Bool glamor_egl_init(ScrnInfoPtr scrn, int fd) { struct glamor_egl_screen_private *glamor_egl; - const char *version; EGLint config_attribs[] = { #ifdef GLAMOR_GLES2 @@ -755,7 +745,6 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd) EGL_NONE }; - glamor_identify(0); glamor_egl = calloc(sizeof(*glamor_egl), 1); if (glamor_egl == NULL) return FALSE; @@ -796,9 +785,6 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd) eglBindAPI(EGL_OPENGL_ES_API); #endif - version = eglQueryString(glamor_egl->display, EGL_VERSION); - xf86Msg(X_INFO, "%s: EGL version %s:\n", glamor_name, version); - #define GLAMOR_CHECK_EGL_EXTENSION(EXT) \ if (!epoxy_has_egl_extension(glamor_egl->display, "EGL_" #EXT)) { \ ErrorF("EGL_" #EXT " required.\n"); \ @@ -856,6 +842,9 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd) glamor_egl->dri3_capable = TRUE; #endif + xf86DrvMsg(scrn->scrnIndex, X_INFO, "glamor X acceleration enabled on %s\n", + glGetString(GL_RENDERER)); + glamor_egl->saved_free_screen = scrn->FreeScreen; scrn->FreeScreen = glamor_egl_free_screen; #ifdef GLAMOR_GLES2