summary refs log tree commit diff stats
path: root/include/ui/egl-helpers.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-10-10 15:54:51 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-10-17 10:25:42 +0200
commit86c0522c63e84ee9a98b9cd9cf6588faba1bac23 (patch)
treed079090e808f20fcd9c19cbf5917ac5c9e283432 /include/ui/egl-helpers.h
parent2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c (diff)
downloadfocaccia-qemu-86c0522c63e84ee9a98b9cd9cf6588faba1bac23.tar.gz
focaccia-qemu-86c0522c63e84ee9a98b9cd9cf6588faba1bac23.zip
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 <kraxel@redhat.com>
Message-id: 20171010135453.6704-5-kraxel@redhat.com
Diffstat (limited to 'include/ui/egl-helpers.h')
-rw-r--r--include/ui/egl-helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 81cb255de0..4924fe560d 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);