diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-01 16:16:01 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-01 16:16:37 +0100 |
commit | 01d21cdd9fe5c3edc5d69986b4fc766eb9e6dc60 (patch) | |
tree | 1216f4e41076412dff554c157061faa5c7e33cb8 | |
parent | f1d37c54c897b4dd0db14af857482955996bd6dc (diff) |
render/egl: log whether DMA-BUF modifiers are supported
-rw-r--r-- | render/egl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/render/egl.c b/render/egl.c index 671e02b9..55676294 100644 --- a/render/egl.c +++ b/render/egl.c @@ -104,6 +104,7 @@ static void init_dmabuf_formats(struct wlr_egl *egl) { return; } + bool has_modifiers = false; for (int i = 0; i < formats_len; i++) { uint32_t fmt = formats[i]; @@ -115,6 +116,8 @@ static void init_dmabuf_formats(struct wlr_egl *egl) { continue; } + has_modifiers = has_modifiers || modifiers_len > 0; + if (modifiers_len == 0) { wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt, DRM_FORMAT_MOD_INVALID); @@ -143,7 +146,9 @@ static void init_dmabuf_formats(struct wlr_egl *egl) { snprintf(&str_formats[i*5], (formats_len - i) * 5 + 1, "%.4s ", (char*)&formats[i]); } - wlr_log(WLR_DEBUG, "Supported dmabuf buffer formats: %s", str_formats); + wlr_log(WLR_DEBUG, "Supported DMA-BUF formats: %s", str_formats); + wlr_log(WLR_DEBUG, "EGL DMA-BUF format modifiers %s", + has_modifiers ? "supported" : "unsupported"); free(str_formats); out: |