diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-10-10 15:54:51 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-10-17 10:25:42 +0200 |
commit | 86c0522c63e84ee9a98b9cd9cf6588faba1bac23 (patch) | |
tree | d079090e808f20fcd9c19cbf5917ac5c9e283432 /include/ui | |
parent | 2e1d70b9e03ca3f1c6185b54010bc9e47e0a0d0c (diff) | |
download | qemu-86c0522c63e84ee9a98b9cd9cf6588faba1bac23.zip qemu-86c0522c63e84ee9a98b9cd9cf6588faba1bac23.tar.gz qemu-86c0522c63e84ee9a98b9cd9cf6588faba1bac23.tar.bz2 |
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')
-rw-r--r-- | include/ui/egl-helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |