From: Dongwon Kim <dongwon.kim@intel.com>
QemuDmaBuf struct is defined and primarily used by ui/console/gl so it is
better to handle its creation, initialization and access within ui/console
rather than within hw modules such as hw/display/virtio-gpu,
hw/display/vhost-user-gpu and hw/vfio as well as ui/dbus-listener.
v4: refactored patches in the previous series
made ui/dbus-listener and hw/display/vhost-user-gpu to use the new
helpers
Dongwon Kim (3):
ui/console: Introduce dpy_gl_dmabuf_get_height/width() helpers
ui/console: Introduce dpy_gl_dmabuf_get_fd() helper
ui/console: Introduce dpy_gl_create_dmabuf() helper
include/hw/vfio/vfio-common.h | 2 +-
include/hw/virtio/virtio-gpu.h | 2 +-
include/ui/console.h | 9 ++++++
hw/display/vhost-user-gpu.c | 12 +++----
hw/display/virtio-gpu-udmabuf.c | 26 ++++++----------
hw/vfio/display.c | 36 +++++++++++----------
ui/console.c | 55 +++++++++++++++++++++++++++++++++
ui/dbus-listener.c | 22 ++++++-------
8 files changed, 109 insertions(+), 55 deletions(-)
--
2.34.1