[Spice-devel] [PATCH v2 1/1] virtio-video: Add virtio video device specification

Gerd Hoffmann kraxel at redhat.com
Mon Jan 6 08:47:01 UTC 2020


  Hi,

> How should one deal with multiplanar formats? Do we create one resource per 
> plane? Otherwise we need a way to send mem entries for each plane in one 
> request.

DRM uses arrays of handles and offsets (see struct drm_framebuffer).  A
handle references a gem object (roughly the same as a resource), and the
offset specifies the start of the plane within the gem object.  That
allows both a single gem object with planes stored at different offsets
and one gem object per plane.  virtio-video could do the same, or pick
one of the two approaches and support only that.

cheers,
  Gerd



More information about the Spice-devel mailing list