From 86c0522c63e84ee9a98b9cd9cf6588faba1bac23 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 10 Oct 2017 15:54:51 +0200 Subject: egl-helpers: add dmabuf import support Add helper function to import a dma-buf as opengl texture. Also add a helper to release the texture again. Signed-off-by: Gerd Hoffmann Message-id: 20171010135453.6704-5-kraxel@redhat.com --- include/ui/egl-helpers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index 81cb255..4924fe5 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -33,6 +33,9 @@ extern EGLContext qemu_egl_rn_ctx; int egl_rendernode_init(const char *rendernode); int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc); +void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf); +void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf); + #endif EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win); -- cgit v1.1