From: Eric Anholt Date: Mon, 29 Oct 2018 16:28:00 +0000 (-0700) Subject: egl: Improve the debugging of gbm format matching in DRI configs. X-Git-Tag: upstream/19.0.0~1670 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=621b0fa8922ade0a8122b868177308e65e6d3595;p=platform%2Fupstream%2Fmesa.git egl: Improve the debugging of gbm format matching in DRI configs. Previously the debug would be: libEGL debug: No DRI config supports native format 0x20203852 libEGL debug: No DRI config supports native format 0x38385247 but libEGL debug: No DRI config supports native format R8 libEGL debug: No DRI config supports native format GR88 is a lot easier to understand. Reviewed-by: Eric Engestrom Reviewed-by: Daniel Stone --- diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 68ec832..fb346e0 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -664,8 +664,9 @@ drm_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp) for (unsigned i = 0; i < ARRAY_SIZE(format_count); i++) { if (!format_count[i]) { - _eglLog(_EGL_DEBUG, "No DRI config supports native format 0x%x", - visuals[i].gbm_format); + struct gbm_format_name_desc desc; + _eglLog(_EGL_DEBUG, "No DRI config supports native format %s", + gbm_format_get_name(visuals[i].gbm_format, &desc)); } }