mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
cogl/egl: Don't log "EGL color depth" anymore
Since e437c854cd
`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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3421>
This commit is contained in:
parent
8de30c3b6e
commit
1c2decbeb5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user