mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
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:
parent
b5ed927960
commit
fba356e44d
1 changed files with 9 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue