[RFC] dma buf: support sprite plane

Bug #1827772 reported by Chen Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

QEMU does not support sprite/overlay in DMA-buf mode for Intel gvt vGPUs. Some use cases relies on sprite plane support, e.g. hw accelerated video playback in Windows 10 guest.

To support this feature, functions in both kernel and QEMU should be implemented:

- query support for plane info in kernel:
  in vgpu_get_plane_info() of drm/i915/gvt/dmabuf.c, calls to intel_vgpu_decode_sprite_plane() shall be made;

- struct to hold VFIODMABuf object in QEMU:
  in struct VFIODisplay of include/hw/vfio/vfio-common.h;
- copying of data in QEMU:
  in vfio_display_get_dmabuf() of hw/vfio/display.c;
- drawing of sprite plane in QEMU:
  in vfio_display_dmabuf_update() of hw/vfio/display.c;
  defining more DisplayChangeListenerOps for overlay;
  adding position info in struct QemuDmaBuf of include/ui/console.h;
  adding overlay_fb in struct VirtualGfxConsole of include/ui/gtk.h;
  implement gd_egl_overlay_dmabuf for overlay update;

Tags: gvt mdev rfc vfio
Chen Zhang (cuser2)
description: updated
Revision history for this message
Thomas Huth (th-huth) wrote : Moved bug report

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/169

Changed in qemu:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.