diff options
author | Eric Anholt <[email protected]> | 2018-10-29 09:28:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-11-12 15:20:23 -0800 |
commit | 621b0fa8922ade0a8122b868177308e65e6d3595 (patch) | |
tree | 61d0499594d855dcdd5f59080cbac44b08c83139 /src | |
parent | 6328536ff28ca26f2ad4e6f2c956c467acebda88 (diff) |
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 <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/platform_drm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 68ec8322e97..fb346e00733 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)); } } |