diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-29 09:21:43 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-07 11:52:35 +0200 |
commit | 5fc1fb62af354c93b865420f58fe3a9497fd4990 (patch) | |
tree | 7200b20f6a3c640a6a2da0c4ce3e765b5ed98e5e /include | |
parent | a6c9d5da08e60eac3ec315abf243c2b7d2665089 (diff) |
egl-helpers: add modifier support to egl_get_fd_for_texture().
Add modifier parameter to egl_get_fd_for_texture(), to return the used
modifier on dmabuf exports.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190529072144.26737-4-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/egl-helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index b976cb8728..d714127799 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -36,7 +36,8 @@ extern struct gbm_device *qemu_egl_rn_gbm_dev; extern EGLContext qemu_egl_rn_ctx; int egl_rendernode_init(const char *rendernode, DisplayGLMode mode); -int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc); +int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc, + EGLuint64KHR *modifier); void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf); void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf); |