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

Gerd Hoffmann
2020-01-06T08:47:20Z

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