gl_renderer: print more GL ES feature flags
This is a human readable replacement for printing out the list of all available GL extensions that doesn't happen anymore by default. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
#include "shared/fd-util.h"
|
#include "shared/fd-util.h"
|
||||||
#include "shared/helpers.h"
|
#include "shared/helpers.h"
|
||||||
#include "shared/platform.h"
|
#include "shared/platform.h"
|
||||||
|
#include "shared/string-helpers.h"
|
||||||
#include "shared/timespec-util.h"
|
#include "shared/timespec-util.h"
|
||||||
#include "shared/weston-drm-fourcc.h"
|
#include "shared/weston-drm-fourcc.h"
|
||||||
#include "shared/weston-egl-ext.h"
|
#include "shared/weston-egl-ext.h"
|
||||||
@@ -4000,10 +4001,20 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface)
|
|||||||
weston_log("GL ES %d.%d - renderer features:\n",
|
weston_log("GL ES %d.%d - renderer features:\n",
|
||||||
gr_gl_version_major(gr->gl_version),
|
gr_gl_version_major(gr->gl_version),
|
||||||
gr_gl_version_minor(gr->gl_version));
|
gr_gl_version_minor(gr->gl_version));
|
||||||
weston_log_continue(STAMP_SPACE "read-back format: %s\n",
|
|
||||||
ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA");
|
|
||||||
weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n",
|
weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n",
|
||||||
gr->has_bind_display ? "yes" : "no");
|
gr->has_bind_display ? "yes" : "no");
|
||||||
|
weston_log_continue(STAMP_SPACE "read-back format: %s\n",
|
||||||
|
ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA");
|
||||||
|
weston_log_continue(STAMP_SPACE "wl_shm 10 bpc formats: %s\n",
|
||||||
|
yesno(gr->has_texture_type_2_10_10_10_rev));
|
||||||
|
weston_log_continue(STAMP_SPACE "wl_shm 16 bpc formats: %s\n",
|
||||||
|
yesno(gr->has_texture_norm16));
|
||||||
|
weston_log_continue(STAMP_SPACE "wl_shm half-float formats: %s\n",
|
||||||
|
yesno(gr->gl_supports_color_transforms));
|
||||||
|
weston_log_continue(STAMP_SPACE "internal R and RG formats: %s\n",
|
||||||
|
yesno(gr->has_gl_texture_rg));
|
||||||
|
weston_log_continue(STAMP_SPACE "OES_EGL_image_external: %s\n",
|
||||||
|
yesno(gr->has_egl_image_external));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,4 +95,10 @@ str_printf(char **str_out, const char *fmt, ...)
|
|||||||
*str_out = NULL;
|
*str_out = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline const char *
|
||||||
|
yesno(bool cond)
|
||||||
|
{
|
||||||
|
return cond ? "yes" : "no";
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* WESTON_STRING_HELPERS_H */
|
#endif /* WESTON_STRING_HELPERS_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user