gl-renderer: log EGLConfig component type

Now that we also support EGLConfig with floating-point, let's log this
information.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2025-09-01 19:53:43 -03:00
parent b5ed927960
commit fba356e44d

View file

@ -208,6 +208,15 @@ print_egl_config_info(FILE *fp, struct gl_renderer *gr, EGLConfig eglconfig)
else
fputs("-", fp);
fputs(" val: ", fp);
if (egl_display_has(gr, EXTENSION_EXT_PIXEL_FORMAT_FLOAT) &&
eglGetConfigAttrib(gr->egl_display, eglconfig, EGL_COLOR_COMPONENT_TYPE_EXT, &value) &&
value == EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT) {
fputs("flt", fp);
} else {
fputs("fix", fp);
}
fputs(" vis_id: ", fp);
if (eglGetConfigAttrib(gr->egl_display, eglconfig, EGL_NATIVE_VISUAL_ID, &value)) {
if (value != 0) {