diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-03-27 23:37:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 23:37:37 -0400 |
commit | 48e8202883594091d2ec2b5d0d8a55ddf2f0aea6 (patch) | |
tree | db15d3d40ac5d0ec3117920f9b4917a0d0519175 /render | |
parent | 575bc81d54f98841c28718b1667d27acc136a48a (diff) | |
parent | 7d89e7e58dc6d3a2d40baf91ae3f5aaa87d58a8b (diff) |
Merge pull request #731 from swaywm/layer-surfaces
Implement wlr-layer-shell protocol & rendering
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/render/egl.c b/render/egl.c index f2966774..7201ac9f 100644 --- a/render/egl.c +++ b/render/egl.c @@ -95,7 +95,7 @@ static void print_dmabuf_formats(struct wlr_egl *egl) { for (int i = 0; i < num; i++) { snprintf(&str_formats[i*5], (num - i) * 5 + 1, "%.4s ", (char*)&formats[i]); } - wlr_log(L_INFO, "Supported dmabuf buffer formats: %s", str_formats); + wlr_log(L_DEBUG, "Supported dmabuf buffer formats: %s", str_formats); free(formats); } @@ -160,8 +160,7 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, wlr_log(L_INFO, "Supported EGL extensions: %s", egl->exts_str); wlr_log(L_INFO, "EGL vendor: %s", eglQueryString(egl->display, EGL_VENDOR)); - if (!check_egl_ext(egl->exts_str, "EGL_WL_bind_wayland_display") || - !check_egl_ext(egl->exts_str, "EGL_KHR_image_base")) { + if (!check_egl_ext(egl->exts_str, "EGL_KHR_image_base")) { wlr_log(L_ERROR, "Required egl extensions not supported"); goto error; } @@ -177,6 +176,9 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, egl->egl_exts.dmabuf_import_modifiers = check_egl_ext(egl->exts_str, "EGL_EXT_image_dma_buf_import_modifiers") && eglQueryDmaBufFormatsEXT && eglQueryDmaBufModifiersEXT; + + egl->egl_exts.bind_wayland_display = + check_egl_ext(egl->exts_str, "EGL_WL_bind_wayland_display"); print_dmabuf_formats(egl); return true; @@ -426,7 +428,7 @@ int wlr_egl_get_dmabuf_formats(struct wlr_egl *egl, int **formats) { if (!egl->egl_exts.dmabuf_import || !egl->egl_exts.dmabuf_import_modifiers) { - wlr_log(L_ERROR, "dmabuf extension not present"); + wlr_log(L_DEBUG, "dmabuf extension not present"); return -1; } |