From 1c2decbeb5f06ea62164b48d01325de297a66e2e Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 24 Nov 2023 17:41:11 +0800 Subject: [PATCH] cogl/egl: Don't log "EGL color depth" anymore Since e437c854cda9be `config` no longer represents the current config but rather the fallback config that in most cases isn't being used. So reporting on its attributes is now misleading. Logging the current depth can instead now be done with MUTTER_DEBUG=kms and grepping for "KMS: Using GBM format". Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3174 Part-of: --- cogl/cogl/winsys/cogl-winsys-egl.c | 41 ------------------------------ 1 file changed, 41 deletions(-) diff --git a/cogl/cogl/winsys/cogl-winsys-egl.c b/cogl/cogl/winsys/cogl-winsys-egl.c index 26a3395fe..bea87bcf2 100644 --- a/cogl/cogl/winsys/cogl-winsys-egl.c +++ b/cogl/cogl/winsys/cogl-winsys-egl.c @@ -316,45 +316,6 @@ cleanup_context (CoglDisplay *display) egl_renderer->platform_vtable->cleanup_context (display); } -static void -print_attribs (EGLDisplay egl_display, - EGLConfig egl_config) -{ - const EGLint names[] = - { - EGL_BUFFER_SIZE, - EGL_RED_SIZE, - EGL_GREEN_SIZE, - EGL_BLUE_SIZE, - EGL_ALPHA_SIZE, - }; - struct - { - EGLint buffer_size; - EGLint red_size; - EGLint green_size; - EGLint blue_size; - EGLint alpha_size; - } values; - int i; - - for (i = 0; i < G_N_ELEMENTS (names); i++) - { - if (!eglGetConfigAttrib (egl_display, - egl_config, - names[i], - (EGLint *) &values + i)) - ((EGLint *) &values)[i] = -1; - } - - COGL_NOTE (WINSYS, "EGL color depth is %d-bit (R:G:B:A = %d:%d:%d:%d)", - (int) values.buffer_size, - (int) values.red_size, - (int) values.green_size, - (int) values.blue_size, - (int) values.alpha_size); -} - static gboolean try_create_context (CoglDisplay *display, GError **error) @@ -470,8 +431,6 @@ try_create_context (CoglDisplay *display, !egl_renderer->platform_vtable->context_created (display, error)) return FALSE; - print_attribs (egl_renderer->edpy, config); - return TRUE; fail: