Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <
20210204105232.834642-15-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
int qemu_egl_init_dpy_x11(EGLNativeDisplayType dpy, DisplayGLMode mode);
int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy, DisplayGLMode mode);
EGLContext qemu_egl_init_ctx(void);
+bool qemu_egl_has_dmabuf(void);
#endif /* EGL_HELPERS_H */
#endif
}
+bool qemu_egl_has_dmabuf(void)
+{
+ if (qemu_egl_display == EGL_NO_DISPLAY) {
+ return false;
+ }
+
+ return epoxy_has_egl_extension(qemu_egl_display,
+ "EGL_EXT_image_dma_buf_import");
+}
+
EGLContext qemu_egl_init_ctx(void)
{
static const EGLint ctx_att_core[] = {