diff options
Diffstat (limited to 'render/egl.c')
-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: |