summary refs log tree commit diff stats
path: root/include/ui/egl-helpers.h
diff options
context:
space:
mode:
authorQiang Yu <yuq825@gmail.com>2025-03-27 10:58:46 +0800
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-05-06 13:39:42 +0400
commit0e15d0b92700000db66e19c68ad2d50aace860d8 (patch)
tree0ccade4ab4b8d6c387610fc4a3aefd3fc3ee69b7 /include/ui/egl-helpers.h
parentac70568902c3fb77516d93b169cddd0bcaabfb4e (diff)
downloadfocaccia-qemu-0e15d0b92700000db66e19c68ad2d50aace860d8.tar.gz
focaccia-qemu-0e15d0b92700000db66e19c68ad2d50aace860d8.zip
ui/egl: support multi-plane dmabuf when egl export/import
v2:
  * use new dmabuf API and check length

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
[ Fix style ]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20250327025848.46962-5-yuq825@gmail.com>
Diffstat (limited to 'include/ui/egl-helpers.h')
-rw-r--r--include/ui/egl-helpers.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 4b8c0d2281..fb80e15142 100644
--- a/include/ui/egl-helpers.h
+++ b/include/ui/egl-helpers.h
@@ -46,8 +46,9 @@ extern int qemu_egl_rn_fd;
 extern struct gbm_device *qemu_egl_rn_gbm_dev;
 
 int egl_rendernode_init(const char *rendernode, DisplayGLMode mode);
-int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc,
-                           EGLuint64KHR *modifier);
+bool egl_dmabuf_export_texture(uint32_t tex_id, int *fd, EGLint *offset,
+                               EGLint *stride, EGLint *fourcc, int *num_planes,
+                               EGLuint64KHR *modifier);
 
 void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf);
 void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf);