diff options
author | Stephan Hilb <stephan@ecshi.net> | 2021-04-08 22:21:50 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-10 10:49:55 +0200 |
commit | 9f012cac2fbc72bc4395b8c50e6ea18b93b3c164 (patch) | |
tree | 753fe262cc0b3d8ee2cc22af33db3e465d0519ea /render/gles2 | |
parent | d5105c42e34439cc6e1084bd8b04712b74e467c0 (diff) |
drm: check for PRIME support
PRIME support for buffer sharing has become mandatory since the renderer
rewrite. Make sure we check for the appropriate capabilities in backend,
allocator and renderer.
See also #2819.
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 25cdcf56..ed7ed8c4 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -746,6 +746,11 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) { wlr_log(WLR_INFO, "GL renderer: %s", glGetString(GL_RENDERER)); wlr_log(WLR_INFO, "Supported GLES2 extensions: %s", exts_str); + if (!renderer->egl->exts.image_dmabuf_import_ext) { + wlr_log(WLR_ERROR, "EGL_EXT_image_dma_buf_import not supported"); + free(renderer); + return NULL; + } if (!check_gl_ext(exts_str, "GL_EXT_texture_format_BGRA8888")) { wlr_log(WLR_ERROR, "BGRA8888 format not supported by GLES2"); free(renderer); |